[packages/glib] - rel 24, fix broken configure checks
baggins
baggins at pld-linux.org
Thu May 7 00:01:10 CEST 2026
commit 68a59bb3a92cf4388226374eca4f7b99dbacedbe
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Thu May 7 02:00:55 2026 +0200
- rel 24, fix broken configure checks
c99.patch | 44 ++++++++++++++++++++++++++++++++++++++++++++
glib.spec | 4 +++-
2 files changed, 47 insertions(+), 1 deletion(-)
---
diff --git a/glib.spec b/glib.spec
index e7dd979..4fab7d4 100644
--- a/glib.spec
+++ b/glib.spec
@@ -12,7 +12,7 @@ Summary(pl.UTF-8): Biblioteka zawierająca wiele użytecznych funkcji C
Summary(tr.UTF-8): Yararlı ufak yordamlar kitaplığı
Name: glib
Version: 1.2.10
-Release: 23
+Release: 24
Epoch: 1
License: LGPL v2+
Group: Libraries
@@ -31,6 +31,7 @@ Patch7: texi-subsection.patch
Patch8: inline.patch
Patch9: %{name}-libdir.patch
Patch10: inline-asm.patch
+Patch11: c99.patch
URL: http://www.gtk.org/
BuildRequires: autoconf >= 2.13
BuildRequires: automake >= 1.4
@@ -114,6 +115,7 @@ Biblioteki statyczne do glib.
%patch -P8 -p1
%patch -P9 -p1
%patch -P10 -p1
+%patch -P11 -p1
%build
%{__rm} acinclude.m4
diff --git a/c99.patch b/c99.patch
new file mode 100644
index 0000000..f0d3134
--- /dev/null
+++ b/c99.patch
@@ -0,0 +1,44 @@
+--- glib-1.2.10/configure.in.orig 2026-05-07 01:18:36.000000000 +0200
++++ glib-1.2.10/configure.in 2026-05-07 01:58:58.913348019 +0200
+@@ -311,6 +311,7 @@
+ # Check for sys_siglist
+ AC_MSG_CHECKING(for sys_siglist)
+ AC_TRY_LINK(, [
++#include <stdlib.h>
+ extern char *sys_siglist[];
+ exit (sys_siglist[0]);
+ ], glib_ok=yes, glib_ok=no)
+@@ -321,7 +322,8 @@
+
+ # Check for sys_siglist decl (see Tue Jan 19 00:44:24 1999 in changelog)
+ AC_MSG_CHECKING(for sys_siglist declaration)
+-AC_TRY_COMPILE([#include <signal.h>], [
++AC_TRY_COMPILE([#include <signal.h>
++ #include <string.h>], [
+ strlen (sys_siglist[0]);
+ ], glib_ok=yes, glib_ok=no)
+ AC_MSG_RESULT($glib_ok)
+@@ -422,6 +424,7 @@
+ AC_CACHE_VAL(glib_cv_va_copy,[
+ AC_TRY_RUN([
+ #include <stdarg.h>
++ #include <stdlib.h>
+ void f (int i, ...) {
+ va_list args1, args2;
+ va_start (args1, i);
+@@ -444,6 +447,7 @@
+ AC_CACHE_VAL(glib_cv___va_copy,[
+ AC_TRY_RUN([
+ #include <stdarg.h>
++ #include <stdlib.h>
+ void f (int i, ...) {
+ va_list args1, args2;
+ va_start (args1, i);
+@@ -466,6 +470,7 @@
+ AC_CACHE_VAL(glib_cv_va_val_copy,[
+ AC_TRY_RUN([
+ #include <stdarg.h>
++ #include <stdlib.h>
+ void f (int i, ...) {
+ va_list args1, args2;
+ va_start (args1, i);
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/glib.git/commitdiff/68a59bb3a92cf4388226374eca4f7b99dbacedbe
More information about the pld-cvs-commit
mailing list