libglib2: Bump libglib2 to 0.36.1
PATCH 1/3 libglib2: Bump libglib2 to 0.36.1
This patch bumps libglib2 to version 0.36.1.
--- ...b2-make-codegen-python2-python3-compliant.patch | 192 -------------------- package/libglib2/libglib2-no-tests.patch | 117 ------------ package/libglib2/libglib2.mk | 10 +- 3 files changed, 6 insertions(+), 313 deletions(-) delete mode 100644 package/libglib2/libglib2-make-codegen-python2-python3-compliant.patch delete mode 100644 package/libglib2/libglib2-no-tests.patch
package/libglib2/libglib2-make-codegen-python2-python3-compliant.patch deleted +0 -192
@@ -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 <[email protected]> ---- -From 03611f7c0670ea14eedbc121972aed7ce60bb9ee Mon Sep 17 00:00:00 2001 -From: Simon Feltman <[email protected]> -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('<?xml version="1.0" encoding="utf-8"?>\n'%()) - self.out.write('<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"\n'%()) -diff --git a/gio/gdbus-2.0/codegen/codegen_main.py b/gio/gdbus-2.0/codegen/codegen_main.py -index 76c838c..735cc1f 100755 ---- a/gio/gdbus-2.0/codegen/codegen_main.py -+++ b/gio/gdbus-2.0/codegen/codegen_main.py -@@ -184,8 +184,8 @@ def codegen_main(): - - c_code = opts.generate_c_code - if c_code: -- h = file(c_code + '.h', 'w') -- c = file(c_code + '.c', 'w') -+ h = open(c_code + '.h', 'w') -+ c = open(c_code + '.c', 'w') - gen = codegen.CodeGenerator(all_ifaces, - opts.c_namespace, - opts.interface_prefix, -diff --git a/gio/gdbus-2.0/codegen/parser.py b/gio/gdbus-2.0/codegen/parser.py -index 5fabd44..7b9d216 100644 ---- a/gio/gdbus-2.0/codegen/parser.py -+++ b/gio/gdbus-2.0/codegen/parser.py -@@ -152,12 +152,12 @@ class DBusXMLParser: - self.state = DBusXMLParser.STATE_IGNORED - - # assign docs, if any -- if attrs.has_key('name') and self.doc_comment_last_symbol == attrs['name']: -+ if 'name' in attrs and self.doc_comment_last_symbol == attrs['name']: - self._cur_object.doc_string = self.doc_comment_body -- if self.doc_comment_params.has_key('short_description'): -+ if 'short_description' in self.doc_comment_params: - short_description = self.doc_comment_params['short_description'] - self._cur_object.doc_string_brief = short_description -- if self.doc_comment_params.has_key('since'): -+ if 'since' in self.doc_comment_params: - self._cur_object.since = self.doc_comment_params['since'] - - elif self.state == DBusXMLParser.STATE_INTERFACE: -@@ -185,16 +185,16 @@ class DBusXMLParser: - self.state = DBusXMLParser.STATE_IGNORED - - # assign docs, if any -- if attrs.has_key('name') and self.doc_comment_last_symbol == attrs['name']: -+ if 'name' in attrs and self.doc_comment_last_symbol == attrs['name']: - self._cur_object.doc_string = self.doc_comment_body -- if self.doc_comment_params.has_key('since'): -+ if 'since' in self.doc_comment_params: - self._cur_object.since = self.doc_comment_params['since'] - - elif self.state == DBusXMLParser.STATE_METHOD: - if name == DBusXMLParser.STATE_ARG: - self.state = DBusXMLParser.STATE_ARG - arg_name = None -- if attrs.has_key('name'): -+ if 'name' in attrs: - arg_name = attrs['name'] - arg = dbustypes.Arg(arg_name, attrs['type']) - direction = attrs['direction'] -@@ -215,18 +215,18 @@ class DBusXMLParser: - - # assign docs, if any - if self.doc_comment_last_symbol == old_cur_object.name: -- if attrs.has_key('name') and self.doc_comment_params.has_key(attrs['name']): -+ if 'name' in attrs and attrs['name'] in self.doc_comment_params: - doc_string = self.doc_comment_params[attrs['name']] - if doc_string != None: - self._cur_object.doc_string = doc_string -- if self.doc_comment_params.has_key('since'): -+ if 'since' in self.doc_comment_params: - self._cur_object.since = self.doc_comment_params['since'] - - elif self.state == DBusXMLParser.STATE_SIGNAL: - if name == DBusXMLParser.STATE_ARG: - self.state = DBusXMLParser.STATE_ARG - arg_name = None -- if attrs.has_key('name'): -+ if 'name' in attrs: - arg_name = attrs['name'] - arg = dbustypes.Arg(arg_name, attrs['type']) - self._cur_object.args.append(arg) -@@ -241,11 +241,11 @@ class DBusXMLParser: - - # assign docs, if any - if self.doc_comment_last_symbol == old_cur_object.name: -- if attrs.has_key('name') and self.doc_comment_params.has_key(attrs['name']): -+ if 'name' in attrs and attrs['name'] in self.doc_comment_params: - doc_string = self.doc_comment_params[attrs['name']] - if doc_string != None: - self._cur_object.doc_string = doc_string -- if self.doc_comment_params.has_key('since'): -+ if 'since' in self.doc_comment_params: - self._cur_object.since = self.doc_comment_params['since'] - - elif self.state == DBusXMLParser.STATE_PROPERTY: -diff --git a/gio/gdbus-2.0/codegen/utils.py b/gio/gdbus-2.0/codegen/utils.py -index 94bd05c..239b64e 100644 ---- a/gio/gdbus-2.0/codegen/utils.py -+++ b/gio/gdbus-2.0/codegen/utils.py -@@ -97,15 +97,8 @@ def lookup_brief_docs(annotations): - else: - return s - --# I'm sure this could be a lot more elegant if I was --# more fluent in python... --def my_version_cmp(a, b): -- if len(a[0]) > 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
package/libglib2/libglib2-no-tests.patch deleted +0 -117
117 lines not on this page · raw message
package/libglib2/libglib2.mk +6 -4
@@ -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 LIBGLIB2_DEPENDENCIES = host-pkgconf host-libglib2 libffi zlib $(if $(BR2_NEEDS_GETTEXT),gettext) host-gettext
Signature · 1 line
1.7.9.5
PATCH 2/3 glibmm: Bump to version 0.36.1
This upgrades glibmm to version 0.36.1
--- package/glibmm/glibmm.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/glibmm/glibmm.mk +1 -1
@@ -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)
Signature · 1 line
1.7.9.5
PATCH 3/3 glib-networking: Bump to version 0.36.1
In reply to Spenser Gillilandchange to version 0.36.1 of glib-networking.
--- package/glib-networking/glib-networking.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
package/glib-networking/glib-networking.mk +2 -2
@@ -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
Signature · 1 line
1.7.9.5
PATCH 1/3 libglib2: Bump libglib2 to 0.36.1
In reply to Spenser GillilandDear Spenser Gilliland,
Quoted 1 line · Spenser Gilliland
This patch bumps libglib2 to version 0.36.1.
This patch is not bumping libglib2 to 0.36.1, but to 2.36.1. Ditto for your glibmm and glib-networking patches.
Quoted 6 lines
package/libglib2/libglib2-no-tests.patch deleted +0
-0
package/libglib2/libglib2-no-tests.patch line 8
Quoted 8 lines
package/libglib2/libglib2-no-tests.patch deleted +0
-8@@ -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 <[email protected]>
Was this patch merged upstream? From the below I see to understand they added --disable-modular-tests, does it disable all tests?
Quoted 26 lines
package/libglib2/libglib2.mk +4
-2@@ -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 \
package/libglib2/libglib2.mk HOST_LIBGLIB2_CONF_OPT = \ · line 74
Quoted 10 lines
package/libglib2/libglib2.mk +2
-2--disable-systemtap \ --disable-gcov \ - --disable-tests + --disable-modular-tests -LIBGLIB2_CONF_OPT += --disable-tests +LIBGLIB2_CONF_OPT += --disable-modular-tests LIBGLIB2_DEPENDENCIES = host-pkgconf host-libglib2 libffi zlib $(if $(BR2_NEEDS_GETTEXT),gettext) host-gettext
Thanks,
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH 1/3 libglib2: Bump libglib2 to 0.36.1
Quoted 9 lines
Quoted 9 lines
package/libglib2/libglib2-no-tests.patch deleted +0
-3@@ -1,117 +0,0 @@ -Add a --disable-tests option to the configure script - -Disabling the build of tests has two benefits:
Quoted 8 lines
package/libglib2/libglib2-no-tests.patch line 8
Quoted 5 lines
package/libglib2/libglib2-no-tests.patch deleted +0
-5- * Prevents the build of a lot of code that doesn't build on noMMU - platforms. - * Reduces the build time. - -Signed-off-by: Thomas Petazzoni <[email protected]>Was this patch merged upstream? From the below I see to understand they added --disable-modular-tests, does it disable all tests?
It looks like a different patch but it is in the mainline and --disable-modular-tests enables it.
Spenser
--
Spenser Gilliland
Computer Engineer
Doctoral Candidate
PATCH v2 1/3 libglib2: Bump libglib2 to 2.36.1
In reply to Spenser GillilandThis patch bumps libglib2 to version 2.36.1.
--- ...b2-make-codegen-python2-python3-compliant.patch | 192 -------------------- package/libglib2/libglib2-no-tests.patch | 117 ------------ package/libglib2/libglib2.mk | 10 +- 3 files changed, 6 insertions(+), 313 deletions(-) delete mode 100644 package/libglib2/libglib2-make-codegen-python2-python3-compliant.patch delete mode 100644 package/libglib2/libglib2-no-tests.patch
package/libglib2/libglib2-make-codegen-python2-python3-compliant.patch deleted +0 -192
@@ -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 <[email protected]> ---- -From 03611f7c0670ea14eedbc121972aed7ce60bb9ee Mon Sep 17 00:00:00 2001 -From: Simon Feltman <[email protected]> -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('<?xml version="1.0" encoding="utf-8"?>\n'%()) - self.out.write('<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"\n'%()) -diff --git a/gio/gdbus-2.0/codegen/codegen_main.py b/gio/gdbus-2.0/codegen/codegen_main.py -index 76c838c..735cc1f 100755 ---- a/gio/gdbus-2.0/codegen/codegen_main.py -+++ b/gio/gdbus-2.0/codegen/codegen_main.py -@@ -184,8 +184,8 @@ def codegen_main(): - - c_code = opts.generate_c_code - if c_code: -- h = file(c_code + '.h', 'w') -- c = file(c_code + '.c', 'w') -+ h = open(c_code + '.h', 'w') -+ c = open(c_code + '.c', 'w') - gen = codegen.CodeGenerator(all_ifaces, - opts.c_namespace, - opts.interface_prefix, -diff --git a/gio/gdbus-2.0/codegen/parser.py b/gio/gdbus-2.0/codegen/parser.py -index 5fabd44..7b9d216 100644 ---- a/gio/gdbus-2.0/codegen/parser.py -+++ b/gio/gdbus-2.0/codegen/parser.py -@@ -152,12 +152,12 @@ class DBusXMLParser: - self.state = DBusXMLParser.STATE_IGNORED - - # assign docs, if any -- if attrs.has_key('name') and self.doc_comment_last_symbol == attrs['name']: -+ if 'name' in attrs and self.doc_comment_last_symbol == attrs['name']: - self._cur_object.doc_string = self.doc_comment_body -- if self.doc_comment_params.has_key('short_description'): -+ if 'short_description' in self.doc_comment_params: - short_description = self.doc_comment_params['short_description'] - self._cur_object.doc_string_brief = short_description -- if self.doc_comment_params.has_key('since'): -+ if 'since' in self.doc_comment_params: - self._cur_object.since = self.doc_comment_params['since'] - - elif self.state == DBusXMLParser.STATE_INTERFACE: -@@ -185,16 +185,16 @@ class DBusXMLParser: - self.state = DBusXMLParser.STATE_IGNORED - - # assign docs, if any -- if attrs.has_key('name') and self.doc_comment_last_symbol == attrs['name']: -+ if 'name' in attrs and self.doc_comment_last_symbol == attrs['name']: - self._cur_object.doc_string = self.doc_comment_body -- if self.doc_comment_params.has_key('since'): -+ if 'since' in self.doc_comment_params: - self._cur_object.since = self.doc_comment_params['since'] - - elif self.state == DBusXMLParser.STATE_METHOD: - if name == DBusXMLParser.STATE_ARG: - self.state = DBusXMLParser.STATE_ARG - arg_name = None -- if attrs.has_key('name'): -+ if 'name' in attrs: - arg_name = attrs['name'] - arg = dbustypes.Arg(arg_name, attrs['type']) - direction = attrs['direction'] -@@ -215,18 +215,18 @@ class DBusXMLParser: - - # assign docs, if any - if self.doc_comment_last_symbol == old_cur_object.name: -- if attrs.has_key('name') and self.doc_comment_params.has_key(attrs['name']): -+ if 'name' in attrs and attrs['name'] in self.doc_comment_params: - doc_string = self.doc_comment_params[attrs['name']] - if doc_string != None: - self._cur_object.doc_string = doc_string -- if self.doc_comment_params.has_key('since'): -+ if 'since' in self.doc_comment_params: - self._cur_object.since = self.doc_comment_params['since'] - - elif self.state == DBusXMLParser.STATE_SIGNAL: - if name == DBusXMLParser.STATE_ARG: - self.state = DBusXMLParser.STATE_ARG - arg_name = None -- if attrs.has_key('name'): -+ if 'name' in attrs: - arg_name = attrs['name'] - arg = dbustypes.Arg(arg_name, attrs['type']) - self._cur_object.args.append(arg) -@@ -241,11 +241,11 @@ class DBusXMLParser: - - # assign docs, if any - if self.doc_comment_last_symbol == old_cur_object.name: -- if attrs.has_key('name') and self.doc_comment_params.has_key(attrs['name']): -+ if 'name' in attrs and attrs['name'] in self.doc_comment_params: - doc_string = self.doc_comment_params[attrs['name']] - if doc_string != None: - self._cur_object.doc_string = doc_string -- if self.doc_comment_params.has_key('since'): -+ if 'since' in self.doc_comment_params: - self._cur_object.since = self.doc_comment_params['since'] - - elif self.state == DBusXMLParser.STATE_PROPERTY: -diff --git a/gio/gdbus-2.0/codegen/utils.py b/gio/gdbus-2.0/codegen/utils.py -index 94bd05c..239b64e 100644 ---- a/gio/gdbus-2.0/codegen/utils.py -+++ b/gio/gdbus-2.0/codegen/utils.py -@@ -97,15 +97,8 @@ def lookup_brief_docs(annotations): - else: - return s - --# I'm sure this could be a lot more elegant if I was --# more fluent in python... --def my_version_cmp(a, b): -- if len(a[0]) > 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
package/libglib2/libglib2-no-tests.patch deleted +0 -117
117 lines not on this page · raw message
package/libglib2/libglib2.mk +6 -4
@@ -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 LIBGLIB2_DEPENDENCIES = host-pkgconf host-libglib2 libffi zlib $(if $(BR2_NEEDS_GETTEXT),gettext) host-gettext
Signature · 1 line
1.7.9.5
PATCH v2 2/3 glibmm: Bump to version 2.36.1
This upgrades glibmm to version 2.36.1
--- package/glibmm/glibmm.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/glibmm/glibmm.mk +1 -1
@@ -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)
Signature · 1 line
1.7.9.5
PATCH v3 3/3 glib-networking: Bump to version 2.36.1
In reply to Spenser Gillilandchange to version 2.36.1 of glib-networking.
--- package/glib-networking/glib-networking.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
package/glib-networking/glib-networking.mk +2 -2
@@ -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
Signature · 1 line
1.7.9.5