From 0d715c7bbc57105c4025c5e940012be93e2c2c52 Mon Sep 17 00:00:00 2001 From: jmc Date: Sun, 9 Dec 2001 10:55:44 +0000 Subject: Assembler on 1.5.2 or below macppc can't handle some parts in genarch. Patch around that --- print/cups/distinfo | 3 ++- print/cups/patches/patch-ah | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 print/cups/patches/patch-ah (limited to 'print') 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 ++#if (MACHINE_ARCH = "powerpc") && (__NetBSD_Version__ <= 105000200) ++ (um1 >> (lwidth / 2)) >> (lwidth / 2) == 0); ++#else + um1 >> lwidth == 0); ++#endif ++#else ++ um1 >> lwidth == 0); ++#endif + + /* ---------------- Done. ---------------- */ + -- cgit v1.2.3