pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/glib Re: PR 25706 Syntax error prevents compilat...
details: https://anonhg.NetBSD.org/pkgsrc/rev/ef18af5a88bb
branches: trunk
changeset: 475998:ef18af5a88bb
user: shannonjr <shannonjr%pkgsrc.org@localhost>
date: Tue Jun 01 08:03:10 2004 +0000
description:
Re: PR 25706 Syntax error prevents compilation with gcc 3.4.0
Applied patch provided by Christian Biere <christianbiere%gmx.de@localhost>
The patch ensures that G_GNUC_FUNCTION and G_GNUC_PRETTY_FUNCTION always
expand to string literals - necessary since they will be concatenated
(the source of the compilation error). This closes the PR.
diffstat:
devel/glib/distinfo | 3 ++-
devel/glib/patches/patch-aj | 26 ++++++++++++++++++++++++++
2 files changed, 28 insertions(+), 1 deletions(-)
diffs (44 lines):
diff -r a6f8639d844b -r ef18af5a88bb devel/glib/distinfo
--- a/devel/glib/distinfo Tue Jun 01 07:40:15 2004 +0000
+++ b/devel/glib/distinfo Tue Jun 01 08:03:10 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.11 2004/04/12 20:18:07 jschauma Exp $
+$NetBSD: distinfo,v 1.12 2004/06/01 08:03:10 shannonjr Exp $
SHA1 (glib-1.2.10.tar.gz) = e5a9361c594608d152d5d9650154c2e3260b87fa
Size (glib-1.2.10.tar.gz) = 421480 bytes
@@ -10,3 +10,4 @@
SHA1 (patch-af) = 8fa1db64eb7a44e83e9e2ad483b12cf9fe50341e
SHA1 (patch-ag) = efdff0d20a1c3280c9916405a8d89190c68b9604
SHA1 (patch-ai) = 6f6e5727bcb52655865b689c923601843d8d453d
+SHA1 (patch-aj) = ee05519f3b36e5b2a711ca01599ba1f0662faa20
diff -r a6f8639d844b -r ef18af5a88bb devel/glib/patches/patch-aj
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/glib/patches/patch-aj Tue Jun 01 08:03:10 2004 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-aj,v 1.1 2004/06/01 08:03:10 shannonjr Exp $
+
+--- glib.h.orig 2001-02-26 20:44:38.000000000 -0700
++++ glib.h
+@@ -271,14 +271,18 @@ extern "C" {
+
+ /* Wrap the gcc __PRETTY_FUNCTION__ and __FUNCTION__ variables with
+ * macros, so we can refer to them as strings unconditionally.
++ *
++ * NB: GLib requires that these expand to string literals so that
++ * they're concatenable. Therefore, they're only useful for GCC < 3.0
++ * because since GCC 3.0 these macros expand to const pointers.
+ */
+-#ifdef __GNUC__
++#if defined(__GNUC__) && (__GNUC__ < 3)
+ #define G_GNUC_FUNCTION __FUNCTION__
+ #define G_GNUC_PRETTY_FUNCTION __PRETTY_FUNCTION__
+-#else /* !__GNUC__ */
++#else /* !(__GNUC__ < 3) */
+ #define G_GNUC_FUNCTION ""
+ #define G_GNUC_PRETTY_FUNCTION ""
+-#endif /* !__GNUC__ */
++#endif /* !(__GNUC__ < 3) */
+
+ /* we try to provide a usefull equivalent for ATEXIT if it is
+ * not defined, but use is actually abandoned. people should
Home |
Main Index |
Thread Index |
Old Index