From patchwork Sun May 26 17:12:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Spenser Gilliland X-Patchwork-Id: 246438 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 18EEE2C013D for ; Mon, 27 May 2013 03:19:57 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id DFC8E317E6; Sun, 26 May 2013 17:19:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9aizji3+MS7i; Sun, 26 May 2013 17:19:52 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id B745B317ED; Sun, 26 May 2013 17:19:51 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 9540C8F75E for ; Sun, 26 May 2013 17:19:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 4C0528CBE2 for ; Sun, 26 May 2013 17:19:50 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lV3vLOSHFURT for ; Sun, 26 May 2013 17:19:48 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ie0-f181.google.com (mail-ie0-f181.google.com [209.85.223.181]) by whitealder.osuosl.org (Postfix) with ESMTPS id 174AD8CBCE for ; Sun, 26 May 2013 17:19:48 +0000 (UTC) Received: by mail-ie0-f181.google.com with SMTP id x12so16728130ief.12 for ; Sun, 26 May 2013 10:19:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=LqpuCvL+Xv0rgwN6VmneeJgPU8fePhzb960vrhl6VEw=; b=hmYOvfj9nKqAZ7zby2EU24XP6yBrQyamBkH8cjPAAtvG6Bn12ew5qw8svh4bjELCVB LL7pcYNQaZ8GG6h0F6mFp4DCrsX78GN9HEtWI4NFfRyuTO9Sb9WKZ9zNqG+IADqUgC4m go4Z6d79Bx8kpVFgM7Zti/gcHOqieMf/OKqz2uN/Ox3cBaLEk7L6qJ6lvgxQFI716SF9 ReNECWhx96kXRMUMOIV7V0XLRrybM7o/r+cvDU1LZFfeqiKHPWheAyYHG8q4+u5uZzJG k+KuwJOSn7x0IAKOgq3fbnuU4hzFTASCtK2eGdTHDh2ja7mfIS1EteQjPYbZQKDpY86C o93A== X-Received: by 10.50.136.138 with SMTP id qa10mr3426079igb.53.1369588353812; Sun, 26 May 2013 10:12:33 -0700 (PDT) Received: from bourban.gateway.2wire.net (108-90-245-135.lightspeed.cicril.sbcglobal.net. [108.90.245.135]) by mx.google.com with ESMTPSA id o10sm9363498igh.2.2013.05.26.10.12.32 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 26 May 2013 10:12:33 -0700 (PDT) From: Spenser Gilliland To: buildroot@busybox.net Date: Sun, 26 May 2013 12:12:14 -0500 Message-Id: <1369588343-13950-2-git-send-email-spenser@gillilanding.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1369588343-13950-1-git-send-email-spenser@gillilanding.com> References: <1369588343-13950-1-git-send-email-spenser@gillilanding.com> X-Gm-Message-State: ALoCoQmBFyi4r0himO9oXiJe01pScRN/QKTlUHPjWpkemU3HdBZBq/EzWnGBR9L0fBswD2K667pA Cc: Thomas Petazzoni Subject: [Buildroot] [PATCH v8 01/10] libglib2: Bump libglib2 to 2.36.1 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net This patch bumps libglib2 to version 2.36.1. In addition this bumps glibmm and glib-networking to 2.36.1. Signed-off-by: Spenser Gilliland Cc: Thomas Petazzoni --- package/glib-networking/glib-networking.mk | 4 +- package/glibmm/glibmm.mk | 2 +- ...ib2-0004-fix-build-when-no-thread-support.patch | 18 +- ...b2-make-codegen-python2-python3-compliant.patch | 192 -------------------- package/libglib2/libglib2-no-tests.patch | 117 ------------ package/libglib2/libglib2.mk | 10 +- 6 files changed, 19 insertions(+), 324 deletions(-) delete mode 100644 package/libglib2/libglib2-make-codegen-python2-python3-compliant.patch delete mode 100644 package/libglib2/libglib2-no-tests.patch diff --git a/package/glib-networking/glib-networking.mk b/package/glib-networking/glib-networking.mk index 4812fd6..40a1e99 100644 --- a/package/glib-networking/glib-networking.mk +++ b/package/glib-networking/glib-networking.mk @@ -4,8 +4,8 @@ # ############################################################# -GLIB_NETWORKING_MAJOR_VERSION = 2.30 -GLIB_NETWORKING_MINOR_VERSION = 2 +GLIB_NETWORKING_MAJOR_VERSION = 2.36 +GLIB_NETWORKING_MINOR_VERSION = 1 GLIB_NETWORKING_VERSION = $(GLIB_NETWORKING_MAJOR_VERSION).$(GLIB_NETWORKING_MINOR_VERSION) GLIB_NETWORKING_SITE = http://ftp.gnome.org/pub/gnome/sources/glib-networking/$(GLIB_NETWORKING_MAJOR_VERSION) GLIB_NETWORKING_SOURCE = glib-networking-$(GLIB_NETWORKING_VERSION).tar.xz diff --git a/package/glibmm/glibmm.mk b/package/glibmm/glibmm.mk index abd8b6c..d8f6239 100644 --- a/package/glibmm/glibmm.mk +++ b/package/glibmm/glibmm.mk @@ -4,7 +4,7 @@ # ############################################################# -GLIBMM_VERSION_MAJOR = 2.30 +GLIBMM_VERSION_MAJOR = 2.36 GLIBMM_VERSION_MINOR = 1 GLIBMM_VERSION = $(GLIBMM_VERSION_MAJOR).$(GLIBMM_VERSION_MINOR) GLIBMM_LICENSE = LGPLv2.1+ (library), GPLv2+ (tools) diff --git a/package/libglib2/libglib2-0004-fix-build-when-no-thread-support.patch b/package/libglib2/libglib2-0004-fix-build-when-no-thread-support.patch index 5563544..43c7e16 100644 --- a/package/libglib2/libglib2-0004-fix-build-when-no-thread-support.patch +++ b/package/libglib2/libglib2-0004-fix-build-when-no-thread-support.patch @@ -1,27 +1,29 @@ Fix gio/gcancellable.c build when thread support is disabled +Changes: + Updated for 2.36.1 + Signed-off-by: "Samuel Martin" +Signed-off-by: "Spenser Gilliland" --- ---- a/gio/gcancellable.c 2013-05-14 23:08:25.514461348 +0200 -+++ b/gio/gcancellable.c 2013-05-14 23:10:23.347789625 +0200 -@@ -270,8 +270,10 @@ g_cancellable_reset (GCancellable *cance +--- libglib2-2.36.1.orig/gio/gcancellable.c 2013-03-13 08:39:09.000000000 -0500 ++++ libglib2-2.36.1/gio/gcancellable.c 2013-05-26 10:49:32.366019891 -0500 +@@ -267,7 +267,9 @@ while (priv->cancelled_running) { priv->cancelled_running_waiting = TRUE; +#if defined(G_THREADS_ENABLED) - g_cond_wait (cancellable_cond, - g_static_mutex_get_mutex (& G_LOCK_NAME (cancellable))); + g_cond_wait (&cancellable_cond, &cancellable_mutex); +#endif } if (priv->cancelled) -@@ -619,8 +621,10 @@ g_cancellable_disconnect (GCancellable +@@ -620,7 +622,9 @@ while (priv->cancelled_running) { priv->cancelled_running_waiting = TRUE; +#if defined(G_THREADS_ENABLED) - g_cond_wait (cancellable_cond, - g_static_mutex_get_mutex (& G_LOCK_NAME (cancellable))); + g_cond_wait (&cancellable_cond, &cancellable_mutex); +#endif } diff --git a/package/libglib2/libglib2-make-codegen-python2-python3-compliant.patch b/package/libglib2/libglib2-make-codegen-python2-python3-compliant.patch deleted file mode 100644 index b483827..0000000 --- a/package/libglib2/libglib2-make-codegen-python2-python3-compliant.patch +++ /dev/null @@ -1,192 +0,0 @@ -Fetch from http://git.gnome.org/browse/glib/patch/?id=03611f7c0670ea14eedbc121972aed7ce60bb9ee - -This patch is already included upstream, from the glib-2.32.4 release. - -Signed-off-by: Samuel Martin ---- -From 03611f7c0670ea14eedbc121972aed7ce60bb9ee Mon Sep 17 00:00:00 2001 -From: Simon Feltman -Date: Thu, 14 Jun 2012 06:20:17 +0000 -Subject: Updated codegen to work with python3. - -Most changes were just replacing usage of "has_key" with "in". -Also updated the sorting function which was simplified and -changed to a "key" function instead of "cmp" (which is no longer -supported in python3. Verified everything builds with -python 2.7 and 3. - -https://bugzilla.gnome.org/show_bug.cgi?id=678066 ---- -diff --git a/gio/gdbus-2.0/codegen/codegen.py b/gio/gdbus-2.0/codegen/codegen.py -index 41ea8fa..bca3490 100644 ---- a/gio/gdbus-2.0/codegen/codegen.py -+++ b/gio/gdbus-2.0/codegen/codegen.py -@@ -304,11 +304,8 @@ class CodeGenerator: - # - # See https://bugzilla.gnome.org/show_bug.cgi?id=647577#c5 - # for discussion -- keys = function_pointers.keys() -- if len(keys) > 0: -- keys.sort(cmp=utils.my_version_cmp) -- for key in keys: -- self.h.write('%s'%function_pointers[key]) -+ for key in sorted(function_pointers.keys(), key=utils.version_cmp_key): -+ self.h.write('%s'%function_pointers[key]) - - self.h.write('};\n') - self.h.write('\n') -@@ -1022,11 +1019,9 @@ class CodeGenerator: - value = '@get_%s: '%(p.name_lower) - value += 'Getter for the #%s:%s property.'%(i.camel_name, p.name_hyphen) - doc_bits[key] = value -- keys = doc_bits.keys() -- if len(keys) > 0: -- keys.sort(cmp=utils.my_version_cmp) -- for key in keys: -- self.c.write(' * %s\n'%doc_bits[key]) -+ for key in sorted(doc_bits.keys(), key=utils.version_cmp_key): -+ self.c.write(' * %s\n'%doc_bits[key]) -+ - self.c.write(self.docbook_gen.expand( - ' *\n' - ' * Virtual table for the D-Bus interface #%s.\n' -diff --git a/gio/gdbus-2.0/codegen/codegen_docbook.py b/gio/gdbus-2.0/codegen/codegen_docbook.py -index 4ceef57..00581f1 100644 ---- a/gio/gdbus-2.0/codegen/codegen_docbook.py -+++ b/gio/gdbus-2.0/codegen/codegen_docbook.py -@@ -259,14 +259,12 @@ class DocbookCodeGenerator: - self.expand_member_dict[key] = value - # Make sure to expand the keys in reverse order so e.g. #org.foo.Iface:MediaCompat - # is evaluated before #org.foo.Iface:Media ... -- self.expand_member_dict_keys = self.expand_member_dict.keys() -- self.expand_member_dict_keys.sort(reverse=True) -- self.expand_iface_dict_keys = self.expand_iface_dict.keys() -- self.expand_iface_dict_keys.sort(reverse=True) -+ self.expand_member_dict_keys = sorted(self.expand_member_dict.keys(), reverse=True) -+ self.expand_iface_dict_keys = sorted(self.expand_iface_dict.keys(), reverse=True) - - def generate(self): - for i in self.ifaces: -- self.out = file('%s-%s.xml'%(self.docbook, i.name), 'w') -+ self.out = open('%s-%s.xml'%(self.docbook, i.name), 'w') - self.out.write(''%()) - self.out.write('\n'%()) - self.out.write(' 0 and len(b[0]) > 0: -- va = distutils.version.LooseVersion(a[0]) -- vb = distutils.version.LooseVersion(b[0]) -- ret = va.__cmp__(vb) -- else: -- ret = cmp(a[0], b[0]) -- if ret != 0: -- return ret -- return cmp(a[1], b[1]) -+def version_cmp_key(key): -+ # If the 'since' version is empty put a 0 in its place as this will -+ # allow LooseVersion to work and will always compare lower. -+ v = key[0] if key[0] else '0' -+ return (distutils.version.LooseVersion(v), key[1]) --- -cgit v0.9.0.2 diff --git a/package/libglib2/libglib2-no-tests.patch b/package/libglib2/libglib2-no-tests.patch deleted file mode 100644 index 81b5af2..0000000 --- a/package/libglib2/libglib2-no-tests.patch +++ /dev/null @@ -1,117 +0,0 @@ -Add a --disable-tests option to the configure script - -Disabling the build of tests has two benefits: - * Prevents the build of a lot of code that doesn't build on noMMU - platforms. - * Reduces the build time. - -Signed-off-by: Thomas Petazzoni - -Index: libglib2-2.30.3/Makefile.am -=================================================================== ---- libglib2-2.30.3.orig/Makefile.am 2012-03-11 22:43:28.000000000 +0100 -+++ libglib2-2.30.3/Makefile.am 2013-03-09 17:32:01.000000000 +0100 -@@ -6,7 +6,11 @@ - - ACLOCAL_AMFLAGS = -I m4macros ${ACLOCAL_FLAGS} - --SUBDIRS = . m4macros glib gmodule gthread gobject gio tests po docs -+if BUILD_TESTS -+TEST_SUBDIR = tests -+endif -+ -+SUBDIRS = . m4macros glib gmodule gthread gobject gio $(TEST_SUBDIR) po docs - DIST_SUBDIRS = $(SUBDIRS) build - - bin_SCRIPTS = glib-gettextize -Index: libglib2-2.30.3/gio/Makefile.am -=================================================================== ---- libglib2-2.30.3.orig/gio/Makefile.am 2012-03-11 22:44:19.000000000 +0100 -+++ libglib2-2.30.3/gio/Makefile.am 2013-03-09 17:32:38.000000000 +0100 -@@ -282,7 +282,11 @@ - - endif - --SUBDIRS += tests -+if BUILD_TESTS -+TEST_SUBDIR = tests -+endif -+ -+SUBDIRS += $(TEST_SUBDIR) - - libgio_2_0_la_SOURCES = \ - gappinfo.c \ -Index: libglib2-2.30.3/configure.ac -=================================================================== ---- libglib2-2.30.3.orig/configure.ac 2013-03-09 17:30:55.000000000 +0100 -+++ libglib2-2.30.3/configure.ac 2013-03-09 17:37:27.000000000 +0100 -@@ -234,11 +234,18 @@ - [AC_HELP_STRING([--disable-rebuilds], - [disable all source autogeneration rules])],, - [enable_rebuilds=yes]) -+AC_ARG_ENABLE(tests, -+ [AC_HELP_STRING([--disable-tests], -+ [disable all tests])], -+ enable_tests=${enableval}, -+ enable_tests=yes) - - if test "x$enable_threads" != "xyes"; then - enable_threads=no - fi - -+AM_CONDITIONAL(BUILD_TESTS, [test x$enable_tests = xyes]) -+ - AC_MSG_CHECKING([whether to enable garbage collector friendliness]) - if test "x$enable_gc_friendly" = "xyes"; then - AC_DEFINE(ENABLE_GC_FRIENDLY_DEFAULT, 1, [Whether to enable GC friendliness by default]) -Index: libglib2-2.30.3/glib/Makefile.am -=================================================================== ---- libglib2-2.30.3.orig/glib/Makefile.am 2012-03-11 22:43:28.000000000 +0100 -+++ libglib2-2.30.3/glib/Makefile.am 2013-03-09 18:02:59.000000000 +0100 -@@ -42,7 +42,11 @@ - gregex_h = - endif - --SUBDIRS = libcharset $(PRINTF_SUBDIR) $(MAYBE_PCRE) update-pcre . tests -+if BUILD_TESTS -+TEST_SUBDIR = tests -+endif -+ -+SUBDIRS = libcharset $(PRINTF_SUBDIR) $(MAYBE_PCRE) update-pcre . $(TEST_SUBDIR) - - DIST_SUBDIRS = libcharset gnulib pcre update-pcre tests - -Index: libglib2-2.30.3/gobject/Makefile.am -=================================================================== ---- libglib2-2.30.3.orig/gobject/Makefile.am 2012-03-11 22:43:29.000000000 +0100 -+++ libglib2-2.30.3/gobject/Makefile.am 2013-03-09 18:03:40.000000000 +0100 -@@ -4,7 +4,11 @@ - ## Process this file with automake to produce Makefile.in - include $(top_srcdir)/Makefile.decl - --SUBDIRS = . tests -+if BUILD_TESTS -+TEST_SUBDIR = tests -+endif -+ -+SUBDIRS = . $(TEST_SUBDIR) - - BUILT_SOURCES= - CLEANFILES= -Index: libglib2-2.30.3/gthread/Makefile.am -=================================================================== ---- libglib2-2.30.3.orig/gthread/Makefile.am 2012-03-11 22:43:29.000000000 +0100 -+++ libglib2-2.30.3/gthread/Makefile.am 2013-03-09 18:04:16.000000000 +0100 -@@ -1,7 +1,11 @@ - ## Process this file with automake to produce Makefile.in - include $(top_srcdir)/Makefile.decl - --SUBDIRS = . tests -+if BUILD_TESTS -+TEST_SUBDIR = tests -+endif -+ -+SUBDIRS = . $(TEST_SUBDIR) - DIST_SUBDIRS = tests - - AM_CPPFLAGS = \ diff --git a/package/libglib2/libglib2.mk b/package/libglib2/libglib2.mk index 3ac78ba..7886fd0 100644 --- a/package/libglib2/libglib2.mk +++ b/package/libglib2/libglib2.mk @@ -3,8 +3,8 @@ # libglib2 # ############################################################# -LIBGLIB2_VERSION_MAJOR = 2.30 -LIBGLIB2_VERSION_MINOR = 3 +LIBGLIB2_VERSION_MAJOR = 2.36 +LIBGLIB2_VERSION_MINOR = 1 LIBGLIB2_VERSION = $(LIBGLIB2_VERSION_MAJOR).$(LIBGLIB2_VERSION_MINOR) LIBGLIB2_SOURCE = glib-$(LIBGLIB2_VERSION).tar.xz LIBGLIB2_SITE = http://ftp.gnome.org/pub/gnome/sources/glib/$(LIBGLIB2_VERSION_MAJOR) @@ -44,6 +44,8 @@ LIBGLIB2_CONF_ENV = \ ac_cv_path_GLIB_GENMARSHAL=$(HOST_DIR)/usr/bin/glib-genmarshal ac_cv_prog_F77=no \ ac_cv_func_posix_getgrgid_r=no glib_cv_long_long_format=ll \ ac_cv_func_printf_unix98=yes ac_cv_func_vsnprintf_c99=yes \ + ac_cv_func_newlocale=no ac_cv_func_uselocale=no \ + ac_cv_func_strtod_l=no ac_cv_func_strtoll_l=no ac_cv_func_strtoull_l=no \ gt_cv_c_wchar_t=$(if $(BR2_USE_WCHAR),yes,no) # old uClibc versions don't provide qsort_r @@ -64,9 +66,9 @@ HOST_LIBGLIB2_CONF_OPT = \ --disable-dtrace \ --disable-systemtap \ --disable-gcov \ - --disable-tests + --disable-modular-tests -LIBGLIB2_CONF_OPT += --disable-tests +LIBGLIB2_CONF_OPT += --disable-modular-tests ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),) LIBGLIB2_CONF_OPT += --with-threads=none --disable-threads endif