diff options
author | obache <obache@pkgsrc.org> | 2012-01-28 13:15:10 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2012-01-28 13:15:10 +0000 |
commit | f5100e92c70f88ef8a17eb37457105c676e0204e (patch) | |
tree | 1bcde41022bf3511039ecf577548f87bf92c3b92 /www | |
parent | e91d2ab65d0376d0229775927a600e02ad51982a (diff) | |
download | pkgsrc-f5100e92c70f88ef8a17eb37457105c676e0204e.tar.gz |
Try to prevent to link against static libraries.
Fixes build failure on NetBSD/amd64, reported by Dieter Roelants via private mail.
Diffstat (limited to 'www')
-rw-r--r-- | www/py-curl/distinfo | 4 | ||||
-rw-r--r-- | www/py-curl/patches/patch-aa | 35 |
2 files changed, 35 insertions, 4 deletions
diff --git a/www/py-curl/distinfo b/www/py-curl/distinfo index 7bf941123e0..270fa1f5e07 100644 --- a/www/py-curl/distinfo +++ b/www/py-curl/distinfo @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.16 2012/01/25 13:19:57 obache Exp $ +$NetBSD: distinfo,v 1.17 2012/01/28 13:15:10 obache Exp $ SHA1 (pycurl-7.19.0.tar.gz) = 3fb59eca1461331bb9e9e8d6fe3b23eda961a416 RMD160 (pycurl-7.19.0.tar.gz) = dab547b3db67ed30cafb556a1a383f567064de49 Size (pycurl-7.19.0.tar.gz) = 71346 bytes -SHA1 (patch-aa) = 2635d59e4d8aee29abb6797ffb4b46260f94be72 +SHA1 (patch-aa) = 10d4cf15ea9eae7c7fc0f587fe8b3bd2bf3852e1 diff --git a/www/py-curl/patches/patch-aa b/www/py-curl/patches/patch-aa index 4b9852ae6d4..daa8915b3e7 100644 --- a/www/py-curl/patches/patch-aa +++ b/www/py-curl/patches/patch-aa @@ -1,8 +1,39 @@ -$NetBSD: patch-aa,v 1.7 2012/01/25 13:19:57 obache Exp $ +$NetBSD: patch-aa,v 1.8 2012/01/28 13:15:11 obache Exp $ + +* in pkgsrc, OpenSSL is used for cURL SSL support, so disable pick up of + static-libs to detect ssl library for REQUIRE_LIB_DEPS=no platforms, + and prevent to link with static library additionally. +* add multi python variant support --- setup.py.orig 2008-09-09 17:40:34.000000000 +0000 +++ setup.py -@@ -149,9 +149,9 @@ def get_data_files(): +@@ -96,16 +96,10 @@ else: + include_dirs.append(e[2:]) + else: + extra_compile_args.append(e) +- libs = split_quoted( +- os.popen("'%s' --libs" % CURL_CONFIG).read()+\ +- os.popen("'%s' --static-libs" % CURL_CONFIG).read()) ++ libs = split_quoted(os.popen("'%s' --libs" % CURL_CONFIG).read()) + for e in libs: + if e[:2] == "-l": + libraries.append(e[2:]) +- if e[2:] == 'ssl': +- define_macros.append(('HAVE_CURL_OPENSSL', 1)) +- if e[2:] == 'gnutls': +- define_macros.append(('HAVE_CURL_GNUTLS', 1)) + elif e[:2] == "-L": + library_dirs.append(e[2:]) + else: +@@ -113,6 +107,7 @@ else: + for e in split_quoted(os.popen("'%s' --features" % CURL_CONFIG).read()): + if e == 'SSL': + define_macros.append(('HAVE_CURL_SSL', 1)) ++ define_macros.append(('HAVE_CURL_OPENSSL', 1)) + if not libraries: + libraries.append("curl") + # Add extra compile flag for MacOS X +@@ -149,9 +144,9 @@ def get_data_files(): # a list of tuples with (path to install to, a list of local files) data_files = [] if sys.platform == "win32": |