pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/cad/gnetlist Fix this on compilers (sun studio for exa...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f6fffe4bb07f
branches:  trunk
changeset: 522786:f6fffe4bb07f
user:      dmcmahill <dmcmahill%pkgsrc.org@localhost>
date:      Thu Dec 21 00:19:54 2006 +0000

description:
Fix this on compilers (sun studio for example) without __FUNCTION__.
Patch is already in upstream sources.

diffstat:

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

diffs (35 lines):

diff -r b13641ec9fe5 -r f6fffe4bb07f cad/gnetlist/distinfo
--- a/cad/gnetlist/distinfo     Wed Dec 20 23:43:40 2006 +0000
+++ b/cad/gnetlist/distinfo     Thu Dec 21 00:19:54 2006 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.20 2006/10/23 09:43:12 dmcmahill Exp $
+$NetBSD: distinfo,v 1.21 2006/12/21 00:19:54 dmcmahill Exp $
 
 SHA1 (geda/geda-gnetlist-20061020.tar.gz) = b4f2121464ff22db8f0eb08a398df91b055032b2
 RMD160 (geda/geda-gnetlist-20061020.tar.gz) = c05d3bee1db520c8f86c0e4ca6b1707b9c0b4cf8
 Size (geda/geda-gnetlist-20061020.tar.gz) = 332027 bytes
+SHA1 (patch-aa) = 1fdc681538545f5712a423bc62b1ce89fbc7ff4c
diff -r b13641ec9fe5 -r f6fffe4bb07f cad/gnetlist/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/cad/gnetlist/patches/patch-aa     Thu Dec 21 00:19:54 2006 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-aa,v 1.11 2006/12/21 00:19:54 dmcmahill Exp $
+
+work around compilers without __FUNCTION__ like sun studio compilers.
+Patch is already in the upstream sources.
+
+--- utils/mk_verilog_syms.c.orig       2005-02-04 18:14:31.000000000 -0500
++++ utils/mk_verilog_syms.c
+@@ -46,6 +46,12 @@
+ #define CYAN          6
+ #define GREY          7
+ 
++/* __FUNCTION__ seems to be a gcc extension */
++#ifndef __GNUC__
++#define __FUNCTION1(a,b) a ":" #b
++#define __FUNCTION2(a,b) __FUNCTION1(a,b)
++#define __FUNCTION__ __FUNCTION2(__FILE__,__LINE__)
++#endif
+ 
+ /* external prototypes */
+ int GetStringDisplayLength(char *str,int font_size);  /* char_width.c */



Home | Main Index | Thread Index | Old Index