pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/print/cups Make this compile on sparc64 with gcc 4.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c6bb47ae7599
branches:  trunk
changeset: 518973:c6bb47ae7599
user:      jdc <jdc%pkgsrc.org@localhost>
date:      Sun Sep 24 17:09:13 2006 +0000

description:
Make this compile on sparc64 with gcc 4.
(Need to cast to something at least as wide as "void *" - e.g. "long".)

OK wiz@, joerg@.

diffstat:

 print/cups/distinfo         |   3 ++-
 print/cups/patches/patch-am |  17 +++++++++++++++++
 2 files changed, 19 insertions(+), 1 deletions(-)

diffs (38 lines):

diff -r 78701b86ea45 -r c6bb47ae7599 print/cups/distinfo
--- a/print/cups/distinfo       Sun Sep 24 16:58:50 2006 +0000
+++ b/print/cups/distinfo       Sun Sep 24 17:09:13 2006 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.42 2006/07/05 20:12:06 wiz Exp $
+$NetBSD: distinfo,v 1.43 2006/09/24 17:09:13 jdc Exp $
 
 SHA1 (cups-1.1.23-source.tar.bz2) = 32d5bfb44c4edc1b54ccb014b5a44499295c6c5c
 RMD160 (cups-1.1.23-source.tar.bz2) = 255ec4c22422b14f2367d69f3ec7e590dc46bea5
@@ -15,6 +15,7 @@
 SHA1 (patch-aj) = 248c7ae93fd81154d703a56c0149463d6a73a6f6
 SHA1 (patch-ak) = fe0a5317cf70f49fe3b386177b7a12b2df306ed1
 SHA1 (patch-al) = dcec693d824305cce6e31c07fb96be4759a55f81
+SHA1 (patch-am) = 660bdcd7717f68453fbb3e8b6aa81a4205ef08a1
 SHA1 (patch-an) = 8eb0f80067839d3d112d93e08cb8ad6854fa2b4c
 SHA1 (patch-ao) = c4c8f833cf4a09a686a338df6c209cebec36c6ef
 SHA1 (patch-ap) = 2351844f81a561d69cd02a1e83e30f3c9ee33f5f
diff -r 78701b86ea45 -r c6bb47ae7599 print/cups/patches/patch-am
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/print/cups/patches/patch-am       Sun Sep 24 17:09:13 2006 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-am,v 1.7 2006/09/24 17:09:13 jdc Exp $
+
+--- pdftops/GfxFont.cxx.dist   2004-02-02 22:41:09.000000000 +0000
++++ pdftops/GfxFont.cxx        2006-09-24 16:12:03.000000000 +0100
+@@ -969,7 +969,11 @@
+   if ((nameToGID = ff->getNameToGID())) {
+     for (i = 0; i < 256; ++i) {
+       if (!map[i] && (charName = enc[i])) {
+-      map[i] = (Gushort)(int)nameToGID->lookup(charName);
++      /*
++       * Note that we are casting from "void *" here.
++       * So, we must first cast to something at least as wide.
++       */
++      map[i] = (Gushort)(long)nameToGID->lookup(charName);
+       }
+     }
+     delete nameToGID;



Home | Main Index | Thread Index | Old Index