diff options
author | jmc <jmc> | 2001-12-09 10:55:44 +0000 |
---|---|---|
committer | jmc <jmc> | 2001-12-09 10:55:44 +0000 |
commit | e17f5b2661950af65e2058744960527f4d55cd30 (patch) | |
tree | 48299fc8e4d8cf684c038ae68934b70fc2f16eba | |
parent | 58cf5f109ad4f971a3f95b1115c82abf2a1816b8 (diff) | |
download | pkgsrc-e17f5b2661950af65e2058744960527f4d55cd30.tar.gz |
Assembler on 1.5.2 or below macppc can't handle some parts in genarch. Patch around that
-rw-r--r-- | print/cups/distinfo | 3 | ||||
-rw-r--r-- | print/cups/patches/patch-ah | 21 |
2 files changed, 23 insertions, 1 deletions
diff --git a/print/cups/distinfo b/print/cups/distinfo index 71cfc533770..948ea6383be 100644 --- a/print/cups/distinfo +++ b/print/cups/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.7 2001/08/18 04:41:45 jlam Exp $ +$NetBSD: distinfo,v 1.8 2001/12/09 10:55:45 jmc Exp $ SHA1 (cups-1.1.10-1-source.tar.bz2) = 97c0e36a49df927c1bbe3bb457bb8849b7992c62 Size (cups-1.1.10-1-source.tar.bz2) = 5370979 bytes SHA1 (patch-ab) = 2b58233ac8a5b5cb5cfbdc82abfe78a27678556c SHA1 (patch-ag) = 0fe671d3eb19ccaac53e999cc0bd25016736af5e +SHA1 (patch-ah) = fd08846957116928f7af94f7145af37dcffdde80 diff --git a/print/cups/patches/patch-ah b/print/cups/patches/patch-ah new file mode 100644 index 00000000000..66eed4987ab --- /dev/null +++ b/print/cups/patches/patch-ah @@ -0,0 +1,21 @@ +$NetBSD: patch-ah,v 1.11 2001/12/09 10:55:44 jmc Exp $ + +--- pstoraster/genarch.c.orig Wed Mar 8 23:14:26 2000 ++++ pstoraster/genarch.c Sun Dec 9 10:51:28 2001 +@@ -154,7 +154,16 @@ + /* Some machines can't handle a variable shift by */ + /* the full width of a long. */ + fprintf(f, "#define arch_can_shift_full_long %d\n", ++#ifdef __NetBSD__ ++#include <sys/param.h> ++#if (MACHINE_ARCH = "powerpc") && (__NetBSD_Version__ <= 105000200) ++ (um1 >> (lwidth / 2)) >> (lwidth / 2) == 0); ++#else + um1 >> lwidth == 0); ++#endif ++#else ++ um1 >> lwidth == 0); ++#endif + + /* ---------------- Done. ---------------- */ + |