pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/security/libgcrypt Fix for compiling on Solaris SPARC ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/1cf1e3392d13
branches: trunk
changeset: 482326:1cf1e3392d13
user: gavan <gavan%pkgsrc.org@localhost>
date: Mon Oct 25 13:03:53 2004 +0000
description:
Fix for compiling on Solaris SPARC with gcc.
If __sparcv8 is defined, use the SPARC v8 version of udiv_qrnnd. Without
this change, udiv_qrnnd will not be defined using the SPARC v8 udiv
instruction, and the default SPARC v7 case of defining it to be the native
__gmpn_udiv_qrnnd will be used, but this does not exist on SPARC v8, so
at link time, the user will get an error about _gmpn_udiv_qrnnd being
undefined. gcc defines __sparcv8.
>From PR pkg/26815.
diffstat:
security/libgcrypt/distinfo | 3 ++-
security/libgcrypt/patches/patch-ad | 13 +++++++++++++
2 files changed, 15 insertions(+), 1 deletions(-)
diffs (30 lines):
diff -r a4e332bdc7d4 -r 1cf1e3392d13 security/libgcrypt/distinfo
--- a/security/libgcrypt/distinfo Mon Oct 25 13:02:15 2004 +0000
+++ b/security/libgcrypt/distinfo Mon Oct 25 13:03:53 2004 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.9 2004/10/23 08:57:33 shannonjr Exp $
+$NetBSD: distinfo,v 1.10 2004/10/25 13:03:53 gavan Exp $
SHA1 (libgcrypt-1.2.0.tar.gz) = 3785a47abcb1c15079b18c5df47a474dfe647ec2
Size (libgcrypt-1.2.0.tar.gz) = 949159 bytes
SHA1 (patch-aa) = d8f659e4aac872abb152252731fd29bdaac635e3
SHA1 (patch-ab) = bd713f7cbc6782ced8c2fd2b5541ac52d2a10fbe
SHA1 (patch-ac) = 03768fa8386f09d9dbd63c04123d780fb3a56de5
+SHA1 (patch-ad) = f32281612b51c5bb3788cf03c6f5615bdfc0d3e8
diff -r a4e332bdc7d4 -r 1cf1e3392d13 security/libgcrypt/patches/patch-ad
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/libgcrypt/patches/patch-ad Mon Oct 25 13:03:53 2004 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ad,v 1.1 2004/10/25 13:03:53 gavan Exp $
+
+--- mpi/longlong.h.orig 2004-03-03 08:21:49.000000000 +0000
++++ mpi/longlong.h
+@@ -1133,7 +1133,7 @@ extern USItype __udiv_qrnnd ();
+ "rJ" ((USItype)(al)), \
+ "rI" ((USItype)(bl)) \
+ __CLOBBER_CC)
+-#if defined (__sparc_v8__)
++#if defined (__sparc_v8__) || defined(__sparcv8)
+ /* Don't match immediate range because, 1) it is not often useful,
+ 2) the 'I' flag thinks of the range as a 13 bit signed interval,
+ while we want to match a 13 bit interval, sign extended to 32 bits,
Home |
Main Index |
Thread Index |
Old Index