pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/gtk3 Don't override an existing _XOPEN_SOURCE defi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/825022050f0c
branches:  trunk
changeset: 601500:825022050f0c
user:      hans <hans%pkgsrc.org@localhost>
date:      Wed Mar 21 19:58:47 2012 +0000

description:
Don't override an existing _XOPEN_SOURCE definition. Define it on SunOS
to make this build with std=gnu99.

diffstat:

 x11/gtk3/Makefile                                  |   4 +++-
 x11/gtk3/distinfo                                  |   3 ++-
 x11/gtk3/patches/patch-gtk_gtksearchenginesimple.c |  14 ++++++++++++++
 3 files changed, 19 insertions(+), 2 deletions(-)

diffs (50 lines):

diff -r 091f39e736fe -r 825022050f0c x11/gtk3/Makefile
--- a/x11/gtk3/Makefile Wed Mar 21 19:22:30 2012 +0000
+++ b/x11/gtk3/Makefile Wed Mar 21 19:58:47 2012 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2012/03/21 12:21:56 drochner Exp $
+# $NetBSD: Makefile,v 1.18 2012/03/21 19:58:47 hans Exp $
 
 DISTNAME=      gtk+-3.2.4
 PKGNAME=       ${DISTNAME:S/gtk/gtk3/}
@@ -56,6 +56,8 @@
 TOOLS_PATH.grep=       ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}grep
 .endif
 
+CFLAGS.SunOS+=         -std=gnu99 -D_XOPEN_SOURCE=600
+
 CPPFLAGS+=             -DPREFIX="\"${PREFIX}\""
 
 # We remove the module databases during post-install since we create them
diff -r 091f39e736fe -r 825022050f0c x11/gtk3/distinfo
--- a/x11/gtk3/distinfo Wed Mar 21 19:22:30 2012 +0000
+++ b/x11/gtk3/distinfo Wed Mar 21 19:58:47 2012 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.8 2012/03/21 12:21:56 drochner Exp $
+$NetBSD: distinfo,v 1.9 2012/03/21 19:58:47 hans Exp $
 
 SHA1 (gtk+-3.2.4.tar.xz) = 3d0b6413750bc0cb51e98a387abbd606a1aa021e
 RMD160 (gtk+-3.2.4.tar.xz) = bbf0922f53a2acc2cb0337c08583208b39255768
@@ -6,3 +6,4 @@
 SHA1 (patch-ab) = 9c82cc60f3825d377a197c876fcc6faa379cbde3
 SHA1 (patch-af) = f1c8d7929ea84a3b92f0bfc76f32f8e79e1d4352
 SHA1 (patch-aj) = 88d5a5c25bcc005bce8597d1262e68a9e67b5f93
+SHA1 (patch-gtk_gtksearchenginesimple.c) = c41e529c1cafcd8152684d74971601eac4845a5a
diff -r 091f39e736fe -r 825022050f0c x11/gtk3/patches/patch-gtk_gtksearchenginesimple.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/gtk3/patches/patch-gtk_gtksearchenginesimple.c        Wed Mar 21 19:58:47 2012 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-gtk_gtksearchenginesimple.c,v 1.1 2012/03/21 19:58:47 hans Exp $
+
+--- gtk/gtksearchenginesimple.c.orig   2011-12-19 14:58:28.000000000 +0100
++++ gtk/gtksearchenginesimple.c        2012-03-21 20:36:33.118910490 +0100
+@@ -27,7 +27,9 @@
+  * export ftw() and friends only if _XOPEN_SOURCE and _GNU_SOURCE
+  * are defined. see bug #444097.
+  */
++#ifndef _XOPEN_SOURCE
+ #define _XOPEN_SOURCE 500
++#endif
+ #define _GNU_SOURCE 
+ 
+ #ifdef HAVE_FTW_H



Home | Main Index | Thread Index | Old Index