pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/glib2 Compensate QNX's lack of SA_RESTART flag (...
details: https://anonhg.NetBSD.org/pkgsrc/rev/fa813950ee77
branches: trunk
changeset: 550837:fa813950ee77
user: ahoka <ahoka%pkgsrc.org@localhost>
date: Sun Nov 30 22:25:01 2008 +0000
description:
Compensate QNX's lack of SA_RESTART flag (It can be safely ignored).
Maybe this could be autoconf (but defining HAVE_SA_RESTART if
SA_RESTART is defined would be awkward (wouldn't it?).
diffstat:
devel/glib2/distinfo | 5 +++--
devel/glib2/patches/patch-ag | 16 ++++++++++++++++
devel/glib2/patches/patch-ai | 20 ++++++++++++++++----
3 files changed, 35 insertions(+), 6 deletions(-)
diffs (80 lines):
diff -r 2efcf7723b29 -r fa813950ee77 devel/glib2/distinfo
--- a/devel/glib2/distinfo Sun Nov 30 22:19:01 2008 +0000
+++ b/devel/glib2/distinfo Sun Nov 30 22:25:01 2008 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.105 2008/11/29 19:09:04 jmcneill Exp $
+$NetBSD: distinfo,v 1.106 2008/11/30 22:25:01 ahoka Exp $
SHA1 (glib-2.18.3.tar.bz2) = 293f639fb85ea47347eb34e122327c60ef7606e4
RMD160 (glib-2.18.3.tar.bz2) = cf43fbba04250becaabdb7b7f55bcdec584f019e
@@ -9,8 +9,9 @@
SHA1 (patch-ad) = c926d96bdc9ddf4f434fc57af0adbe11002cffc3
SHA1 (patch-ae) = 09f16e8e14bdea3ee0e478d335f65cb66939e5f5
SHA1 (patch-af) = fa3bbb257d37b3763a628d09681701b697b9b75c
+SHA1 (patch-ag) = f4b1694c19dbddaf8b536c63f73d95f60cbec669
SHA1 (patch-ah) = 239dc3d0734424a7cafc5dd8d8381768cba2d23e
-SHA1 (patch-ai) = 29faa9647a201bf82b016af0d48f61fc06baac7c
+SHA1 (patch-ai) = 30b371e345a1ab3a07ce1fe2fe9c599398d668eb
SHA1 (patch-aj) = a8c4e79113828e6dadf0b158777bb860aa44de3e
SHA1 (patch-ak) = f382189966f073b3b6e6de89ea7709571241a9a0
SHA1 (patch-al) = de5135c328027b3c4543bb09994d31b6ffedeafa
diff -r 2efcf7723b29 -r fa813950ee77 devel/glib2/patches/patch-ag
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/glib2/patches/patch-ag Sun Nov 30 22:25:01 2008 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-ag,v 1.17 2008/11/30 22:25:01 ahoka Exp $
+
+--- glib/gtester.c.orig 2008-11-24 06:45:23.000000000 +0100
++++ glib/gtester.c
+@@ -636,7 +636,11 @@ main (int argc,
+ struct sigaction osa;
+ sa.sa_handler = SIG_DFL;
+ sigfillset (&sa.sa_mask);
++#ifdef SA_RESTART
+ sa.sa_flags = SA_RESTART;
++#else /* QNX */
++ sa.sa_flags = 0;
++#endif
+ sigaction (SIGCHLD, &sa, &osa);
+ }
+
diff -r 2efcf7723b29 -r fa813950ee77 devel/glib2/patches/patch-ai
--- a/devel/glib2/patches/patch-ai Sun Nov 30 22:19:01 2008 +0000
+++ b/devel/glib2/patches/patch-ai Sun Nov 30 22:25:01 2008 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-ai,v 1.15 2008/09/06 11:07:20 obache Exp $
+$NetBSD: patch-ai,v 1.16 2008/11/30 22:25:01 ahoka Exp $
---- glib/gmain.c.orig 2008-09-02 15:09:41.000000000 +0000
+--- glib/gmain.c.orig 2008-11-24 06:45:23.000000000 +0100
+++ glib/gmain.c
-@@ -2717,13 +2717,13 @@ g_main_context_iterate (GMainContext *co
+@@ -2720,13 +2720,13 @@ g_main_context_iterate (GMainContext *co
{
gboolean got_ownership;
@@ -18,7 +18,7 @@
if (!context->cond)
context->cond = g_cond_new ();
-@@ -2733,7 +2733,6 @@ g_main_context_iterate (GMainContext *co
+@@ -2736,7 +2736,6 @@ g_main_context_iterate (GMainContext *co
if (!got_ownership)
{
@@ -26,3 +26,15 @@
return FALSE;
}
}
+@@ -4039,7 +4038,11 @@ g_child_watch_source_init_multi_threaded
+
+ action.sa_handler = g_child_watch_signal_handler;
+ sigemptyset (&action.sa_mask);
++#ifdef SA_RESTART
+ action.sa_flags = SA_RESTART | SA_NOCLDSTOP;
++#else /* QNX */
++ action.sa_flags = SA_NOCLDSTOP;
++#endif
+ sigaction (SIGCHLD, &action, NULL);
+ }
+
Home |
Main Index |
Thread Index |
Old Index