From 1b986ba52a74f91202033d955b54d355e02995b3 Mon Sep 17 00:00:00 2001 From: Jon Ciesla Date: Sep 22 2016 14:10:49 +0000 Subject: Playcounts crash patch --- diff --git a/libgpod-playcounts.patch b/libgpod-playcounts.patch new file mode 100644 index 0000000..b0bf4d3 --- /dev/null +++ b/libgpod-playcounts.patch @@ -0,0 +1,24 @@ +--- a/src/itdb_itunesdb.c ++++ b/src/itdb_itunesdb.c +@@ -1156,6 +1156,7 @@ + GHashTable *pc_dict, *track_dict; + GValue *to_parse; + GArray *array; ++ GValue value; + gint i; + guint32 mac_time; + guint64 *dbid; +@@ -1175,11 +1176,12 @@ + + array = (GArray*)g_value_get_boxed (to_parse); + for (i = 0; i < array->len; i++) { +- if (!G_VALUE_HOLDS (g_array_index (array, GValue *, i), G_TYPE_HASH_TABLE)) { ++ value = g_array_index (array, GValue, i); ++ if (!G_VALUE_HOLDS (&value, G_TYPE_HASH_TABLE)) { + continue; + } + +- track_dict = g_value_get_boxed (g_array_index (array, GValue *, i)); ++ track_dict = g_value_get_boxed (&value); + if (track_dict == NULL) + continue; diff --git a/libgpod.spec b/libgpod.spec index fac27a2..8b31281 100644 --- a/libgpod.spec +++ b/libgpod.spec @@ -15,7 +15,7 @@ Summary: Library to access the contents of an iPod Name: libgpod Version: 0.8.3 -Release: 12%{?dist} +Release: 13%{?dist} License: LGPLv2+ Group: System Environment/Libraries URL: http://www.gtkpod.org/libgpod.html @@ -25,6 +25,7 @@ Source0: http://downloads.sourceforge.net/gtkpod/%{name}-%{version}.tar.bz2 Patch0: libgpod-0.8.2-pkgconfig_overlinking.patch Patch1: libgpod-fixswig.patch Patch2: libgpod-0.8.3-mono4.patch +Patch3: libgpod-playcounts.patch BuildRequires: automake libtool BuildRequires: docbook-style-xsl @@ -125,6 +126,7 @@ libgpod-sharp. %patch0 -p1 -b .pkgconfig_overlinking %patch1 -p1 -b .swig %patch2 -p1 -b .mono4 +%patch3 -p1 -b .playcounts # remove execute perms on the python examples as they'll be installed in %%doc chmod -x bindings/python/examples/*.py @@ -208,6 +210,9 @@ find %{buildroot} -type f -name "*.a" -delete %endif %changelog +* Thu Sep 22 2016 Jon Ciesla - 0.8.3-13 +- Patch for iOS crash, BZ 1359954. + * Tue Jul 19 2016 Fedora Release Engineering - 0.8.3-12 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages