summaryrefslogtreecommitdiff
path: root/security/libgcrypt
diff options
context:
space:
mode:
authorgavan <gavan>2004-10-25 13:03:53 +0000
committergavan <gavan>2004-10-25 13:03:53 +0000
commitb9c12c5935d51d3741316e18cd2f2288fd0e90ad (patch)
tree6a489ea28054a2c11567506a911302d976a9bd76 /security/libgcrypt
parent4d47e6098b5e85427a18c1bfd6417b7db224e660 (diff)
downloadpkgsrc-b9c12c5935d51d3741316e18cd2f2288fd0e90ad.tar.gz
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 (limited to 'security/libgcrypt')
-rw-r--r--security/libgcrypt/distinfo3
-rw-r--r--security/libgcrypt/patches/patch-ad13
2 files changed, 15 insertions, 1 deletions
diff --git a/security/libgcrypt/distinfo b/security/libgcrypt/distinfo
index 1795456af14..51621601d23 100644
--- a/security/libgcrypt/distinfo
+++ b/security/libgcrypt/distinfo
@@ -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 --git a/security/libgcrypt/patches/patch-ad b/security/libgcrypt/patches/patch-ad
new file mode 100644
index 00000000000..b07958048e3
--- /dev/null
+++ b/security/libgcrypt/patches/patch-ad
@@ -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,