Import of pkgsrc-2014Q1
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
bin/2to3 @PREFIX@/bin/2to3-2.7
|
||||
bin/pydoc @PREFIX@/bin/pydoc2.7
|
||||
bin/python @PREFIX@/bin/python2.7
|
||||
bin/smtpd.py @PREFIX@/bin/smtpd2.7.py
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
# $NetBSD: Makefile,v 1.25.2.1 2013/08/21 11:47:14 tron Exp $
|
||||
# $NetBSD: Makefile,v 1.39 2014/03/27 05:36:37 obache Exp $
|
||||
|
||||
.include "dist.mk"
|
||||
|
||||
PKGNAME= python27-${PY_DISTVERSION}
|
||||
PKGREVISION= 1
|
||||
PKGREVISION= 3
|
||||
CATEGORIES= lang python
|
||||
|
||||
MAINTAINER= pkgsrc-users@NetBSD.org
|
||||
@@ -21,6 +21,8 @@ CONFIGURE_ARGS+= --with-system-ffi
|
||||
CONFIGURE_ARGS+= --with-dbmliborder=ndbm:bdb
|
||||
CONFIGURE_ENV+= MKDIR_P=${MKDIR:Q}
|
||||
|
||||
PKGCONFIG_OVERRIDE+= Misc/python.pc.in
|
||||
|
||||
LDFLAGS+= -L${WRKSRC}
|
||||
|
||||
# $RANDOM usage there is fine
|
||||
@@ -80,7 +82,7 @@ PLIST_SUBST+= PY_PLATNAME=${PY_PLATNAME:Q}
|
||||
|
||||
.if (${MACHINE_ARCH} == "alpha") || (${MACHINE_ARCH} == "amd64") || \
|
||||
(${MACHINE_ARCH} == "sparc64") || (${MACHINE_ARCH} == "x86_64") || \
|
||||
(defined(ABI) && ${ABI} == "64")
|
||||
(${MACHINE_ARCH} == "powerpc64") || (defined(ABI) && ${ABI} == "64")
|
||||
IS_64BIT_PLATFORM?= yes
|
||||
.else
|
||||
IS_64BIT_PLATFORM?= no
|
||||
@@ -92,16 +94,6 @@ PLIST_VARS+= dl
|
||||
PLIST.dl= yes
|
||||
.endif
|
||||
|
||||
# builds additional modules if OpenSSL < 0.9.8
|
||||
PLIST_VARS+= openssl097
|
||||
CHECK_BUILTIN.openssl:= yes
|
||||
.include "../../security/openssl/builtin.mk"
|
||||
CHECK_BUILTIN.openssl:= no
|
||||
.if !empty(USE_BUILTIN.openssl:M[yY][eE][sS]) && \
|
||||
!empty(BUILTIN_PKG.openssl:Mopenssl-0.9.[67]*)
|
||||
PLIST.openssl097= yes
|
||||
.endif
|
||||
|
||||
# setup.py causes some modules to be built if the platform is *not* 64bit.
|
||||
PLIST_VARS+= extra-so
|
||||
.if !empty(IS_64BIT_PLATFORM:M[nN][oO])
|
||||
@@ -113,6 +105,12 @@ PLIST.extra-so= yes
|
||||
INSTALL_UNSTRIPPED= yes
|
||||
.endif
|
||||
|
||||
# For Xcode 5 we need to search the SDK path for headers, otherwise certain
|
||||
# modules will not be built.
|
||||
.if ${OPSYS} == "Darwin" && exists(${OSX_SDK_PATH}/usr/include)
|
||||
CFLAGS+= -I${OSX_SDK_PATH}/usr/include
|
||||
.endif
|
||||
|
||||
PLIST_VARS+= dll nis no-nis
|
||||
.if ${OPSYS} == "IRIX"
|
||||
. if ${ABI} == "64"
|
||||
@@ -156,6 +154,7 @@ REPLACE_INTERPRETER+= py27
|
||||
REPLACE.py27.old= .*python[^ ]*
|
||||
REPLACE.py27.new= ${PREFIX}/bin/python${PY_VER_SUFFIX}
|
||||
REPLACE_FILES.py27= Lib/*.py Lib/*/*.py Lib/*/*/*.py
|
||||
REPLACE_FILES.py27+= Lib/*/*/*/*.py
|
||||
|
||||
SUBST_CLASSES+= findlib
|
||||
SUBST_MESSAGE.findlib= Fixing find_library_file on Darwin.
|
||||
@@ -164,7 +163,7 @@ SUBST_FILES.findlib= Lib/distutils/unixccompiler.py
|
||||
SUBST_SED.findlib= -e 's,/usr/local,${PREFIX},'
|
||||
|
||||
post-extract:
|
||||
${MV} ${WRKSRC}/Lib/smtpd.py ${WRKSRC}/Lib/smtpd${PY_VER_SUFFIX}.py
|
||||
${LN} -s ${WRKSRC}/Lib/smtpd.py ${WRKSRC}/Tools/scripts/smtpd${PY_VER_SUFFIX}.py
|
||||
${MV} ${WRKSRC}/Tools/scripts/pydoc ${WRKSRC}/Tools/scripts/pydoc${PY_VER_SUFFIX}
|
||||
${MV} ${WRKSRC}/Tools/scripts/2to3 ${WRKSRC}/Tools/scripts/2to3-${PY_VER_SUFFIX}
|
||||
|
||||
@@ -174,7 +173,6 @@ post-install:
|
||||
${DESTDIR}${PREFIX}/lib/libpython2.7.sl.1.0
|
||||
.endif
|
||||
|
||||
USE_GNU_READLINE= yes
|
||||
BUILDLINK_DEPMETHOD.readline= build
|
||||
|
||||
.include "../../archivers/bzip2/buildlink3.mk"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@comment $NetBSD: PLIST.common,v 1.5.2.1 2013/08/21 11:47:14 tron Exp $
|
||||
@comment $NetBSD: PLIST.common,v 1.9 2014/03/12 12:40:57 obache Exp $
|
||||
bin/2to3-${PY_VER_SUFFIX}
|
||||
bin/pydoc${PY_VER_SUFFIX}
|
||||
bin/python${PY_VER_SUFFIX}
|
||||
@@ -1823,8 +1823,6 @@ lib/python${PY_VER_SUFFIX}/lib-dynload/_lsprof.so
|
||||
lib/python${PY_VER_SUFFIX}/lib-dynload/_multibytecodec.so
|
||||
lib/python${PY_VER_SUFFIX}/lib-dynload/_multiprocessing.so
|
||||
lib/python${PY_VER_SUFFIX}/lib-dynload/_random.so
|
||||
${PLIST.openssl097}lib/python${PY_VER_SUFFIX}/lib-dynload/_sha256.so
|
||||
${PLIST.openssl097}lib/python${PY_VER_SUFFIX}/lib-dynload/_sha512.so
|
||||
lib/python${PY_VER_SUFFIX}/lib-dynload/_socket.so
|
||||
lib/python${PY_VER_SUFFIX}/lib-dynload/_ssl.so
|
||||
lib/python${PY_VER_SUFFIX}/lib-dynload/_struct.so
|
||||
@@ -2172,6 +2170,7 @@ lib/python${PY_VER_SUFFIX}/lib2to3/tests/data/README
|
||||
lib/python${PY_VER_SUFFIX}/lib2to3/tests/data/bom.py
|
||||
lib/python${PY_VER_SUFFIX}/lib2to3/tests/data/crlf.py
|
||||
lib/python${PY_VER_SUFFIX}/lib2to3/tests/data/different_encoding.py
|
||||
lib/python${PY_VER_SUFFIX}/lib2to3/tests/data/false_encoding.py
|
||||
lib/python${PY_VER_SUFFIX}/lib2to3/tests/data/fixers/bad_order.py
|
||||
lib/python${PY_VER_SUFFIX}/lib2to3/tests/data/fixers/myfixes/__init__.py
|
||||
lib/python${PY_VER_SUFFIX}/lib2to3/tests/data/fixers/myfixes/fix_explicit.py
|
||||
@@ -2454,9 +2453,9 @@ lib/python${PY_VER_SUFFIX}/site-packages/README
|
||||
lib/python${PY_VER_SUFFIX}/site.py
|
||||
lib/python${PY_VER_SUFFIX}/site.pyc
|
||||
lib/python${PY_VER_SUFFIX}/site.pyo
|
||||
lib/python${PY_VER_SUFFIX}/smtpd${PY_VER_SUFFIX}.py
|
||||
lib/python${PY_VER_SUFFIX}/smtpd${PY_VER_SUFFIX}.pyc
|
||||
lib/python${PY_VER_SUFFIX}/smtpd${PY_VER_SUFFIX}.pyo
|
||||
lib/python${PY_VER_SUFFIX}/smtpd.py
|
||||
lib/python${PY_VER_SUFFIX}/smtpd.pyc
|
||||
lib/python${PY_VER_SUFFIX}/smtpd.pyo
|
||||
lib/python${PY_VER_SUFFIX}/smtplib.py
|
||||
lib/python${PY_VER_SUFFIX}/smtplib.pyc
|
||||
lib/python${PY_VER_SUFFIX}/smtplib.pyo
|
||||
@@ -2573,6 +2572,22 @@ lib/python${PY_VER_SUFFIX}/test/Sine-1000Hz-300ms.aif
|
||||
lib/python${PY_VER_SUFFIX}/test/__init__.py
|
||||
lib/python${PY_VER_SUFFIX}/test/__init__.pyc
|
||||
lib/python${PY_VER_SUFFIX}/test/__init__.pyo
|
||||
lib/python${PY_VER_SUFFIX}/test/audiodata/pluck-pcm16.aiff
|
||||
lib/python${PY_VER_SUFFIX}/test/audiodata/pluck-pcm16.au
|
||||
lib/python${PY_VER_SUFFIX}/test/audiodata/pluck-pcm16.wav
|
||||
lib/python${PY_VER_SUFFIX}/test/audiodata/pluck-pcm24.aiff
|
||||
lib/python${PY_VER_SUFFIX}/test/audiodata/pluck-pcm24.wav
|
||||
lib/python${PY_VER_SUFFIX}/test/audiodata/pluck-pcm32.aiff
|
||||
lib/python${PY_VER_SUFFIX}/test/audiodata/pluck-pcm32.au
|
||||
lib/python${PY_VER_SUFFIX}/test/audiodata/pluck-pcm32.wav
|
||||
lib/python${PY_VER_SUFFIX}/test/audiodata/pluck-pcm8.aiff
|
||||
lib/python${PY_VER_SUFFIX}/test/audiodata/pluck-pcm8.au
|
||||
lib/python${PY_VER_SUFFIX}/test/audiodata/pluck-pcm8.wav
|
||||
lib/python${PY_VER_SUFFIX}/test/audiodata/pluck-ulaw.aifc
|
||||
lib/python${PY_VER_SUFFIX}/test/audiodata/pluck-ulaw.au
|
||||
lib/python${PY_VER_SUFFIX}/test/audiotests.py
|
||||
lib/python${PY_VER_SUFFIX}/test/audiotests.pyc
|
||||
lib/python${PY_VER_SUFFIX}/test/audiotests.pyo
|
||||
lib/python${PY_VER_SUFFIX}/test/audiotest.au
|
||||
lib/python${PY_VER_SUFFIX}/test/autotest.py
|
||||
lib/python${PY_VER_SUFFIX}/test/autotest.pyc
|
||||
@@ -3403,6 +3418,9 @@ lib/python${PY_VER_SUFFIX}/test/test_httplib.pyo
|
||||
lib/python${PY_VER_SUFFIX}/test/test_httpservers.py
|
||||
lib/python${PY_VER_SUFFIX}/test/test_httpservers.pyc
|
||||
lib/python${PY_VER_SUFFIX}/test/test_httpservers.pyo
|
||||
lib/python${PY_VER_SUFFIX}/test/test_idle.py
|
||||
lib/python${PY_VER_SUFFIX}/test/test_idle.pyc
|
||||
lib/python${PY_VER_SUFFIX}/test/test_idle.pyo
|
||||
lib/python${PY_VER_SUFFIX}/test/test_imageop.py
|
||||
lib/python${PY_VER_SUFFIX}/test/test_imageop.pyc
|
||||
lib/python${PY_VER_SUFFIX}/test/test_imageop.pyo
|
||||
@@ -3499,6 +3517,9 @@ lib/python${PY_VER_SUFFIX}/test/test_macostools.pyo
|
||||
lib/python${PY_VER_SUFFIX}/test/test_macpath.py
|
||||
lib/python${PY_VER_SUFFIX}/test/test_macpath.pyc
|
||||
lib/python${PY_VER_SUFFIX}/test/test_macpath.pyo
|
||||
lib/python${PY_VER_SUFFIX}/test/test_macurl2path.py
|
||||
lib/python${PY_VER_SUFFIX}/test/test_macurl2path.pyc
|
||||
lib/python${PY_VER_SUFFIX}/test/test_macurl2path.pyo
|
||||
lib/python${PY_VER_SUFFIX}/test/test_mailbox.py
|
||||
lib/python${PY_VER_SUFFIX}/test/test_mailbox.pyc
|
||||
lib/python${PY_VER_SUFFIX}/test/test_mailbox.pyo
|
||||
@@ -3568,6 +3589,9 @@ lib/python${PY_VER_SUFFIX}/test/test_new.pyo
|
||||
lib/python${PY_VER_SUFFIX}/test/test_nis.py
|
||||
lib/python${PY_VER_SUFFIX}/test/test_nis.pyc
|
||||
lib/python${PY_VER_SUFFIX}/test/test_nis.pyo
|
||||
lib/python${PY_VER_SUFFIX}/test/test_nntplib.py
|
||||
lib/python${PY_VER_SUFFIX}/test/test_nntplib.pyc
|
||||
lib/python${PY_VER_SUFFIX}/test/test_nntplib.pyo
|
||||
lib/python${PY_VER_SUFFIX}/test/test_normalization.py
|
||||
lib/python${PY_VER_SUFFIX}/test/test_normalization.pyc
|
||||
lib/python${PY_VER_SUFFIX}/test/test_normalization.pyo
|
||||
@@ -3805,6 +3829,9 @@ lib/python${PY_VER_SUFFIX}/test/test_sqlite.pyo
|
||||
lib/python${PY_VER_SUFFIX}/test/test_ssl.py
|
||||
lib/python${PY_VER_SUFFIX}/test/test_ssl.pyc
|
||||
lib/python${PY_VER_SUFFIX}/test/test_ssl.pyo
|
||||
lib/python${PY_VER_SUFFIX}/test/test_stat.py
|
||||
lib/python${PY_VER_SUFFIX}/test/test_stat.pyc
|
||||
lib/python${PY_VER_SUFFIX}/test/test_stat.pyo
|
||||
lib/python${PY_VER_SUFFIX}/test/test_startfile.py
|
||||
lib/python${PY_VER_SUFFIX}/test/test_startfile.pyc
|
||||
lib/python${PY_VER_SUFFIX}/test/test_startfile.pyo
|
||||
@@ -3841,6 +3868,9 @@ lib/python${PY_VER_SUFFIX}/test/test_structseq.pyo
|
||||
lib/python${PY_VER_SUFFIX}/test/test_subprocess.py
|
||||
lib/python${PY_VER_SUFFIX}/test/test_subprocess.pyc
|
||||
lib/python${PY_VER_SUFFIX}/test/test_subprocess.pyo
|
||||
lib/python${PY_VER_SUFFIX}/test/test_sunau.py
|
||||
lib/python${PY_VER_SUFFIX}/test/test_sunau.pyc
|
||||
lib/python${PY_VER_SUFFIX}/test/test_sunau.pyo
|
||||
lib/python${PY_VER_SUFFIX}/test/test_sunaudiodev.py
|
||||
lib/python${PY_VER_SUFFIX}/test/test_sunaudiodev.pyc
|
||||
lib/python${PY_VER_SUFFIX}/test/test_sunaudiodev.pyo
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# $NetBSD: dist.mk,v 1.5 2013/05/27 16:24:00 adam Exp $
|
||||
# $NetBSD: dist.mk,v 1.6 2013/11/12 18:57:25 adam Exp $
|
||||
|
||||
PY_DISTVERSION= 2.7.5
|
||||
PY_DISTVERSION= 2.7.6
|
||||
DISTNAME= Python-${PY_DISTVERSION}
|
||||
EXTRACT_SUFX= .tar.xz
|
||||
DISTINFO_FILE= ${.CURDIR}/../../lang/python27/distinfo
|
||||
|
||||
@@ -1,23 +1,22 @@
|
||||
$NetBSD: distinfo,v 1.24.2.1 2013/08/21 11:47:14 tron Exp $
|
||||
$NetBSD: distinfo,v 1.35 2014/03/27 06:26:24 obache Exp $
|
||||
|
||||
SHA1 (Python-2.7.5.tar.xz) = b7389791f789625c2ba9d897aa324008ff482daf
|
||||
RMD160 (Python-2.7.5.tar.xz) = baa7ad7d82cb4dc0a70b6a7aded43b7b78b0067e
|
||||
Size (Python-2.7.5.tar.xz) = 10252148 bytes
|
||||
SHA1 (Python-2.7.6.tar.xz) = 8321636af2acbeaa68fc635d7dda7369ed446a80
|
||||
RMD160 (Python-2.7.6.tar.xz) = 8efc73a01a466d8fa16c5c1734c89be79c2c538a
|
||||
Size (Python-2.7.6.tar.xz) = 10431288 bytes
|
||||
SHA1 (patch-Include_node.h) = 673d148b625711ac47e4bfeb0f5b0d5b31f94d7e
|
||||
SHA1 (patch-Include_pyerrors.h) = 3eba043c83b1d1df4918524f7b53047a6ed372ae
|
||||
SHA1 (patch-Lib_distutils_unixccompiler.py) = 3964e0c6bd2b3899b24b31892d5ad830ae04d308
|
||||
SHA1 (patch-Lib_test_nullbytecert.pem) = 22f866c0e00016a0931985f672513c0d533d9db5
|
||||
SHA1 (patch-Lib_test_test__ssl.py) = 30622803b45db6c081f8a507139ad0ad56b1ba43
|
||||
SHA1 (patch-Misc_NEWS) = a7871e744f509aca0e3eac7bc3c71d742621ca20
|
||||
SHA1 (patch-Modules___ssl.c) = d66e56a1a88d885564cbbce7afef55467f80d19a
|
||||
SHA1 (patch-Lib_distutils_unixccompiler.py) = 39b967dc2ae648143d5841f22602a21063b4d5ea
|
||||
SHA1 (patch-Modules___ssl.c) = aaddaea5bcd6c84d3d896c7c37f710933b8228bc
|
||||
SHA1 (patch-Modules_getpath.c) = f68b38eb90f974b67ceab3922ce7f92eb77f25c3
|
||||
SHA1 (patch-Modules_readline.c) = 0afcbd1c8bdf3648177bed760e6cccf54c857451
|
||||
SHA1 (patch-Modules_socketmodule.c) = 07c76dcf6dc8605446bc8e01d80e1f1e30a5ebf7
|
||||
SHA1 (patch-aa) = 990e4025bb6a37715e1f5df1831499f0ab08acfa
|
||||
SHA1 (patch-ab) = 0d0ae9802dfe3b85659adb16793affd8c4ffce43
|
||||
SHA1 (patch-ad) = de730b9f5a5efb56afa8bed05824b5f6579242ec
|
||||
SHA1 (patch-ae) = ff6d8c6164fe3c6dc4fb33d88eb8a49d5c5442f6
|
||||
SHA1 (patch-ah) = ae3ce0656d890ca34292920bf0185f94ba847139
|
||||
SHA1 (patch-al) = bb492863afae88d1627b3caba13b73759adb2d15
|
||||
SHA1 (patch-am) = c07ae10d62d3b071c180ea138b225d9d1586abb3
|
||||
SHA1 (patch-al) = dd8bed847f797b97df1a9ad7ffe17645b0f08925
|
||||
SHA1 (patch-am) = e5d78bfd5b9e6339985ed4cb587897042b6b8590
|
||||
SHA1 (patch-an) = 6098fbf0fc31422196cc40d3a227934523db11ca
|
||||
SHA1 (patch-ao) = 3a1cd2b255340fd23fc1fce8680e692581ffcec1
|
||||
SHA1 (patch-au) = 2a2a988ac92553d17eb898870d1adb3c30a59b66
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
$NetBSD: patch-Lib_distutils_unixccompiler.py,v 1.1 2013/04/17 13:21:05 obache Exp $
|
||||
$NetBSD: patch-Lib_distutils_unixccompiler.py,v 1.2 2013/09/10 14:22:30 joerg Exp $
|
||||
|
||||
* from cygport 2.7.3-dylib.patch
|
||||
|
||||
--- Lib/distutils/unixccompiler.py.orig 2013-04-06 14:02:26.000000000 +0000
|
||||
--- Lib/distutils/unixccompiler.py.orig 2013-05-12 03:32:42.000000000 +0000
|
||||
+++ Lib/distutils/unixccompiler.py
|
||||
@@ -82,6 +82,7 @@ class UnixCCompiler(CCompiler):
|
||||
static_lib_format = shared_lib_format = dylib_lib_format = "lib%s%s"
|
||||
@@ -12,3 +12,15 @@ $NetBSD: patch-Lib_distutils_unixccompiler.py,v 1.1 2013/04/17 13:21:05 obache E
|
||||
|
||||
def preprocess(self, source,
|
||||
output_file=None, macros=None, include_dirs=None,
|
||||
@@ -234,10 +235,8 @@ class UnixCCompiler(CCompiler):
|
||||
return ["+s", "-L" + dir]
|
||||
elif sys.platform[:7] == "irix646" or sys.platform[:6] == "osf1V5":
|
||||
return ["-rpath", dir]
|
||||
- elif self._is_gcc(compiler):
|
||||
- return "-Wl,-R" + dir
|
||||
else:
|
||||
- return "-R" + dir
|
||||
+ return "-Wl,-R" + dir
|
||||
|
||||
def library_option(self, lib):
|
||||
return "-l" + lib
|
||||
|
||||
@@ -1,98 +0,0 @@
|
||||
$NetBSD: patch-Lib_test_nullbytecert.pem,v 1.1.2.2 2013/08/21 11:47:14 tron Exp $
|
||||
|
||||
patch for CVE-2013-4238 taken from
|
||||
http://hg.python.org/cpython/rev/bd2360476bdb
|
||||
|
||||
--- Lib/test/nullbytecert.pem.orig 2013-08-18 11:36:17.000000000 +0000
|
||||
+++ Lib/test/nullbytecert.pem
|
||||
@@ -0,0 +1,90 @@
|
||||
+Certificate:
|
||||
+ Data:
|
||||
+ Version: 3 (0x2)
|
||||
+ Serial Number: 0 (0x0)
|
||||
+ Signature Algorithm: sha1WithRSAEncryption
|
||||
+ Issuer: C=US, ST=Oregon, L=Beaverton, O=Python Software Foundation, OU=Python Core Development, CN=null.python.org\x00example.org/emailAddress=python-dev@python.org
|
||||
+ Validity
|
||||
+ Not Before: Aug 7 13:11:52 2013 GMT
|
||||
+ Not After : Aug 7 13:12:52 2013 GMT
|
||||
+ Subject: C=US, ST=Oregon, L=Beaverton, O=Python Software Foundation, OU=Python Core Development, CN=null.python.org\x00example.org/emailAddress=python-dev@python.org
|
||||
+ Subject Public Key Info:
|
||||
+ Public Key Algorithm: rsaEncryption
|
||||
+ Public-Key: (2048 bit)
|
||||
+ Modulus:
|
||||
+ 00:b5:ea:ed:c9:fb:46:7d:6f:3b:76:80:dd:3a:f3:
|
||||
+ 03:94:0b:a7:a6:db:ec:1d:df:ff:23:74:08:9d:97:
|
||||
+ 16:3f:a3:a4:7b:3e:1b:0e:96:59:25:03:a7:26:e2:
|
||||
+ 88:a9:cf:79:cd:f7:04:56:b0:ab:79:32:6e:59:c1:
|
||||
+ 32:30:54:eb:58:a8:cb:91:f0:42:a5:64:27:cb:d4:
|
||||
+ 56:31:88:52:ad:cf:bd:7f:f0:06:64:1f:cc:27:b8:
|
||||
+ a3:8b:8c:f3:d8:29:1f:25:0b:f5:46:06:1b:ca:02:
|
||||
+ 45:ad:7b:76:0a:9c:bf:bb:b9:ae:0d:16:ab:60:75:
|
||||
+ ae:06:3e:9c:7c:31:dc:92:2f:29:1a:e0:4b:0c:91:
|
||||
+ 90:6c:e9:37:c5:90:d7:2a:d7:97:15:a3:80:8f:5d:
|
||||
+ 7b:49:8f:54:30:d4:97:2c:1c:5b:37:b5:ab:69:30:
|
||||
+ 68:43:d3:33:78:4b:02:60:f5:3c:44:80:a1:8f:e7:
|
||||
+ f0:0f:d1:5e:87:9e:46:cf:62:fc:f9:bf:0c:65:12:
|
||||
+ f1:93:c8:35:79:3f:c8:ec:ec:47:f5:ef:be:44:d5:
|
||||
+ ae:82:1e:2d:9a:9f:98:5a:67:65:e1:74:70:7c:cb:
|
||||
+ d3:c2:ce:0e:45:49:27:dc:e3:2d:d4:fb:48:0e:2f:
|
||||
+ 9e:77:b8:14:46:c0:c4:36:ca:02:ae:6a:91:8c:da:
|
||||
+ 2f:85
|
||||
+ Exponent: 65537 (0x10001)
|
||||
+ X509v3 extensions:
|
||||
+ X509v3 Basic Constraints: critical
|
||||
+ CA:FALSE
|
||||
+ X509v3 Subject Key Identifier:
|
||||
+ 88:5A:55:C0:52:FF:61:CD:52:A3:35:0F:EA:5A:9C:24:38:22:F7:5C
|
||||
+ X509v3 Key Usage:
|
||||
+ Digital Signature, Non Repudiation, Key Encipherment
|
||||
+ X509v3 Subject Alternative Name:
|
||||
+ *************************************************************
|
||||
+ WARNING: The values for DNS, email and URI are WRONG. OpenSSL
|
||||
+ doesn't print the text after a NULL byte.
|
||||
+ *************************************************************
|
||||
+ DNS:altnull.python.org, email:null@python.org, URI:http://null.python.org, IP Address:192.0.2.1, IP Address:2001:DB8:0:0:0:0:0:1
|
||||
+ Signature Algorithm: sha1WithRSAEncryption
|
||||
+ ac:4f:45:ef:7d:49:a8:21:70:8e:88:59:3e:d4:36:42:70:f5:
|
||||
+ a3:bd:8b:d7:a8:d0:58:f6:31:4a:b1:a4:a6:dd:6f:d9:e8:44:
|
||||
+ 3c:b6:0a:71:d6:7f:b1:08:61:9d:60:ce:75:cf:77:0c:d2:37:
|
||||
+ 86:02:8d:5e:5d:f9:0f:71:b4:16:a8:c1:3d:23:1c:f1:11:b3:
|
||||
+ 56:6e:ca:d0:8d:34:94:e6:87:2a:99:f2:ae:ae:cc:c2:e8:86:
|
||||
+ de:08:a8:7f:c5:05:fa:6f:81:a7:82:e6:d0:53:9d:34:f4:ac:
|
||||
+ 3e:40:fe:89:57:7a:29:a4:91:7e:0b:c6:51:31:e5:10:2f:a4:
|
||||
+ 60:76:cd:95:51:1a:be:8b:a1:b0:fd:ad:52:bd:d7:1b:87:60:
|
||||
+ d2:31:c7:17:c4:18:4f:2d:08:25:a3:a7:4f:b7:92:ca:e2:f5:
|
||||
+ 25:f1:54:75:81:9d:b3:3d:61:a2:f7:da:ed:e1:c6:6f:2c:60:
|
||||
+ 1f:d8:6f:c5:92:05:ab:c9:09:62:49:a9:14:ad:55:11:cc:d6:
|
||||
+ 4a:19:94:99:97:37:1d:81:5f:8b:cf:a3:a8:96:44:51:08:3d:
|
||||
+ 0b:05:65:12:eb:b6:70:80:88:48:72:4f:c6:c2:da:cf:cd:8e:
|
||||
+ 5b:ba:97:2f:60:b4:96:56:49:5e:3a:43:76:63:04:be:2a:f6:
|
||||
+ c1:ca:a9:94
|
||||
+-----BEGIN CERTIFICATE-----
|
||||
+MIIE2DCCA8CgAwIBAgIBADANBgkqhkiG9w0BAQUFADCBxTELMAkGA1UEBhMCVVMx
|
||||
+DzANBgNVBAgMBk9yZWdvbjESMBAGA1UEBwwJQmVhdmVydG9uMSMwIQYDVQQKDBpQ
|
||||
+eXRob24gU29mdHdhcmUgRm91bmRhdGlvbjEgMB4GA1UECwwXUHl0aG9uIENvcmUg
|
||||
+RGV2ZWxvcG1lbnQxJDAiBgNVBAMMG251bGwucHl0aG9uLm9yZwBleGFtcGxlLm9y
|
||||
+ZzEkMCIGCSqGSIb3DQEJARYVcHl0aG9uLWRldkBweXRob24ub3JnMB4XDTEzMDgw
|
||||
+NzEzMTE1MloXDTEzMDgwNzEzMTI1MlowgcUxCzAJBgNVBAYTAlVTMQ8wDQYDVQQI
|
||||
+DAZPcmVnb24xEjAQBgNVBAcMCUJlYXZlcnRvbjEjMCEGA1UECgwaUHl0aG9uIFNv
|
||||
+ZnR3YXJlIEZvdW5kYXRpb24xIDAeBgNVBAsMF1B5dGhvbiBDb3JlIERldmVsb3Bt
|
||||
+ZW50MSQwIgYDVQQDDBtudWxsLnB5dGhvbi5vcmcAZXhhbXBsZS5vcmcxJDAiBgkq
|
||||
+hkiG9w0BCQEWFXB5dGhvbi1kZXZAcHl0aG9uLm9yZzCCASIwDQYJKoZIhvcNAQEB
|
||||
+BQADggEPADCCAQoCggEBALXq7cn7Rn1vO3aA3TrzA5QLp6bb7B3f/yN0CJ2XFj+j
|
||||
+pHs+Gw6WWSUDpybiiKnPec33BFawq3kyblnBMjBU61ioy5HwQqVkJ8vUVjGIUq3P
|
||||
+vX/wBmQfzCe4o4uM89gpHyUL9UYGG8oCRa17dgqcv7u5rg0Wq2B1rgY+nHwx3JIv
|
||||
+KRrgSwyRkGzpN8WQ1yrXlxWjgI9de0mPVDDUlywcWze1q2kwaEPTM3hLAmD1PESA
|
||||
+oY/n8A/RXoeeRs9i/Pm/DGUS8ZPINXk/yOzsR/XvvkTVroIeLZqfmFpnZeF0cHzL
|
||||
+08LODkVJJ9zjLdT7SA4vnne4FEbAxDbKAq5qkYzaL4UCAwEAAaOB0DCBzTAMBgNV
|
||||
+HRMBAf8EAjAAMB0GA1UdDgQWBBSIWlXAUv9hzVKjNQ/qWpwkOCL3XDALBgNVHQ8E
|
||||
+BAMCBeAwgZAGA1UdEQSBiDCBhYIeYWx0bnVsbC5weXRob24ub3JnAGV4YW1wbGUu
|
||||
+Y29tgSBudWxsQHB5dGhvbi5vcmcAdXNlckBleGFtcGxlLm9yZ4YpaHR0cDovL251
|
||||
+bGwucHl0aG9uLm9yZwBodHRwOi8vZXhhbXBsZS5vcmeHBMAAAgGHECABDbgAAAAA
|
||||
+AAAAAAAAAAEwDQYJKoZIhvcNAQEFBQADggEBAKxPRe99SaghcI6IWT7UNkJw9aO9
|
||||
+i9eo0Fj2MUqxpKbdb9noRDy2CnHWf7EIYZ1gznXPdwzSN4YCjV5d+Q9xtBaowT0j
|
||||
+HPERs1ZuytCNNJTmhyqZ8q6uzMLoht4IqH/FBfpvgaeC5tBTnTT0rD5A/olXeimk
|
||||
+kX4LxlEx5RAvpGB2zZVRGr6LobD9rVK91xuHYNIxxxfEGE8tCCWjp0+3ksri9SXx
|
||||
+VHWBnbM9YaL32u3hxm8sYB/Yb8WSBavJCWJJqRStVRHM1koZlJmXNx2BX4vPo6iW
|
||||
+RFEIPQsFZRLrtnCAiEhyT8bC2s/Njlu6ly9gtJZWSV46Q3ZjBL4q9sHKqZQ=
|
||||
+-----END CERTIFICATE-----
|
||||
@@ -1,67 +0,0 @@
|
||||
$NetBSD: patch-Lib_test_test__ssl.py,v 1.1.2.2 2013/08/21 11:47:14 tron Exp $
|
||||
|
||||
patch for CVE-2013-4238 taken from
|
||||
http://hg.python.org/cpython/rev/bd2360476bdb
|
||||
|
||||
--- Lib/test/test_ssl.py.orig 2013-05-12 03:32:47.000000000 +0000
|
||||
+++ Lib/test/test_ssl.py
|
||||
@@ -25,6 +25,7 @@ ssl = test_support.import_module("ssl")
|
||||
HOST = test_support.HOST
|
||||
CERTFILE = None
|
||||
SVN_PYTHON_ORG_ROOT_CERT = None
|
||||
+NULLBYTECERT = None
|
||||
|
||||
def handle_error(prefix):
|
||||
exc_format = ' '.join(traceback.format_exception(*sys.exc_info()))
|
||||
@@ -123,6 +124,27 @@ class BasicSocketTests(unittest.TestCase
|
||||
('DNS', 'projects.forum.nokia.com'))
|
||||
)
|
||||
|
||||
+ def test_parse_cert_CVE_2013_4238(self):
|
||||
+ p = ssl._ssl._test_decode_cert(NULLBYTECERT)
|
||||
+ if test_support.verbose:
|
||||
+ sys.stdout.write("\n" + pprint.pformat(p) + "\n")
|
||||
+ subject = ((('countryName', 'US'),),
|
||||
+ (('stateOrProvinceName', 'Oregon'),),
|
||||
+ (('localityName', 'Beaverton'),),
|
||||
+ (('organizationName', 'Python Software Foundation'),),
|
||||
+ (('organizationalUnitName', 'Python Core Development'),),
|
||||
+ (('commonName', 'null.python.org\x00example.org'),),
|
||||
+ (('emailAddress', 'python-dev@python.org'),))
|
||||
+ self.assertEqual(p['subject'], subject)
|
||||
+ self.assertEqual(p['issuer'], subject)
|
||||
+ self.assertEqual(p['subjectAltName'],
|
||||
+ (('DNS', 'altnull.python.org\x00example.com'),
|
||||
+ ('email', 'null@python.org\x00user@example.org'),
|
||||
+ ('URI', 'http://null.python.org\x00http://example.org'),
|
||||
+ ('IP Address', '192.0.2.1'),
|
||||
+ ('IP Address', '2001:DB8:0:0:0:0:0:1\n'))
|
||||
+ )
|
||||
+
|
||||
def test_DER_to_PEM(self):
|
||||
with open(SVN_PYTHON_ORG_ROOT_CERT, 'r') as f:
|
||||
pem = f.read()
|
||||
@@ -1360,7 +1382,7 @@ else:
|
||||
|
||||
|
||||
def test_main(verbose=False):
|
||||
- global CERTFILE, SVN_PYTHON_ORG_ROOT_CERT, NOKIACERT
|
||||
+ global CERTFILE, SVN_PYTHON_ORG_ROOT_CERT, NOKIACERT, NULLBYTECERT
|
||||
CERTFILE = os.path.join(os.path.dirname(__file__) or os.curdir,
|
||||
"keycert.pem")
|
||||
SVN_PYTHON_ORG_ROOT_CERT = os.path.join(
|
||||
@@ -1368,10 +1390,13 @@ def test_main(verbose=False):
|
||||
"https_svn_python_org_root.pem")
|
||||
NOKIACERT = os.path.join(os.path.dirname(__file__) or os.curdir,
|
||||
"nokia.pem")
|
||||
+ NULLBYTECERT = os.path.join(os.path.dirname(__file__) or os.curdir,
|
||||
+ "nullbytecert.pem")
|
||||
|
||||
if (not os.path.exists(CERTFILE) or
|
||||
not os.path.exists(SVN_PYTHON_ORG_ROOT_CERT) or
|
||||
- not os.path.exists(NOKIACERT)):
|
||||
+ not os.path.exists(NOKIACERT) or
|
||||
+ not os.path.exists(NULLBYTECERT)):
|
||||
raise test_support.TestFailed("Can't read certificate files!")
|
||||
|
||||
tests = [BasicTests, BasicSocketTests]
|
||||
@@ -1,20 +0,0 @@
|
||||
$NetBSD: patch-Misc_NEWS,v 1.1.2.2 2013/08/21 11:47:14 tron Exp $
|
||||
|
||||
patch for CVE-2013-4238 taken from
|
||||
http://hg.python.org/cpython/rev/bd2360476bdb
|
||||
|
||||
--- Misc/NEWS.orig 2013-05-12 03:32:49.000000000 +0000
|
||||
+++ Misc/NEWS
|
||||
@@ -26,6 +26,12 @@ Core and Builtins
|
||||
Library
|
||||
-------
|
||||
|
||||
+- Issue #18709: Fix CVE-2013-4238. The SSL module now handles NULL bytes
|
||||
+ inside subjectAltName correctly. Formerly the module has used OpenSSL's
|
||||
+ GENERAL_NAME_print() function to get the string represention of ASN.1
|
||||
+ strings for ``rfc822Name`` (email), ``dNSName`` (DNS) and
|
||||
+ ``uniformResourceIdentifier`` (URI).
|
||||
+
|
||||
- Issue #16601: Restarting iteration over tarfile no more continues from where
|
||||
it left off. Patch by Michael Birtwell.
|
||||
|
||||
@@ -1,11 +1,8 @@
|
||||
$NetBSD: patch-Modules___ssl.c,v 1.1.2.1 2013/08/21 11:47:14 tron Exp $
|
||||
$NetBSD: patch-Modules___ssl.c,v 1.3 2013/11/12 18:57:25 adam Exp $
|
||||
|
||||
* from cygport 2.6.2-ssl-threads.patch
|
||||
Cygwin fix from cygport 2.6.2-ssl-threads.patch
|
||||
|
||||
patch for CVE-2013-4238 taken from
|
||||
http://hg.python.org/cpython/rev/bd2360476bdb
|
||||
|
||||
--- Modules/_ssl.c.orig 2013-04-06 14:02:36.000000000 +0000
|
||||
--- Modules/_ssl.c.orig 2013-11-10 07:36:41.000000000 +0000
|
||||
+++ Modules/_ssl.c
|
||||
@@ -16,6 +16,10 @@
|
||||
|
||||
@@ -17,97 +14,4 @@ http://hg.python.org/cpython/rev/bd2360476bdb
|
||||
+
|
||||
#ifdef WITH_THREAD
|
||||
#include "pythread.h"
|
||||
#define PySSL_BEGIN_ALLOW_THREADS { \
|
||||
@@ -738,13 +742,16 @@ _get_peer_alt_names (X509 *certificate)
|
||||
ext->value->length));
|
||||
|
||||
for(j = 0; j < sk_GENERAL_NAME_num(names); j++) {
|
||||
-
|
||||
/* get a rendering of each name in the set of names */
|
||||
+ int gntype;
|
||||
+ ASN1_STRING *as = NULL;
|
||||
|
||||
name = sk_GENERAL_NAME_value(names, j);
|
||||
- if (name->type == GEN_DIRNAME) {
|
||||
-
|
||||
- /* we special-case DirName as a tuple of tuples of attributes */
|
||||
+ gntype = name-> type;
|
||||
+ switch (gntype) {
|
||||
+ case GEN_DIRNAME:
|
||||
+ /* we special-case DirName as a tuple of
|
||||
+ tuples of attributes */
|
||||
|
||||
t = PyTuple_New(2);
|
||||
if (t == NULL) {
|
||||
@@ -764,11 +771,61 @@ _get_peer_alt_names (X509 *certificate)
|
||||
goto fail;
|
||||
}
|
||||
PyTuple_SET_ITEM(t, 1, v);
|
||||
+ break;
|
||||
|
||||
- } else {
|
||||
+ case GEN_EMAIL:
|
||||
+ case GEN_DNS:
|
||||
+ case GEN_URI:
|
||||
+ /* GENERAL_NAME_print() doesn't handle NULL bytes in ASN1_string
|
||||
+ correctly, CVE-2013-4238 */
|
||||
+ t = PyTuple_New(2);
|
||||
+ if (t == NULL)
|
||||
+ goto fail;
|
||||
+ switch (gntype) {
|
||||
+ case GEN_EMAIL:
|
||||
+ v = PyString_FromString("email");
|
||||
+ as = name->d.rfc822Name;
|
||||
+ break;
|
||||
+ case GEN_DNS:
|
||||
+ v = PyString_FromString("DNS");
|
||||
+ as = name->d.dNSName;
|
||||
+ break;
|
||||
+ case GEN_URI:
|
||||
+ v = PyString_FromString("URI");
|
||||
+ as = name->d.uniformResourceIdentifier;
|
||||
+ break;
|
||||
+ }
|
||||
+ if (v == NULL) {
|
||||
+ Py_DECREF(t);
|
||||
+ goto fail;
|
||||
+ }
|
||||
+ PyTuple_SET_ITEM(t, 0, v);
|
||||
+ v = PyString_FromStringAndSize((char *)ASN1_STRING_data(as),
|
||||
+ ASN1_STRING_length(as));
|
||||
+ if (v == NULL) {
|
||||
+ Py_DECREF(t);
|
||||
+ goto fail;
|
||||
+ }
|
||||
+ PyTuple_SET_ITEM(t, 1, v);
|
||||
+ break;
|
||||
|
||||
+ default:
|
||||
/* for everything else, we use the OpenSSL print form */
|
||||
-
|
||||
+ switch (gntype) {
|
||||
+ /* check for new general name type */
|
||||
+ case GEN_OTHERNAME:
|
||||
+ case GEN_X400:
|
||||
+ case GEN_EDIPARTY:
|
||||
+ case GEN_IPADD:
|
||||
+ case GEN_RID:
|
||||
+ break;
|
||||
+ default:
|
||||
+ if (PyErr_Warn(PyExc_RuntimeWarning,
|
||||
+ "Unknown general name type") == -1) {
|
||||
+ goto fail;
|
||||
+ }
|
||||
+ break;
|
||||
+ }
|
||||
(void) BIO_reset(biobuf);
|
||||
GENERAL_NAME_print(biobuf, name);
|
||||
len = BIO_gets(biobuf, buf, sizeof(buf)-1);
|
||||
@@ -794,6 +851,7 @@ _get_peer_alt_names (X509 *certificate)
|
||||
goto fail;
|
||||
}
|
||||
PyTuple_SET_ITEM(t, 1, v);
|
||||
+ break;
|
||||
}
|
||||
|
||||
/* and add that rendering to the list */
|
||||
|
||||
44
lang/python27/patches/patch-Modules_readline.c
Normal file
44
lang/python27/patches/patch-Modules_readline.c
Normal file
@@ -0,0 +1,44 @@
|
||||
$NetBSD: patch-Modules_readline.c,v 1.2 2014/03/27 06:26:24 obache Exp $
|
||||
|
||||
* fixes for readline-6.3
|
||||
http://bugs.python.org/issue20374
|
||||
|
||||
--- Modules/readline.c.orig 2013-11-10 07:36:41.000000000 +0000
|
||||
+++ Modules/readline.c
|
||||
@@ -750,7 +750,11 @@ on_hook(PyObject *func)
|
||||
}
|
||||
|
||||
static int
|
||||
+#if defined(_RL_FUNCTION_TYPEDEF)
|
||||
on_startup_hook(void)
|
||||
+#else
|
||||
+on_startup_hook()
|
||||
+#endif
|
||||
{
|
||||
return on_hook(startup_hook);
|
||||
}
|
||||
@@ -852,7 +856,7 @@ on_completion(const char *text, int stat
|
||||
* before calling the normal completer */
|
||||
|
||||
static char **
|
||||
-flex_complete(char *text, int start, int end)
|
||||
+flex_complete(const char *text, int start, int end)
|
||||
{
|
||||
#ifdef HAVE_RL_COMPLETION_APPEND_CHARACTER
|
||||
rl_completion_append_character ='\0';
|
||||
@@ -911,12 +915,12 @@ setup_readline(void)
|
||||
rl_bind_key_in_map ('\t', rl_complete, emacs_meta_keymap);
|
||||
rl_bind_key_in_map ('\033', rl_complete, emacs_meta_keymap);
|
||||
/* Set our hook functions */
|
||||
- rl_startup_hook = (Function *)on_startup_hook;
|
||||
+ rl_startup_hook = on_startup_hook;
|
||||
#ifdef HAVE_RL_PRE_INPUT_HOOK
|
||||
- rl_pre_input_hook = (Function *)on_pre_input_hook;
|
||||
+ rl_pre_input_hook = on_pre_input_hook;
|
||||
#endif
|
||||
/* Set our completion function */
|
||||
- rl_attempted_completion_function = (CPPFunction *)flex_complete;
|
||||
+ rl_attempted_completion_function = flex_complete;
|
||||
/* Set Python word break characters */
|
||||
completer_word_break_characters =
|
||||
rl_completer_word_break_characters =
|
||||
19
lang/python27/patches/patch-Modules_socketmodule.c
Normal file
19
lang/python27/patches/patch-Modules_socketmodule.c
Normal file
@@ -0,0 +1,19 @@
|
||||
$NetBSD: patch-Modules_socketmodule.c,v 1.1 2014/02/09 09:02:50 tron Exp $
|
||||
|
||||
Fix vulnerability reported in SA56624. Patch taken from here:
|
||||
|
||||
http://hg.python.org/cpython/rev/87673659d8f7
|
||||
|
||||
--- Modules/socketmodule.c.orig 2013-11-10 07:36:41.000000000 +0000
|
||||
+++ Modules/socketmodule.c 2014-02-09 08:41:25.000000000 +0000
|
||||
@@ -2742,6 +2742,10 @@
|
||||
if (recvlen == 0) {
|
||||
/* If nbytes was not specified, use the buffer's length */
|
||||
recvlen = buflen;
|
||||
+ } else if (recvlen > buflen) {
|
||||
+ PyErr_SetString(PyExc_ValueError,
|
||||
+ "nbytes is greater than the length of the buffer");
|
||||
+ goto error;
|
||||
}
|
||||
|
||||
readlen = sock_recvfrom_guts(s, buf.buf, recvlen, flags, &addr);
|
||||
@@ -1,7 +1,8 @@
|
||||
$NetBSD: patch-al,v 1.10 2013/04/12 09:03:41 adam Exp $
|
||||
$NetBSD: patch-al,v 1.11 2013/09/13 13:18:20 adam Exp $
|
||||
|
||||
- recognize MirBSD, Interix
|
||||
- remove special-case library version hack for FreeBSD
|
||||
- don't set Mac OS X target version: stick to the current one
|
||||
- honor pkgsrc LDFLAGS
|
||||
- other stuff not previously commented (XXX)
|
||||
|
||||
@@ -33,6 +34,15 @@ $NetBSD: patch-al,v 1.10 2013/04/12 09:03:41 adam Exp $
|
||||
INSTSONAME="$LDLIBRARY".$SOVERSION
|
||||
;;
|
||||
hp*|HP*)
|
||||
@@ -6037,7 +6032,7 @@ $as_echo "$CC" >&6; }
|
||||
# Calculate the right deployment target for this build.
|
||||
#
|
||||
cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
|
||||
- if test ${cur_target} '>' 10.2; then
|
||||
+ if false; then
|
||||
cur_target=10.3
|
||||
if test ${enable_universalsdk}; then
|
||||
if test "${UNIVERSAL_ARCHS}" = "all"; then
|
||||
@@ -8214,9 +8209,9 @@ then
|
||||
LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
|
||||
else
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
$NetBSD: patch-am,v 1.10 2013/05/27 16:24:00 adam Exp $
|
||||
$NetBSD: patch-am,v 1.14 2014/03/27 05:36:37 obache Exp $
|
||||
|
||||
Disabled modules for normal build:
|
||||
bsddb
|
||||
@@ -21,7 +21,7 @@ Build the 1.85 compat module all the time against the BDB version of choice.
|
||||
|
||||
cygwin 2.7.3-no-libm.patch
|
||||
|
||||
--- setup.py.orig 2013-04-06 14:02:41.000000000 +0000
|
||||
--- setup.py.orig 2013-11-10 07:36:41.000000000 +0000
|
||||
+++ setup.py
|
||||
@@ -33,7 +33,7 @@ host_platform = get_platform()
|
||||
COMPILED_WITH_PYDEBUG = ('--with-pydebug' in sysconfig.get_config_var("CONFIG_ARGS"))
|
||||
@@ -32,13 +32,14 @@ cygwin 2.7.3-no-libm.patch
|
||||
|
||||
def add_dir_to_list(dirlist, dir):
|
||||
"""Add the directory 'dir' to the list 'dirlist' (at the front) if
|
||||
@@ -436,9 +436,15 @@ class PyBuildExt(build_ext):
|
||||
@@ -436,10 +436,15 @@ class PyBuildExt(build_ext):
|
||||
os.unlink(tmpfile)
|
||||
|
||||
def detect_modules(self):
|
||||
- # Ensure that /usr/local is always used
|
||||
- add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
|
||||
- add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
|
||||
- if not cross_compiling:
|
||||
- add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
|
||||
- add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
|
||||
+ # Add the buildlink directories for pkgsrc
|
||||
+ if os.environ.has_key('BUILDLINK_DIR'):
|
||||
+ dir = os.environ['BUILDLINK_DIR']
|
||||
@@ -48,10 +49,10 @@ cygwin 2.7.3-no-libm.patch
|
||||
+ self.compiler.library_dirs.insert(0, libdir)
|
||||
+ if incdir not in self.compiler.include_dirs:
|
||||
+ self.compiler.include_dirs.insert(0, incdir)
|
||||
self.add_gcc_paths()
|
||||
if cross_compiling:
|
||||
self.add_gcc_paths()
|
||||
self.add_multiarch_paths()
|
||||
|
||||
@@ -548,7 +554,7 @@ class PyBuildExt(build_ext):
|
||||
@@ -551,7 +556,7 @@ class PyBuildExt(build_ext):
|
||||
|
||||
# Check for MacOS X, which doesn't need libm.a at all
|
||||
math_libs = ['m']
|
||||
@@ -60,7 +61,7 @@ cygwin 2.7.3-no-libm.patch
|
||||
math_libs = []
|
||||
|
||||
# XXX Omitted modules: gl, pure, dl, SGI-specific modules
|
||||
@@ -794,9 +800,7 @@ class PyBuildExt(build_ext):
|
||||
@@ -797,9 +802,7 @@ class PyBuildExt(build_ext):
|
||||
if krb5_h:
|
||||
ssl_incs += krb5_h
|
||||
ssl_libs = find_library_file(self.compiler, 'ssl',lib_dirs,
|
||||
@@ -71,7 +72,7 @@ cygwin 2.7.3-no-libm.patch
|
||||
|
||||
if (ssl_incs is not None and
|
||||
ssl_libs is not None):
|
||||
@@ -915,175 +919,6 @@ class PyBuildExt(build_ext):
|
||||
@@ -918,175 +921,6 @@ class PyBuildExt(build_ext):
|
||||
else:
|
||||
raise ValueError("unknown major BerkeleyDB version", major)
|
||||
|
||||
@@ -247,7 +248,7 @@ cygwin 2.7.3-no-libm.patch
|
||||
# The sqlite interface
|
||||
sqlite_setup_debug = False # verbose debug prints from this script?
|
||||
|
||||
@@ -1201,35 +1036,39 @@ class PyBuildExt(build_ext):
|
||||
@@ -1204,35 +1038,39 @@ class PyBuildExt(build_ext):
|
||||
# we do not build this one. Otherwise this build will pick up
|
||||
# the more recent berkeleydb's db.h file first in the include path
|
||||
# when attempting to compile and it will fail.
|
||||
@@ -311,7 +312,7 @@ cygwin 2.7.3-no-libm.patch
|
||||
config_args = [arg.strip("'")
|
||||
for arg in sysconfig.get_config_var("CONFIG_ARGS").split()]
|
||||
dbm_args = [arg for arg in config_args
|
||||
@@ -1241,7 +1080,7 @@ class PyBuildExt(build_ext):
|
||||
@@ -1244,7 +1082,7 @@ class PyBuildExt(build_ext):
|
||||
dbmext = None
|
||||
for cand in dbm_order:
|
||||
if cand == "ndbm":
|
||||
@@ -320,7 +321,7 @@ cygwin 2.7.3-no-libm.patch
|
||||
# Some systems have -lndbm, others have -lgdbm_compat,
|
||||
# others don't have either
|
||||
if self.compiler.find_library_file(lib_dirs,
|
||||
@@ -1285,18 +1124,14 @@ class PyBuildExt(build_ext):
|
||||
@@ -1288,18 +1126,14 @@ class PyBuildExt(build_ext):
|
||||
libraries = gdbm_libs)
|
||||
break
|
||||
elif cand == "bdb":
|
||||
@@ -347,7 +348,7 @@ cygwin 2.7.3-no-libm.patch
|
||||
if dbmext is not None:
|
||||
exts.append(dbmext)
|
||||
else:
|
||||
@@ -2176,9 +2011,9 @@ def main():
|
||||
@@ -2222,9 +2056,9 @@ def main():
|
||||
ext_modules=[Extension('_struct', ['_struct.c'])],
|
||||
|
||||
# Scripts to install
|
||||
@@ -356,7 +357,7 @@ cygwin 2.7.3-no-libm.patch
|
||||
- 'Lib/smtpd.py']
|
||||
+ scripts = ['Tools/scripts/pydoc2.7',
|
||||
+ 'Tools/scripts/2to3-2.7',
|
||||
+ 'Lib/smtpd2.7.py']
|
||||
+ 'Tools/scripts/smtpd2.7.py']
|
||||
)
|
||||
|
||||
# --install-platlib
|
||||
|
||||
Reference in New Issue
Block a user