From a514610b41f44871c68d7c98146494704ee1412c Mon Sep 17 00:00:00 2001 From: joerg Date: Mon, 24 Dec 2012 21:15:32 +0000 Subject: Disable integrated assembler with Clang, it doesn't like some of the Intel assembler parts. --- security/py-cryptopp/distinfo | 3 ++- security/py-cryptopp/patches/patch-setup.py | 26 ++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 security/py-cryptopp/patches/patch-setup.py 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)) + -- cgit v1.2.3