Skip to contentSkip to conversation

libglib2: bump to 2.58.3

PATCH Superseded aduskett at gmail.com 2 participants 3 messages Jan 28, 2019

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libglib2: bump to 2.58.3

From: Adam Duskett <[email protected]>

In addition:
- Re-add the changes from 178eb1d7ea165d87460224d297ce615bb63090f0

- Add a new patch: 0005-remove-glib-2.0.pc-bindir-variable-prefix.patch This patch fixes the previous autobuild errors by removing the ${bindir} variable in the front of the glib_genmarshal, gobject_query and glib_mkenums lines.

All tests passed with the packages: AT, libsoup, and dbus-glib selected:
br-arm-full [1/6]: OK
br-arm-cortex-a9-glibc [2/6]: OK
br-arm-cortex-m4-full [3/6]: SKIPPED
br-x86-64-musl [4/6]: OK
br-arm-full-static [5/6]: OK
armv5-ctng-linux-gnueabi [6/6]: OK

---
 package/libglib2/0002-disable-tests.patch     |  8 ++--
 ...e-glib-2.0.pc-bindir-variable-prefix.patch | 37 +++++++++++++++++++
 package/libglib2/libglib2.hash                |  4 +-
 package/libglib2/libglib2.mk                  | 11 +++++-
 4 files changed, 54 insertions(+), 6 deletions(-)
 create mode 100644 package/libglib2/0005-remove-glib-2.0.pc-bindir-variable-prefix.patch
package/libglib2/0002-disable-tests.patch +5 -3
index 523ebb35ac..e03dc2fee2 100644
@@ -8,6 +8,8 @@ gets mixed with distro python leading to build failures.
 
 Signed-off-by: Gustavo Zacarias <[email protected]>
 Signed-off-by: Adam Duskett <[email protected]>
+Signed-off-by: Fabrice Fontaine <[email protected]>
+[Update for version 2.58.1]
 ---
  Makefile.am      | 2 +-
  gio/Makefile.am  | 2 +-
@@ -22,9 +24,9 @@ index 008ad58..007332d 100644
  
  ACLOCAL_AMFLAGS = -I m4macros ${ACLOCAL_FLAGS}
  
--SUBDIRS = . m4macros glib gmodule gthread gobject gio po docs tests
-+SUBDIRS = . m4macros glib gmodule gthread gobject gio po docs
- DIST_SUBDIRS = $(SUBDIRS) build win32
+-SUBDIRS = . m4macros glib gmodule gthread gobject gio po docs tests subprojects
++SUBDIRS = . m4macros glib gmodule gthread gobject gio po docs subprojects
+ DIST_SUBDIRS = $(SUBDIRS) build
  
  bin_SCRIPTS = glib-gettextize
 diff --git a/gio/Makefile.am b/gio/Makefile.am
package/libglib2/0005-remove-glib-2.0.pc-bindir-variable-prefix.patch new file +37 -0
new file mode 100644
index 0000000000..561f461da9
@@ -0,0 +1,37 @@
+From d30304db01a87964bdccf1ff99b6baf257fa26c6 Mon Sep 17 00:00:00 2001
+From: Adam Duskett <[email protected]>
+Date: Mon, 28 Jan 2019 15:22:31 -0500
+Subject: [PATCH] remove glib-2.0.pc bindir variable prefix.
+
+If glib_genmarshal, gobject_query or glib_mkenums are prefixed with
+${bindir} pkg-config will search the host system if the --variable flag
+is called.
+
+Revert the behavior by removing the bindir prefix from these variables.
+
+Signed-off-by: Adam Duskett <[email protected]>
+---
+ glib-2.0.pc.in | 7 +++----
+ 1 file changed, 3 insertions(+), 4 deletions(-)
+
+diff --git a/glib-2.0.pc.in b/glib-2.0.pc.in
+index 3c5ea81..275fc01 100644
+--- a/glib-2.0.pc.in
++++ b/glib-2.0.pc.in
+@@ -3,10 +3,9 @@ exec_prefix=@exec_prefix@
+ libdir=@libdir@
+ includedir=@includedir@
+ 
+-bindir=@bindir@
+-glib_genmarshal=${bindir}/glib-genmarshal
+-gobject_query=${bindir}/gobject-query
+-glib_mkenums=${bindir}/glib-mkenums
++glib_genmarshal=glib-genmarshal
++gobject_query=gobject-query
++glib_mkenums=glib-mkenums
+ 
+ Name: GLib
+ Description: C Utility Library
+-- 
+2.20.1
+
package/libglib2/libglib2.hash +2 -2
index 57403a2154..7aa4c6cc02 100644
@@ -1,4 +1,4 @@
-# https://download.gnome.org/sources/glib/2.56/glib-2.56.3.sha256sum
-sha256  a9a4c5b4c81b6c75bc140bdf5e32120ef3ce841b7413214ecf5f987acec74cb2  glib-2.56.3.tar.xz
+# http://ftp.gnome.org/pub/gnome/sources/glib/2.58/glib-2.58.3.sha256sum
+sha256  8f43c31767e88a25da72b52a40f3301fefc49a665b56dc10ee7cc9565cbe7481  glib-2.58.3.tar.xz
 # License files, locally calculated
 sha256	dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551  COPYING
package/libglib2/libglib2.mk +10 -1
index f602c371f5..981112cac0 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-LIBGLIB2_VERSION_MAJOR = 2.56
+LIBGLIB2_VERSION_MAJOR = 2.58
 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)
@@ -13,6 +13,15 @@ LIBGLIB2_LICENSE_FILES = COPYING
 # 0002-disable-tests.patch
 LIBGLIB2_AUTORECONF = YES
 
+# Copy what is done in autogen.sh when gtk-doc is not available
+define LIBGLIB2_GTK_DOC_HOOK
+	echo "EXTRA_DIST=" > $(@D)/gtk-doc.make
+	echo "CLEANFILES=" >> $(@D)/gtk-doc.make
+endef
+
+LIBGLIB2_PRE_CONFIGURE_HOOKS += LIBGLIB2_GTK_DOC_HOOK
+HOST_LIBGLIB2_PRE_CONFIGURE_HOOKS += LIBGLIB2_GTK_DOC_HOOK
+
 LIBGLIB2_INSTALL_STAGING = YES
 LIBGLIB2_INSTALL_STAGING_OPTS = DESTDIR=$(STAGING_DIR) LDFLAGS=-L$(STAGING_DIR)/usr/lib install
 
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 libglib2: bump to 2.58.3

Hi Adam,

Thanks for this second attempt at bumping libglib2.

Quoted 4 lines · aduskett at gmail.com

From: Adam Duskett <[email protected]>

In addition:
- Re-add the changes from 178eb1d7ea165d87460224d297ce615bb63090f0

This is not saying much, better copy the relevant parts of the original commit
message.

Quoted 15 lines

- Add a new patch: 0005-remove-glib-2.0.pc-bindir-variable-prefix.patch This patch fixes the previous autobuild errors by removing the ${bindir} variable in the front of the glib_genmarshal, gobject_query and glib_mkenums lines.

All tests passed with the packages: AT, libsoup, and dbus-glib selected:
br-arm-full [1/6]: OK
br-arm-cortex-a9-glibc [2/6]: OK
br-arm-cortex-m4-full [3/6]: SKIPPED
br-x86-64-musl [4/6]: OK
br-arm-full-static [5/6]: OK
armv5-ctng-linux-gnueabi [6/6]: OK

[snip]

Quoted 6 lines
package/libglib2/0005-remove-glib-2.0.pc-bindir-variable-prefix.patch new file +0 -0
new file mode 100644
index 0000000000..561f461da9

package/libglib2/0005-remove-glib-2.0.pc-bindir-variable-prefix.patch line 10

Quoted 10 lines
package/libglib2/0005-remove-glib-2.0.pc-bindir-variable-prefix.patch new file +10 -0
@@ -0,0 +1,37 @@
+From d30304db01a87964bdccf1ff99b6baf257fa26c6 Mon Sep 17 00:00:00 2001
+From: Adam Duskett <[email protected]>
+Date: Mon, 28 Jan 2019 15:22:31 -0500
+Subject: [PATCH] remove glib-2.0.pc bindir variable prefix.
+
+If glib_genmarshal, gobject_query or glib_mkenums are prefixed with
+${bindir} pkg-config will search the host system if the --variable flag
+is called.
+
+Revert the behavior by removing the bindir prefix from these variables.

This is not upstreamable since it reverts upstream behaviour.

So let's see if we can find something upstreamable...

The upstream commit that introduces this issue refers to [1] to explain why the
prefix is added. That post basically says that the .pc file should not contain absolute paths, but rather paths that are relative to some other variable.

Quoted 6 lines
package/libglib2/0005-remove-glib-2.0.pc-bindir-variable-prefix.patch new file +6 -0
+
+Signed-off-by: Adam Duskett <[email protected]>
+---
+ glib-2.0.pc.in | 7 +++----
+ 1 file changed, 3 insertions(+), 4 deletions(-)
+

package/libglib2/0005-remove-glib-2.0.pc-bindir-variable-prefix.patch line 26

Quoted 10 lines
package/libglib2/0005-remove-glib-2.0.pc-bindir-variable-prefix.patch new file +10 -0
+diff --git a/glib-2.0.pc.in b/glib-2.0.pc.in
+index 3c5ea81..275fc01 100644
+--- a/glib-2.0.pc.in
++++ b/glib-2.0.pc.in
+@@ -3,10 +3,9 @@ exec_prefix=@exec_prefix@
+ libdir=@libdir@
+ includedir=@includedir@
+ 
+-bindir=@bindir@
+-glib_genmarshal=${bindir}/glib-genmarshal

This could be changed into:

tooldir=${bindir}
glib_genmarshal=${tooldir}/glib-genmarshal

pkg-config --variable=glib_genmarshal will evaluate to exactly the same value
as before. However, the extra tooldir variable allows us to add a post-install-staging hook that SEDs it into the host path instead of the staging path. Our sed can of course use an absolute path.

If you make this an upstreamable patch, please make sure that the meson version
(glib/meson.build) is also updated.

Regards,
Arnout

Quoted 52 lines
package/libglib2/0005-remove-glib-2.0.pc-bindir-variable-prefix.patch new file +11 -0
+-gobject_query=${bindir}/gobject-query
+-glib_mkenums=${bindir}/glib-mkenums
++glib_genmarshal=glib-genmarshal
++gobject_query=gobject-query
++glib_mkenums=glib-mkenums
+ 
+ Name: GLib
+ Description: C Utility Library
+-- 
+2.20.1
+
package/libglib2/libglib2.hash +2 -2
index 57403a2154..7aa4c6cc02 100644
@@ -1,4 +1,4 @@
-# https://download.gnome.org/sources/glib/2.56/glib-2.56.3.sha256sum
-sha256  a9a4c5b4c81b6c75bc140bdf5e32120ef3ce841b7413214ecf5f987acec74cb2  glib-2.56.3.tar.xz
+# http://ftp.gnome.org/pub/gnome/sources/glib/2.58/glib-2.58.3.sha256sum
+sha256  8f43c31767e88a25da72b52a40f3301fefc49a665b56dc10ee7cc9565cbe7481  glib-2.58.3.tar.xz
 # License files, locally calculated
 sha256	dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551  COPYING
package/libglib2/libglib2.mk +10 -1
index f602c371f5..981112cac0 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-LIBGLIB2_VERSION_MAJOR = 2.56
+LIBGLIB2_VERSION_MAJOR = 2.58
 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)
@@ -13,6 +13,15 @@ LIBGLIB2_LICENSE_FILES = COPYING
 # 0002-disable-tests.patch
 LIBGLIB2_AUTORECONF = YES
 
+# Copy what is done in autogen.sh when gtk-doc is not available
+define LIBGLIB2_GTK_DOC_HOOK
+	echo "EXTRA_DIST=" > $(@D)/gtk-doc.make
+	echo "CLEANFILES=" >> $(@D)/gtk-doc.make
+endef
+
+LIBGLIB2_PRE_CONFIGURE_HOOKS += LIBGLIB2_GTK_DOC_HOOK
+HOST_LIBGLIB2_PRE_CONFIGURE_HOOKS += LIBGLIB2_GTK_DOC_HOOK
+
 LIBGLIB2_INSTALL_STAGING = YES
 LIBGLIB2_INSTALL_STAGING_OPTS = DESTDIR=$(STAGING_DIR) LDFLAGS=-L$(STAGING_DIR)/usr/lib install
 
#2 lore raw

PATCH 1/1 libglib2: bump to 2.58.3

Hey Arnout

Quoted 77 lines · Arnout Vandecappelle

Hi Adam,

Thanks for this second attempt at bumping libglib2.

Quoted 4 lines · aduskett at gmail.com

From: Adam Duskett <[email protected]>

In addition:
- Re-add the changes from 178eb1d7ea165d87460224d297ce615bb63090f0

This is not saying much, better copy the relevant parts of the original commit
message.

Quoted 15 lines

- Add a new patch: 0005-remove-glib-2.0.pc-bindir-variable-prefix.patch This patch fixes the previous autobuild errors by removing the ${bindir} variable in the front of the glib_genmarshal, gobject_query and glib_mkenums lines.

All tests passed with the packages: AT, libsoup, and dbus-glib selected:
br-arm-full [1/6]: OK
br-arm-cortex-a9-glibc [2/6]: OK
br-arm-cortex-m4-full [3/6]: SKIPPED
br-x86-64-musl [4/6]: OK
br-arm-full-static [5/6]: OK
armv5-ctng-linux-gnueabi [6/6]: OK

[snip]

Quoted 6 lines
package/libglib2/0005-remove-glib-2.0.pc-bindir-variable-prefix.patch new file +0 -0
new file mode 100644
index 0000000000..561f461da9

package/libglib2/0005-remove-glib-2.0.pc-bindir-variable-prefix.patch line 10

Quoted 10 lines
package/libglib2/0005-remove-glib-2.0.pc-bindir-variable-prefix.patch new file +10 -0
@@ -0,0 +1,37 @@
+From d30304db01a87964bdccf1ff99b6baf257fa26c6 Mon Sep 17 00:00:00 2001
+From: Adam Duskett <[email protected]>
+Date: Mon, 28 Jan 2019 15:22:31 -0500
+Subject: [PATCH] remove glib-2.0.pc bindir variable prefix.
+
+If glib_genmarshal, gobject_query or glib_mkenums are prefixed with
+${bindir} pkg-config will search the host system if the --variable flag
+is called.
+
+Revert the behavior by removing the bindir prefix from these variables.

This is not upstreamable since it reverts upstream behaviour.

So let's see if we can find something upstreamable...

The upstream commit that introduces this issue refers to [1] to explain why the
prefix is added. That post basically says that the .pc file should not contain absolute paths, but rather paths that are relative to some other variable.

Quoted 6 lines
package/libglib2/0005-remove-glib-2.0.pc-bindir-variable-prefix.patch new file +6 -0
+
+Signed-off-by: Adam Duskett <[email protected]>
+---
+ glib-2.0.pc.in | 7 +++----
+ 1 file changed, 3 insertions(+), 4 deletions(-)
+

package/libglib2/0005-remove-glib-2.0.pc-bindir-variable-prefix.patch line 26

Quoted 10 lines
package/libglib2/0005-remove-glib-2.0.pc-bindir-variable-prefix.patch new file +10 -0
+diff --git a/glib-2.0.pc.in b/glib-2.0.pc.in
+index 3c5ea81..275fc01 100644
+--- a/glib-2.0.pc.in
++++ b/glib-2.0.pc.in
+@@ -3,10 +3,9 @@ exec_prefix=@exec_prefix@
+ libdir=@libdir@
+ includedir=@includedir@
+
+-bindir=@bindir@
+-glib_genmarshal=${bindir}/glib-genmarshal

This could be changed into:

tooldir=${bindir}
glib_genmarshal=${tooldir}/glib-genmarshal

Quoted 8 lines

pkg-config --variable=glib_genmarshal will evaluate to exactly the same value
as before. However, the extra tooldir variable allows us to add a post-install-staging hook that SEDs it into the host path instead of the staging path. Our sed can of course use an absolute path.

If you make this an upstreamable patch, please make sure that the meson version
(glib/meson.build) is also updated.

Eh, this was a quick patch that worked with everything. I really don't have time to deal
with libglib2. I asked Yann on IRC if the patch was acceptable and he seemed to not
mind it.

I can reject the patch if you want.

Thanks!
Adam

Quoted 55 lines

Regards,
Arnout

Quoted 52 lines
package/libglib2/0005-remove-glib-2.0.pc-bindir-variable-prefix.patch new file +11 -0
+-gobject_query=${bindir}/gobject-query
+-glib_mkenums=${bindir}/glib-mkenums
++glib_genmarshal=glib-genmarshal
++gobject_query=gobject-query
++glib_mkenums=glib-mkenums
+
+ Name: GLib
+ Description: C Utility Library
+--
+2.20.1
+
package/libglib2/libglib2.hash +2 -2
index 57403a2154..7aa4c6cc02 100644
@@ -1,4 +1,4 @@
-# https://download.gnome.org/sources/glib/2.56/glib-2.56.3.sha256sum
-sha256  a9a4c5b4c81b6c75bc140bdf5e32120ef3ce841b7413214ecf5f987acec74cb2  glib-2.56.3.tar.xz
+# http://ftp.gnome.org/pub/gnome/sources/glib/2.58/glib-2.58.3.sha256sum
+sha256  8f43c31767e88a25da72b52a40f3301fefc49a665b56dc10ee7cc9565cbe7481  glib-2.58.3.tar.xz
 # License files, locally calculated
 sha256       dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551  COPYING
package/libglib2/libglib2.mk +10 -1
index f602c371f5..981112cac0 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-LIBGLIB2_VERSION_MAJOR = 2.56
+LIBGLIB2_VERSION_MAJOR = 2.58
 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)
@@ -13,6 +13,15 @@ LIBGLIB2_LICENSE_FILES = COPYING
 # 0002-disable-tests.patch
 LIBGLIB2_AUTORECONF = YES
 
+# Copy what is done in autogen.sh when gtk-doc is not available
+define LIBGLIB2_GTK_DOC_HOOK
+     echo "EXTRA_DIST=" > $(@D)/gtk-doc.make
+     echo "CLEANFILES=" >> $(@D)/gtk-doc.make
+endef
+
+LIBGLIB2_PRE_CONFIGURE_HOOKS += LIBGLIB2_GTK_DOC_HOOK
+HOST_LIBGLIB2_PRE_CONFIGURE_HOOKS += LIBGLIB2_GTK_DOC_HOOK
+
 LIBGLIB2_INSTALL_STAGING = YES
 LIBGLIB2_INSTALL_STAGING_OPTS = DESTDIR=$(STAGING_DIR) LDFLAGS=-L$(STAGING_DIR)/usr/lib install