pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/glib Fix glib.h's NULL definition for C++: it MU...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/10596aa7b6e7
branches:  trunk
changeset: 506181:10596aa7b6e7
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Jan 12 19:49:15 2006 +0000

description:
Fix glib.h's NULL definition for C++: it MUST be 0 there, not (void *)0.
Bump revision.

diffstat:

 devel/glib/Makefile         |   4 ++--
 devel/glib/distinfo         |   4 ++--
 devel/glib/patches/patch-aj |  19 ++++++++++++++++---
 3 files changed, 20 insertions(+), 7 deletions(-)

diffs (56 lines):

diff -r b121f33b900c -r 10596aa7b6e7 devel/glib/Makefile
--- a/devel/glib/Makefile       Thu Jan 12 19:48:02 2006 +0000
+++ b/devel/glib/Makefile       Thu Jan 12 19:49:15 2006 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.77 2005/04/11 21:45:23 tv Exp $
+# $NetBSD: Makefile,v 1.78 2006/01/12 19:49:15 joerg Exp $
 
 DISTNAME=              glib-1.2.10
-PKGREVISION=           8
+PKGREVISION=           9
 CATEGORIES=            devel
 MASTER_SITES=          ftp://ftp.gtk.org/pub/gtk/v1.2/ \
                        ftp://ftp.cs.umn.edu/pub/gimp/gtk/v1.2/ \
diff -r b121f33b900c -r 10596aa7b6e7 devel/glib/distinfo
--- a/devel/glib/distinfo       Thu Jan 12 19:48:02 2006 +0000
+++ b/devel/glib/distinfo       Thu Jan 12 19:49:15 2006 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.16 2005/06/06 18:57:30 jmmv Exp $
+$NetBSD: distinfo,v 1.17 2006/01/12 19:49:15 joerg Exp $
 
 SHA1 (glib-1.2.10.tar.gz) = e5a9361c594608d152d5d9650154c2e3260b87fa
 RMD160 (glib-1.2.10.tar.gz) = f19efe8c87ebeea979a4d36902d8a8209640cd95
@@ -12,4 +12,4 @@
 SHA1 (patch-ag) = efdff0d20a1c3280c9916405a8d89190c68b9604
 SHA1 (patch-ah) = 1e6dec25db0c72601868bb0f7c465202ecead81b
 SHA1 (patch-ai) = 6f6e5727bcb52655865b689c923601843d8d453d
-SHA1 (patch-aj) = ee05519f3b36e5b2a711ca01599ba1f0662faa20
+SHA1 (patch-aj) = 25cdacb4742589533f37113dcbb50ba7c6dd45bc
diff -r b121f33b900c -r 10596aa7b6e7 devel/glib/patches/patch-aj
--- a/devel/glib/patches/patch-aj       Thu Jan 12 19:48:02 2006 +0000
+++ b/devel/glib/patches/patch-aj       Thu Jan 12 19:49:15 2006 +0000
@@ -1,8 +1,21 @@
-$NetBSD: patch-aj,v 1.1 2004/06/01 08:03:10 shannonjr Exp $
+$NetBSD: patch-aj,v 1.2 2006/01/12 19:49:15 joerg Exp $
 
---- glib.h.orig        2001-02-26 20:44:38.000000000 -0700
+--- glib.h.orig        2001-02-27 03:44:38.000000000 +0000
 +++ glib.h
-@@ -271,14 +271,18 @@ extern "C" {
+@@ -119,8 +119,12 @@ extern "C" {
+  *  defined then the current definition is correct.
+  */
+ #ifndef       NULL
++#ifdef                __cplusplus
++#define       NULL    (0L)
++#else
+ #define       NULL    ((void*) 0)
+ #endif
++#endif
+ 
+ #ifndef       FALSE
+ #define       FALSE   (0)
+@@ -271,14 +275,18 @@ extern "C" {
  
  /* Wrap the gcc __PRETTY_FUNCTION__ and __FUNCTION__ variables with
   * macros, so we can refer to them as strings unconditionally.



Home | Main Index | Thread Index | Old Index