pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/glib2 Fix build on SunOS.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/52d9c3c81958
branches:  trunk
changeset: 603579:52d9c3c81958
user:      hans <hans%pkgsrc.org@localhost>
date:      Tue May 08 16:07:22 2012 +0000

description:
Fix build on SunOS.

diffstat:

 devel/glib2/Makefile                           |   5 +++--
 devel/glib2/distinfo                           |   3 ++-
 devel/glib2/patches/patch-glib_tests_include.c |  17 +++++++++++++++++
 3 files changed, 22 insertions(+), 3 deletions(-)

diffs (54 lines):

diff -r ca3db376b9ce -r 52d9c3c81958 devel/glib2/Makefile
--- a/devel/glib2/Makefile      Tue May 08 11:20:13 2012 +0000
+++ b/devel/glib2/Makefile      Tue May 08 16:07:22 2012 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.202 2012/05/04 10:22:08 obache Exp $
+# $NetBSD: Makefile,v 1.203 2012/05/08 16:07:22 hans Exp $
 
 .include "Makefile.common"
 .include "options.mk"
@@ -40,7 +40,8 @@
 # needs gz_header structure
 BUILDLINK_API_DEPENDS.zlib+=   zlib>=1.2.2.1
 
-LIBS.SunOS+=   -lnsl -lsocket
+LIBS.SunOS+=           -lnsl -lsocket
+CPPFLAGS.SunOS+=       -DBSD_COMP
 
 .if ${OBJECT_FMT} == "ELF"
 .include "../../devel/libelf/buildlink3.mk"
diff -r ca3db376b9ce -r 52d9c3c81958 devel/glib2/distinfo
--- a/devel/glib2/distinfo      Tue May 08 11:20:13 2012 +0000
+++ b/devel/glib2/distinfo      Tue May 08 16:07:22 2012 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.171 2012/05/04 10:22:08 obache Exp $
+$NetBSD: distinfo,v 1.172 2012/05/08 16:07:23 hans Exp $
 
 SHA1 (glib-2.32.2.tar.xz) = 5898165e58c8f946c2b1fd05b910fe4476b64164
 RMD160 (glib-2.32.2.tar.xz) = 2ec828c54c31f07d9d28d182f1d6e8398e112928
@@ -35,3 +35,4 @@
 SHA1 (patch-cm) = 7f14ab327d021537714f876fbfbd4b0350d98a6e
 SHA1 (patch-cn) = 7a2f42fc1199bfc3fd2ccbd2ed1c56a7f6c0028f
 SHA1 (patch-glib_goption.c) = 323297aa328b85493f156792b4baa0cb04fa82ad
+SHA1 (patch-glib_tests_include.c) = 95f7d34e6e03849316bbfac1541eec4582b92ffc
diff -r ca3db376b9ce -r 52d9c3c81958 devel/glib2/patches/patch-glib_tests_include.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/glib2/patches/patch-glib_tests_include.c    Tue May 08 16:07:22 2012 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-glib_tests_include.c,v 1.1 2012/05/08 16:07:23 hans Exp $
+
+SunOS requires _XOPEN_SOURCE etc. to be set correctly when compiling C99.
+
+--- glib/tests/include.c.orig  2012-04-13 01:39:20.000000000 +0200
++++ glib/tests/include.c       2012-05-08 15:05:36.027464330 +0200
+@@ -1,8 +1,10 @@
+ /* Test case for bug 659866 */
+ 
++#ifndef __sun
+ #define _POSIX_C_SOURCE 199309L
+ #undef _GNU_SOURCE
+ #undef _XOPEN_SOURCE
++#endif
+ #include <pthread.h>
+ #include <glib.h>
+ 



Home | Main Index | Thread Index | Old Index