From cc7ce06edd780f2afdbb77c86b41f52c570f36aa Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Sat, 14 Apr 2012 14:27:22 +0300 Subject: [PATCH] Update to 2.32.1 - Dropped an upstreamed patch - Added two new patches to fix build --- ...alignment-tests-when-cross-compiling.patch | 35 ------------------- 0001-tests-fileutils-Fix-Windows-build.patch | 26 ++++++++++++++ 0002-Only-build-gmenumodel-test-on-unix.patch | 33 +++++++++++++++++ mingw-glib2.spec | 16 ++++++--- sources | 2 +- 5 files changed, 71 insertions(+), 41 deletions(-) delete mode 100644 0001-configure-Fix-alignment-tests-when-cross-compiling.patch create mode 100644 0001-tests-fileutils-Fix-Windows-build.patch create mode 100644 0002-Only-build-gmenumodel-test-on-unix.patch diff --git a/0001-configure-Fix-alignment-tests-when-cross-compiling.patch b/0001-configure-Fix-alignment-tests-when-cross-compiling.patch deleted file mode 100644 index 08b8df0..0000000 --- a/0001-configure-Fix-alignment-tests-when-cross-compiling.patch +++ /dev/null @@ -1,35 +0,0 @@ -From 8f8fc836709cff58bd666b87937542088cfc19db Mon Sep 17 00:00:00 2001 -From: Kalev Lember -Date: Wed, 28 Mar 2012 12:42:49 +0300 -Subject: [PATCH] configure: Fix alignment tests when cross compiling - -When inserting custom code to AC_CHECK_ALIGNOF, make sure to not replace -the default includes, but instead append to them. - -This fixes ALIGNOF_GUINT32 and ALIGNOF_GUINT64 that were both 0 when cross -compiling. The third 'unsigned long' test wasn't affected because the -AC_CHECK_ALIGNOF call didn't specify the optional 2nd parameter. ---- - configure.ac | 6 ++++-- - 1 file changed, 4 insertions(+), 2 deletions(-) - -diff --git a/configure.ac b/configure.ac -index 0d30b3e..82d74c6 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -3405,8 +3405,10 @@ $ac_cv_sizeof___int64) - ;; - esac - --AC_CHECK_ALIGNOF([guint32], [typedef unsigned $gint32 guint32;]) --AC_CHECK_ALIGNOF([guint64], typedef unsigned $gint64 guint64;) -+AC_CHECK_ALIGNOF([guint32], [AC_INCLUDES_DEFAULT -+typedef unsigned $gint32 guint32;]) -+AC_CHECK_ALIGNOF([guint64], [AC_INCLUDES_DEFAULT -+typedef unsigned $gint64 guint64;]) - AC_CHECK_ALIGNOF([unsigned long]) - - # Check for libdbus1 - Optional - is only used in the GDBus test cases --- -1.7.9.3 - diff --git a/0001-tests-fileutils-Fix-Windows-build.patch b/0001-tests-fileutils-Fix-Windows-build.patch new file mode 100644 index 0000000..dc46c89 --- /dev/null +++ b/0001-tests-fileutils-Fix-Windows-build.patch @@ -0,0 +1,26 @@ +From 8386c6e3f913248eb6944ba4351ad1592cb74dba Mon Sep 17 00:00:00 2001 +From: Kalev Lember +Date: Sat, 14 Apr 2012 15:40:17 +0300 +Subject: [PATCH 1/2] tests/fileutils: Fix Windows build + +--- + glib/tests/fileutils.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/glib/tests/fileutils.c b/glib/tests/fileutils.c +index befb71b..bb9a242 100644 +--- a/glib/tests/fileutils.c ++++ b/glib/tests/fileutils.c +@@ -541,7 +541,9 @@ test_file_errors (void) + g_assert (g_file_error_from_errno (ENXIO) == G_FILE_ERROR_NXIO); + g_assert (g_file_error_from_errno (ENODEV) == G_FILE_ERROR_NODEV); + g_assert (g_file_error_from_errno (EROFS) == G_FILE_ERROR_ROFS); ++#ifdef ETXTBSY + g_assert (g_file_error_from_errno (ETXTBSY) == G_FILE_ERROR_TXTBSY); ++#endif + g_assert (g_file_error_from_errno (EFAULT) == G_FILE_ERROR_FAULT); + g_assert (g_file_error_from_errno (ELOOP) == G_FILE_ERROR_LOOP); + g_assert (g_file_error_from_errno (ENOSPC) == G_FILE_ERROR_NOSPC); +-- +1.7.10 + diff --git a/0002-Only-build-gmenumodel-test-on-unix.patch b/0002-Only-build-gmenumodel-test-on-unix.patch new file mode 100644 index 0000000..52652e5 --- /dev/null +++ b/0002-Only-build-gmenumodel-test-on-unix.patch @@ -0,0 +1,33 @@ +From 381c37bc46af842b8c3d9a66264ac34e0bbf6ccb Mon Sep 17 00:00:00 2001 +From: Kalev Lember +Date: Sat, 14 Apr 2012 15:48:13 +0300 +Subject: [PATCH 2/2] Only build gmenumodel test on unix + +It depends on gdbus-sessionbus.c which only builds on unix. +--- + gio/tests/Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gio/tests/Makefile.am b/gio/tests/Makefile.am +index 0d45e71..6e577c8 100644 +--- a/gio/tests/Makefile.am ++++ b/gio/tests/Makefile.am +@@ -58,7 +58,6 @@ TEST_PROGS += \ + vfs \ + network-monitor \ + fileattributematcher \ +- gmenumodel \ + resources \ + $(NULL) + +@@ -82,6 +81,7 @@ TEST_PROGS += \ + gdbus-exit-on-close \ + gdbus-non-socket \ + gdbus-bz627724 \ ++ gmenumodel \ + appinfo \ + contenttype \ + mimeapps \ +-- +1.7.10 + diff --git a/mingw-glib2.spec b/mingw-glib2.spec index 4f7430b..1922314 100644 --- a/mingw-glib2.spec +++ b/mingw-glib2.spec @@ -1,8 +1,8 @@ %?mingw_package_header Name: mingw-glib2 -Version: 2.32.0 -Release: 2%{?dist} +Version: 2.32.1 +Release: 1%{?dist} Summary: MinGW Windows GLib2 library License: LGPLv2+ @@ -11,8 +11,8 @@ URL: http://www.gtk.org # first two digits of version %define release_version %(echo %{version} | awk -F. '{print $1"."$2}') Source0: http://download.gnome.org/sources/glib/%{release_version}/glib-%{version}.tar.xz -# Already upstreamed -Patch0: 0001-configure-Fix-alignment-tests-when-cross-compiling.patch +Patch0: 0001-tests-fileutils-Fix-Windows-build.patch +Patch1: 0002-Only-build-gmenumodel-test-on-unix.patch BuildArch: noarch @@ -79,7 +79,8 @@ Static version of the MinGW Windows GLib2 library. %prep %setup -q -n glib-%{version} -%patch0 -p1 -b .alignof +%patch0 -p1 -b .ETXTBSY +%patch1 -p1 -b .gmenumodel autoreconf -i --force @@ -259,6 +260,11 @@ find $RPM_BUILD_ROOT -name "*.la" -delete %changelog +* Sat Apr 14 2012 Kalev Lember - 2.32.1-1 +- Update to 2.32.1 +- Dropped an upstreamed patch +- Added two new patches to fix build + * Wed Mar 28 2012 Kalev Lember - 2.32.0-2 - Add a patch to fix alignment tests when cross compiling diff --git a/sources b/sources index 34e042a..417e466 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -c5fa76fbf9184d20dfb04af66b598190 glib-2.32.0.tar.xz +032c7cf9868c9aa186b490b155a41144 glib-2.32.1.tar.xz