pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/cad/geda-utils work around the use of __FUNCTION__ in ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b13641ec9fe5
branches:  trunk
changeset: 522785:b13641ec9fe5
user:      dmcmahill <dmcmahill%pkgsrc.org@localhost>
date:      Wed Dec 20 23:43:40 2006 +0000

description:
work around the use of __FUNCTION__ in compilers that may not have it.
Builds on solaris with sun studio compilers now.  Patch already in the
upstream sources.

diffstat:

 cad/geda-utils/distinfo         |   3 ++-
 cad/geda-utils/patches/patch-aa |  20 ++++++++++++++++++++
 2 files changed, 22 insertions(+), 1 deletions(-)

diffs (35 lines):

diff -r 0d85c246402d -r b13641ec9fe5 cad/geda-utils/distinfo
--- a/cad/geda-utils/distinfo   Wed Dec 20 21:45:53 2006 +0000
+++ b/cad/geda-utils/distinfo   Wed Dec 20 23:43:40 2006 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.17 2006/10/23 09:43:13 dmcmahill Exp $
+$NetBSD: distinfo,v 1.18 2006/12/20 23:43:40 dmcmahill Exp $
 
 SHA1 (geda/geda-utils-20061020.tar.gz) = 892ff9fd664054838f6e1f925e959f85cfcee916
 RMD160 (geda/geda-utils-20061020.tar.gz) = 0a93851ae554edf1b30ffa3021e7c22b9fd9b781
 Size (geda/geda-utils-20061020.tar.gz) = 268215 bytes
+SHA1 (patch-aa) = 5be550c049164dfe780f80032965fd18ab34c86b
diff -r 0d85c246402d -r b13641ec9fe5 cad/geda-utils/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/cad/geda-utils/patches/patch-aa   Wed Dec 20 23:43:40 2006 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-aa,v 1.5 2006/12/20 23:43:40 dmcmahill Exp $
+
+Already exists upstream.  Needed for compilers such as sun studio compilers
+that do not define __FUNCTION__
+
+--- src/convert_sym.c.orig     2006-08-02 09:34:19.000000000 -0400
++++ src/convert_sym.c
+@@ -51,4 +51,12 @@
+ #endif
+ 
++
++/* __FUNCTION__ seems to be a gcc thing */
++#ifndef __GNUC__
++#define __FUNCTION1(a,b) a ":" #b
++#define __FUNCTION2(a,b) __FUNCTION1(a,b)
++#define __FUNCTION__ __FUNCTION2(__FILE__,__LINE__)
++#endif
++
+ #if 0 /* removed by AVH just to make a -Wall -Werror happy */
+ #ifndef lint



Home | Main Index | Thread Index | Old Index