summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2012-12-24 21:15:32 +0000
committerjoerg <joerg@pkgsrc.org>2012-12-24 21:15:32 +0000
commita514610b41f44871c68d7c98146494704ee1412c (patch)
tree37b9ba5dd92d7a57ac41d917d8ac77508ab890f0
parent70cee3af1dd3a6445b8ff329a5657b1f580cfa2e (diff)
downloadpkgsrc-a514610b41f44871c68d7c98146494704ee1412c.tar.gz
Disable integrated assembler with Clang, it doesn't like some of the
Intel assembler parts.
-rw-r--r--security/py-cryptopp/distinfo3
-rw-r--r--security/py-cryptopp/patches/patch-setup.py26
2 files changed, 28 insertions, 1 deletions
diff --git a/security/py-cryptopp/distinfo b/security/py-cryptopp/distinfo
index 0ac445c1d1e..ad98cd86265 100644
--- a/security/py-cryptopp/distinfo
+++ b/security/py-cryptopp/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.5 2012/03/16 00:15:15 gdt Exp $
+$NetBSD: distinfo,v 1.6 2012/12/24 21:15:32 joerg Exp $
SHA1 (pycryptopp-0.6.0.1206569328141510525648634803928199668821045408958.tar.gz) = 773008d41d5c135a5bd899cd4c4a51ee54a97e39
RMD160 (pycryptopp-0.6.0.1206569328141510525648634803928199668821045408958.tar.gz) = 778816987bfc7ba26de35d5d8931a082b2531fcd
Size (pycryptopp-0.6.0.1206569328141510525648634803928199668821045408958.tar.gz) = 2009822 bytes
+SHA1 (patch-setup.py) = 70ddc502d91ff35bc6b165daa6b617047458b63e
diff --git a/security/py-cryptopp/patches/patch-setup.py b/security/py-cryptopp/patches/patch-setup.py
new file mode 100644
index 00000000000..7f71154a4c9
--- /dev/null
+++ b/security/py-cryptopp/patches/patch-setup.py
@@ -0,0 +1,26 @@
+$NetBSD: patch-setup.py,v 1.1 2012/12/24 21:15:33 joerg Exp $
+
+--- setup.py.orig 2012-12-23 21:32:49.000000000 +0000
++++ setup.py
+@@ -77,6 +77,21 @@ if DEBUG:
+ else:
+ extra_compile_args.append("-w")
+
++# XXX Use distutils
++if "CC" in os.environ:
++ try:
++ sp = subprocess.Popen([os.environ['CC'], '--version'],
++ stdin=subprocess.PIPE,
++ stdout=subprocess.PIPE,
++ stderr=subprocess.PIPE,
++ universal_newlines=True)
++ sp.stdin.close()
++ sp.wait()
++ if re.search("clang version", sp.stdout.read()):
++ extra_compile_args.append("-no-integrated-as")
++ except:
++ pass
++
+ if DISABLE_EMBEDDED_CRYPTOPP:
+ define_macros.append(('DISABLE_EMBEDDED_CRYPTOPP', 1))
+