Minor version bump. Bugs and security fixes.
https://gitlab.gnome.org/GNOME/glib/-/releases/2.74.4

* Add patchset. Unfortunately, glib-2.74.4 managed
to break bulding in some situations by missing to include errno.h.
This will be removed in the next stable release, be it a minor
or a major one.

Signed-off-by: Christian Melki <christian.me...@t2data.com>
---
 ...thread-posix-need-to-include-errno.h.patch | 24 +++++++++++++++++++
 patches/glib-2.74.4/series                    |  4 ++++
 rules/glib.make                               |  4 ++--
 3 files changed, 30 insertions(+), 2 deletions(-)
 create mode 100644 
patches/glib-2.74.4/0001-gthread-posix-need-to-include-errno.h.patch
 create mode 100644 patches/glib-2.74.4/series

diff --git 
a/patches/glib-2.74.4/0001-gthread-posix-need-to-include-errno.h.patch 
b/patches/glib-2.74.4/0001-gthread-posix-need-to-include-errno.h.patch
new file mode 100644
index 000000000..916d54903
--- /dev/null
+++ b/patches/glib-2.74.4/0001-gthread-posix-need-to-include-errno.h.patch
@@ -0,0 +1,24 @@
+From: Michael Catanzaro <mcatanz...@redhat.com>
+Date: Tue, 20 Dec 2022 17:10:41 -0600
+Subject: [PATCH] gthread-posix: need to #include <errno.h>
+
+a79c6af23eff5ee978db62e048828c9a992a1261 uses errno without the required
+header.
+
+(cherry picked from commit 03cb4261e00cf505790f4fd4e69f97b2ef4fcccd)
+---
+ glib/gthreadprivate.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/glib/gthreadprivate.h b/glib/gthreadprivate.h
+index 6eaf422753ba..f34368a7c20a 100644
+--- a/glib/gthreadprivate.h
++++ b/glib/gthreadprivate.h
+@@ -41,6 +41,7 @@ struct  _GRealThread
+ /* system thread implementation (gthread-posix.c, gthread-win32.c) */
+ 
+ #if defined(HAVE_FUTEX) || defined(HAVE_FUTEX_TIME64)
++#include <errno.h>
+ #include <linux/futex.h>
+ #include <sys/syscall.h>
+ #include <unistd.h>
diff --git a/patches/glib-2.74.4/series b/patches/glib-2.74.4/series
new file mode 100644
index 000000000..73c35dbc7
--- /dev/null
+++ b/patches/glib-2.74.4/series
@@ -0,0 +1,4 @@
+# generated by git-ptx-patches
+#tag:base --start-number 1
+0001-gthread-posix-need-to-include-errno.h.patch
+# 2cab62acd9f100167b4b7a5c5967b1a7  - git-ptx-patches magic
diff --git a/rules/glib.make b/rules/glib.make
index 6ccf03735..e6bd151f9 100644
--- a/rules/glib.make
+++ b/rules/glib.make
@@ -15,8 +15,8 @@ PACKAGES-$(PTXCONF_GLIB) += glib
 #
 # Paths and names
 #
-GLIB_VERSION   := 2.74.3
-GLIB_MD5       := fb204b89b0004110911dede3441597a1
+GLIB_VERSION   := 2.74.4
+GLIB_MD5       := a854964bbf295dcfa98afd210d7fbc39
 GLIB           := glib-$(GLIB_VERSION)
 GLIB_SUFFIX    := tar.xz
 GLIB_URL       := $(call ptx/mirror, GNOME, glib/$(basename 
$(GLIB_VERSION))/$(GLIB).$(GLIB_SUFFIX))
-- 
2.34.1


Reply via email to