pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/fonts/ps2pkm Make ps2pkm build with clang.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/50d59c2291b8
branches:  trunk
changeset: 603026:50d59c2291b8
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Thu Apr 26 15:18:55 2012 +0000

description:
Make ps2pkm build with clang.

Patch from Jan Danielsson.

diffstat:

 fonts/ps2pkm/distinfo              |   3 ++-
 fonts/ps2pkm/patches/patch-type1.c |  29 +++++++++++++++++++++++++++++
 2 files changed, 31 insertions(+), 1 deletions(-)

diffs (44 lines):

diff -r 5a80e7f80311 -r 50d59c2291b8 fonts/ps2pkm/distinfo
--- a/fonts/ps2pkm/distinfo     Thu Apr 26 14:54:57 2012 +0000
+++ b/fonts/ps2pkm/distinfo     Thu Apr 26 15:18:55 2012 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.5 2011/07/28 04:53:03 minskim Exp $
+$NetBSD: distinfo,v 1.6 2012/04/26 15:18:55 minskim Exp $
 
 SHA1 (texlive-20110705-source.tar.xz) = 7a47cfe847801c86c98da8ade181baf97339f6e4
 RMD160 (texlive-20110705-source.tar.xz) = fbcad494cc4717a0238ab2624f259270fce9332b
 Size (texlive-20110705-source.tar.xz) = 131207904 bytes
+SHA1 (patch-type1.c) = bb51988a641764440cb66b14d1e68c748e83e572
diff -r 5a80e7f80311 -r 50d59c2291b8 fonts/ps2pkm/patches/patch-type1.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/fonts/ps2pkm/patches/patch-type1.c        Thu Apr 26 15:18:55 2012 +0000
@@ -0,0 +1,29 @@
+$NetBSD: patch-type1.c,v 1.1 2012/04/26 15:18:55 minskim Exp $
+
+The Error macro doesn't return a value, but PSFakePop() should return
+a DOUBLE. gcc seems to accept this, clang does not.
+
+--- type1.c.orig       2012-04-26 13:37:31.000000000 +0000
++++ type1.c
+@@ -125,8 +125,12 @@ int currentchar = -1; /* for error repor
+ #define CC IfTrace1(TRUE, "'%03o ", currentchar)
+ 
+ #define Error {errflag = TRUE; return;}
++
++#define Error_rd {errflag = TRUE; return 0.0;}
+  
+ #define Error0(errmsg) { CC; IfTrace0(TRUE, errmsg); Error;}
++
++#define Error0_rd(errmsg) { CC; IfTrace0(TRUE, errmsg); Error_rd;}
+  
+ #define Error1(errmsg,arg) { CC; IfTrace1(TRUE, errmsg, arg); Error;}
+  
+@@ -780,7 +784,7 @@ static void PSFakePush(Num)
+ static DOUBLE PSFakePop ()
+ {
+   if (PSFakeTop >= 0) return(PSFakeStack[PSFakeTop--]);
+-  else Error0("PSFakePop : Stack empty\n");
++  else Error0_rd("PSFakePop : Stack empty\n");
+   /*NOTREACHED*/
+ }
+  



Home | Main Index | Thread Index | Old Index