Skip to contentSkip to conversation

libglib2: Bump to version 2.56.3

PATCH Superseded Petr Vorel 2 participants 6 messages Dec 7, 2018 – Dec 30, 2018

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Petr Vorel

author
#0 lore raw

PATCH 1/1 libglib2: Bump to version 2.56.3

Drop 2 patches accepted by upstream.

---
 ...gobject-fix-compilation-with-gcc-4.7.patch | 50 ------------------
 ...compilation-without-F_-S-G-ETPIPE_SZ.patch | 52 -------------------
 package/libglib2/libglib2.hash                |  4 +-
 package/libglib2/libglib2.mk                  |  2 +-
 4 files changed, 3 insertions(+), 105 deletions(-)
 delete mode 100644 package/libglib2/0003-gobject-fix-compilation-with-gcc-4.7.patch
 delete mode 100644 package/libglib2/0005-gio-fix-compilation-without-F_-S-G-ETPIPE_SZ.patch
package/libglib2/0003-gobject-fix-compilation-with-gcc-4.7.patch deleted +0 -50
deleted file mode 100644
index fc672513ee..0000000000
@@ -1,50 +0,0 @@
-From a2b27c0d038ad76cc8016999f8788245da97e946 Mon Sep 17 00:00:00 2001
-From: Fabrice Fontaine <[email protected]>
-Date: Tue, 10 Apr 2018 19:18:57 +0200
-Subject: [PATCH] gobject: fix compilation with gcc <= 4.7
-
-On gcc 4.7, we got the following error:
-
-i686-nptl-linux-gnu-gcc --version
-> i686-nptl-linux-gnu-gcc (crosstool-NG 1.20.0) 4.7.4
-> $ echo '#include <glib-object.h>' | i686-nptl-linux-gnu-gcc -x c -I
-staging/usr/include/glib-2.0 -I staging/usr/lib/glib-2.0/include -Wall
--Werror -c - -o /tmp/foo.o
-> In file included from
-staging/usr/include/glib-2.0/gobject/gbinding.h:29:0,
->                  from staging/usr/include/glib-2.0/glib-object.h:23,
->                  from <stdin>:1:
-> staging/usr/include/glib-2.0/gobject/gobject.h: In function
-'g_set_object':
-> staging/usr/include/glib-2.0/gobject/gobject.h:725:5: error: value
-computed is not used [-Werror=unused-value]
-> cc1: all warnings being treated as errors
-
-This error has been added by commit 3fae39a5d742afe73741f5fd7aa24e3ae8182f06
-So enable the new g_set_object definition only if gcc >= 4.8
-
-Fixes:
- - http://autobuild.buildroot.net/results/b29a2f868438a2210873ea72f491db63175848be
-
-Signed-off-by: Fabrice Fontaine <[email protected]>
-Upstream-status: https://bugzilla.gnome.org/show_bug.cgi?id=795138
----
- gobject/gobject.h | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/gobject/gobject.h b/gobject/gobject.h
-index 9830663ce..838046fe0 100644
---- a/gobject/gobject.h
-+++ b/gobject/gobject.h
-@@ -507,7 +507,7 @@ GLIB_AVAILABLE_IN_ALL
- void        g_object_remove_weak_pointer      (GObject        *object, 
-                                                gpointer       *weak_pointer_location);
- 
--#if defined(__GNUC__) && !defined(__cplusplus) && GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_56
-+#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)) && !defined(__cplusplus) && GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_56
- /* Make reference APIs type safe with macros */
- #define g_object_ref(Obj)      ((__typeof__(Obj)) (g_object_ref) (Obj))
- #define g_object_ref_sink(Obj) ((__typeof__(Obj)) (g_object_ref_sink) (Obj))
--- 
-2.14.1
-
package/libglib2/0005-gio-fix-compilation-without-F_-S-G-ETPIPE_SZ.patch deleted +0 -52

52 lines not on this page · raw message

package/libglib2/libglib2.hash +2 -2
index 7ce031aa89..57403a2154 100644
@@ -1,4 +1,4 @@
-# https://download.gnome.org/sources/glib/2.56/glib-2.56.1.sha256sum
-sha256  40ef3f44f2c651c7a31aedee44259809b6f03d3d20be44545cd7d177221c0b8d  glib-2.56.1.tar.xz
+# https://download.gnome.org/sources/glib/2.56/glib-2.56.3.sha256sum
+sha256  a9a4c5b4c81b6c75bc140bdf5e32120ef3ce841b7413214ecf5f987acec74cb2  glib-2.56.3.tar.xz
 # License files, locally calculated
 sha256	dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551  COPYING
package/libglib2/libglib2.mk +1 -1
index 67db5ac359..1029eaed65 100644
@@ -5,7 +5,7 @@
 ################################################################################
 
 LIBGLIB2_VERSION_MAJOR = 2.56
-LIBGLIB2_VERSION = $(LIBGLIB2_VERSION_MAJOR).1
+LIBGLIB2_VERSION = $(LIBGLIB2_VERSION_MAJOR).3
 LIBGLIB2_SOURCE = glib-$(LIBGLIB2_VERSION).tar.xz
 LIBGLIB2_SITE = http://ftp.gnome.org/pub/gnome/sources/glib/$(LIBGLIB2_VERSION_MAJOR)
 LIBGLIB2_LICENSE = LGPL-2.1+
Signature · 1 line
2.19.2
author
#1 lore raw

PATCH 1/1 libglib2: Bump to version 2.56.3

Hi,

Quoted 11 lines

Drop 2 patches accepted by upstream.

---
 ...gobject-fix-compilation-with-gcc-4.7.patch | 50 ------------------
 ...compilation-without-F_-S-G-ETPIPE_SZ.patch | 52 -------------------
 package/libglib2/libglib2.hash                |  4 +-
 package/libglib2/libglib2.mk                  |  2 +-
 4 files changed, 3 insertions(+), 105 deletions(-)
 delete mode 100644 package/libglib2/0003-gobject-fix-compilation-with-gcc-4.7.patch
 delete mode 100644 package/libglib2/0005-gio-fix-compilation-without-F_-S-G-ETPIPE_SZ.patch

Ping, please.

Kind regards,
Petr

#2 lore raw

PATCH 1/1 libglib2: Bump to version 2.56.3

Hello,

Quoted 9 lines · Petr Vorel
Quoted 7 lines
 ...gobject-fix-compilation-with-gcc-4.7.patch | 50 ------------------
 ...compilation-without-F_-S-G-ETPIPE_SZ.patch | 52 -------------------
 package/libglib2/libglib2.hash                |  4 +-
 package/libglib2/libglib2.mk                  |  2 +-
 4 files changed, 3 insertions(+), 105 deletions(-)
 delete mode 100644 package/libglib2/0003-gobject-fix-compilation-with-gcc-4.7.patch
 delete mode 100644 package/libglib2/0005-gio-fix-compilation-without-F_-S-G-ETPIPE_SZ.patch  

Ping, please.

I tried to merge a similar bump a few weeks ago, and it caused massive build failures, so I had to revert. In the mean time, I applied the pkg-config bump, which also caused lots of issues, which have apparently now been all addressed, so it will be a good time to merge a libglib2 bump.

However, was this tested with a large number of libglib2 reverse dependencies ?

See
https://git.buildroot.org/buildroot/commit/package/libglib2?id=2694222c3d3663d9fcc55e6cf44a45b74b43793f
for details.

Did you try to build dbus-glib on the latest master, with the libglib2 bump included ?

I would be more convinced with a commit log that provides a defconfig with lots of libglib2 reverse dependencies enabled, with the statement that this defconfig continues to build fine after the libglib2 bump.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
author
#3 lore raw

PATCH 1/1 libglib2: Bump to version 2.56.3

Hi Thomas,

Quoted 6 lines

I tried to merge a similar bump a few weeks ago, and it caused massive build failures, so I had to revert. In the mean time, I applied the pkg-config bump, which also caused lots of issues, which have apparently now been all addressed, so it will be a good time to merge a libglib2 bump.

Quoted 6 lines

However, was this tested with a large number of libglib2 reverse dependencies ?

See
https://git.buildroot.org/buildroot/commit/package/libglib2?id=2694222c3d3663d9fcc55e6cf44a45b74b43793f
for details.

Thanks for info. I've noticed this revert before. Problematic version was 2.58.1 (updated from 2.56.1). That's why my commit only updated to 2.56.3 (latest 2.56.x), which should be ok.

Quoted 6 lines

Did you try to build dbus-glib on the latest master, with the libglib2 bump included ?

I would be more convinced with a commit log that provides a defconfig with lots of libglib2 reverse dependencies enabled, with the statement that this defconfig continues to build fine after the libglib2 bump.

No problem, I'll do more testing (with both versions) in January.

Quoted 3 lines

Thanks!

Thomas

Kind regards,
Petr

#4 lore raw

PATCH 1/1 libglib2: Bump to version 2.56.3

Hello Petr,

Quoted 3 lines · Petr Vorel

Thanks for info. I've noticed this revert before. Problematic version was 2.58.1 (updated from 2.56.1). That's why my commit only updated to 2.56.3 (latest 2.56.x), which should be ok.

Ah, thanks for spotting that. I didn't notice your bump was just to the latest 2.56.x. Indeed, it should be much safer. Thanks for pointing it out, I stupidly thought "it's the big glib bump that is again going to break everything". I'll apply your patch right away.

Thanks for the reminder and additional explanation.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#5 lore raw

PATCH 1/1 libglib2: Bump to version 2.56.3

In reply to Petr Vorel

Hello,

Quoted 11 lines · Petr Vorel

Drop 2 patches accepted by upstream.

---
 ...gobject-fix-compilation-with-gcc-4.7.patch | 50 ------------------
 ...compilation-without-F_-S-G-ETPIPE_SZ.patch | 52 -------------------
 package/libglib2/libglib2.hash                |  4 +-
 package/libglib2/libglib2.mk                  |  2 +-
 4 files changed, 3 insertions(+), 105 deletions(-)
 delete mode 100644 package/libglib2/0003-gobject-fix-compilation-with-gcc-4.7.patch
 delete mode 100644 package/libglib2/0005-gio-fix-compilation-without-F_-S-G-ETPIPE_SZ.patch

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com