pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/swi-prolog-lite avoid conflict with native popcou...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ad806c30b987
branches:  trunk
changeset: 566919:ad806c30b987
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Sat Oct 31 19:34:31 2009 +0000

description:
avoid conflict with native popcount64(3)

diffstat:

 lang/swi-prolog-lite/distinfo         |   3 ++-
 lang/swi-prolog-lite/patches/patch-ao |  22 ++++++++++++++++++++++
 2 files changed, 24 insertions(+), 1 deletions(-)

diffs (40 lines):

diff -r a7ffb1cecf0e -r ad806c30b987 lang/swi-prolog-lite/distinfo
--- a/lang/swi-prolog-lite/distinfo     Sat Oct 31 19:15:44 2009 +0000
+++ b/lang/swi-prolog-lite/distinfo     Sat Oct 31 19:34:31 2009 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.7 2007/10/13 07:54:31 rillig Exp $
+$NetBSD: distinfo,v 1.8 2009/10/31 19:34:31 tnn Exp $
 
 SHA1 (swi-prolog/pl-5.6.17.tar.gz) = e46e98b3ec8a69de3dc2eb147a9df9cbd1a17399
 RMD160 (swi-prolog/pl-5.6.17.tar.gz) = 7f6786013b43c2e00b8e4a3799cbad1f7cac2fab
@@ -17,3 +17,4 @@
 SHA1 (patch-al) = 14d6309b71c0cc1f67967f2692db6ca075384def
 SHA1 (patch-am) = 008c1ae8324522b185a7bf1dd07c7446dfcf2f31
 SHA1 (patch-an) = 606f076c41c3020b5c7d0730317d709220c05d4b
+SHA1 (patch-ao) = f57df2c1d1be9e7d91ded9b053a7f3cbc3af9eb6
diff -r a7ffb1cecf0e -r ad806c30b987 lang/swi-prolog-lite/patches/patch-ao
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/swi-prolog-lite/patches/patch-ao     Sat Oct 31 19:34:31 2009 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-ao,v 1.1 2009/10/31 19:34:31 tnn Exp $
+
+--- src/pl-arith.c.orig        2009-10-31 20:31:13.000000000 +0100
++++ src/pl-arith.c
+@@ -1752,7 +1752,7 @@ ar_lsb(Number n1, Number r)
+ 
+ 
+ static int
+-popcount64(int64_t i)
++popcount64_(int64_t i)
+ { int c, j;
+   int64_t m = LL(1);
+ 
+@@ -1775,7 +1775,7 @@ ar_popcount(Number n1, Number r)
+       if (  n1->value.i < 0 )
+       return notLessThanZero("popcount", 1, n1);
+ 
+-      r->value.i = popcount64(n1->value.i);
++      r->value.i = popcount64_(n1->value.i);
+       r->type = V_INTEGER;
+       succeed;
+ #ifdef O_GMP



Home | Main Index | Thread Index | Old Index