Revert config directory naming to include platform name, so sysconfig.get_makefile_filename() works again.diff -r1.1 -r1.2 pkgsrc/lang/python36/Makefile
(adam)
@@ -1,18 +1,19 @@ | @@ -1,18 +1,19 @@ | |||
1 | # $NetBSD: Makefile,v 1.1 2017/01/01 14:34:27 adam Exp $ | 1 | # $NetBSD: Makefile,v 1.2 2017/01/25 19:35:49 adam Exp $ | |
2 | 2 | |||
3 | .include "dist.mk" | 3 | .include "dist.mk" | |
4 | 4 | |||
5 | PKGNAME= python36-${PY_DISTVERSION} | 5 | PKGNAME= python36-${PY_DISTVERSION} | |
6 | PKGREVISION= 1 | |||
6 | CATEGORIES= lang python | 7 | CATEGORIES= lang python | |
7 | 8 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 9 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | HOMEPAGE= http://www.python.org/ | 10 | HOMEPAGE= http://www.python.org/ | |
10 | COMMENT= Interpreted, interactive, object-oriented programming language | 11 | COMMENT= Interpreted, interactive, object-oriented programming language | |
11 | LICENSE= python-software-foundation | 12 | LICENSE= python-software-foundation | |
12 | 13 | |||
13 | CONFLICTS+= python-[0-9]* | 14 | CONFLICTS+= python-[0-9]* | |
14 | 15 | |||
15 | PLIST_AWK+= -f ${PKGSRCDIR}/lang/python/plist-python.awk | 16 | PLIST_AWK+= -f ${PKGSRCDIR}/lang/python/plist-python.awk | |
16 | PLIST_AWK_ENV+= PYVERS=36 | 17 | PLIST_AWK_ENV+= PYVERS=36 | |
17 | PRINT_PLIST_AWK+= /^[^@]/ && /[^\/]+\.pyc$$/ { | 18 | PRINT_PLIST_AWK+= /^[^@]/ && /[^\/]+\.pyc$$/ { | |
18 | PRINT_PLIST_AWK+= sub(/__pycache__\//, "") | 19 | PRINT_PLIST_AWK+= sub(/__pycache__\//, "") |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.1 2017/01/01 14:34:27 adam Exp $ | 1 | @comment $NetBSD: PLIST,v 1.2 2017/01/25 19:35:49 adam Exp $ | |
2 | bin/2to3-${PY_VER_SUFFIX} | 2 | bin/2to3-${PY_VER_SUFFIX} | |
3 | bin/pydoc${PY_VER_SUFFIX} | 3 | bin/pydoc${PY_VER_SUFFIX} | |
4 | bin/python${PY_VER_SUFFIX} | 4 | bin/python${PY_VER_SUFFIX} | |
5 | bin/python${PY_VER_SUFFIX}-config | 5 | bin/python${PY_VER_SUFFIX}-config | |
6 | bin/pyvenv-${PY_VER_SUFFIX} | 6 | bin/pyvenv-${PY_VER_SUFFIX} | |
7 | include/python${PY_VER_SUFFIX}/Python-ast.h | 7 | include/python${PY_VER_SUFFIX}/Python-ast.h | |
8 | include/python${PY_VER_SUFFIX}/Python.h | 8 | include/python${PY_VER_SUFFIX}/Python.h | |
9 | include/python${PY_VER_SUFFIX}/abstract.h | 9 | include/python${PY_VER_SUFFIX}/abstract.h | |
10 | include/python${PY_VER_SUFFIX}/accu.h | 10 | include/python${PY_VER_SUFFIX}/accu.h | |
11 | include/python${PY_VER_SUFFIX}/asdl.h | 11 | include/python${PY_VER_SUFFIX}/asdl.h | |
12 | include/python${PY_VER_SUFFIX}/ast.h | 12 | include/python${PY_VER_SUFFIX}/ast.h | |
13 | include/python${PY_VER_SUFFIX}/bitset.h | 13 | include/python${PY_VER_SUFFIX}/bitset.h | |
14 | include/python${PY_VER_SUFFIX}/bltinmodule.h | 14 | include/python${PY_VER_SUFFIX}/bltinmodule.h | |
@@ -312,37 +312,37 @@ lib/python${PY_VER_SUFFIX}/concurrent/__ | @@ -312,37 +312,37 @@ lib/python${PY_VER_SUFFIX}/concurrent/__ | |||
312 | lib/python${PY_VER_SUFFIX}/concurrent/__init__.pyo | 312 | lib/python${PY_VER_SUFFIX}/concurrent/__init__.pyo | |
313 | lib/python${PY_VER_SUFFIX}/concurrent/futures/__init__.py | 313 | lib/python${PY_VER_SUFFIX}/concurrent/futures/__init__.py | |
314 | lib/python${PY_VER_SUFFIX}/concurrent/futures/__init__.pyc | 314 | lib/python${PY_VER_SUFFIX}/concurrent/futures/__init__.pyc | |
315 | lib/python${PY_VER_SUFFIX}/concurrent/futures/__init__.pyo | 315 | lib/python${PY_VER_SUFFIX}/concurrent/futures/__init__.pyo | |
316 | lib/python${PY_VER_SUFFIX}/concurrent/futures/_base.py | 316 | lib/python${PY_VER_SUFFIX}/concurrent/futures/_base.py | |
317 | lib/python${PY_VER_SUFFIX}/concurrent/futures/_base.pyc | 317 | lib/python${PY_VER_SUFFIX}/concurrent/futures/_base.pyc | |
318 | lib/python${PY_VER_SUFFIX}/concurrent/futures/_base.pyo | 318 | lib/python${PY_VER_SUFFIX}/concurrent/futures/_base.pyo | |
319 | lib/python${PY_VER_SUFFIX}/concurrent/futures/process.py | 319 | lib/python${PY_VER_SUFFIX}/concurrent/futures/process.py | |
320 | lib/python${PY_VER_SUFFIX}/concurrent/futures/process.pyc | 320 | lib/python${PY_VER_SUFFIX}/concurrent/futures/process.pyc | |
321 | lib/python${PY_VER_SUFFIX}/concurrent/futures/process.pyo | 321 | lib/python${PY_VER_SUFFIX}/concurrent/futures/process.pyo | |
322 | lib/python${PY_VER_SUFFIX}/concurrent/futures/thread.py | 322 | lib/python${PY_VER_SUFFIX}/concurrent/futures/thread.py | |
323 | lib/python${PY_VER_SUFFIX}/concurrent/futures/thread.pyc | 323 | lib/python${PY_VER_SUFFIX}/concurrent/futures/thread.pyc | |
324 | lib/python${PY_VER_SUFFIX}/concurrent/futures/thread.pyo | 324 | lib/python${PY_VER_SUFFIX}/concurrent/futures/thread.pyo | |
325 | lib/python${PY_VER_SUFFIX}/config-${PY_VER_SUFFIX}/Makefile | 325 | lib/python${PY_VER_SUFFIX}/config-${PY_VER_SUFFIX}-${PY_PLATNAME}/Makefile | |
326 | lib/python${PY_VER_SUFFIX}/config-${PY_VER_SUFFIX}/Setup | 326 | lib/python${PY_VER_SUFFIX}/config-${PY_VER_SUFFIX}-${PY_PLATNAME}/Setup | |
327 | lib/python${PY_VER_SUFFIX}/config-${PY_VER_SUFFIX}/Setup.config | 327 | lib/python${PY_VER_SUFFIX}/config-${PY_VER_SUFFIX}-${PY_PLATNAME}/Setup.config | |
328 | lib/python${PY_VER_SUFFIX}/config-${PY_VER_SUFFIX}/Setup.local | 328 | lib/python${PY_VER_SUFFIX}/config-${PY_VER_SUFFIX}-${PY_PLATNAME}/Setup.local | |
329 | lib/python${PY_VER_SUFFIX}/config-${PY_VER_SUFFIX}/config.c | 329 | lib/python${PY_VER_SUFFIX}/config-${PY_VER_SUFFIX}-${PY_PLATNAME}/config.c | |
330 | lib/python${PY_VER_SUFFIX}/config-${PY_VER_SUFFIX}/config.c.in | 330 | lib/python${PY_VER_SUFFIX}/config-${PY_VER_SUFFIX}-${PY_PLATNAME}/config.c.in | |
331 | lib/python${PY_VER_SUFFIX}/config-${PY_VER_SUFFIX}/install-sh | 331 | lib/python${PY_VER_SUFFIX}/config-${PY_VER_SUFFIX}-${PY_PLATNAME}/install-sh | |
332 | lib/python${PY_VER_SUFFIX}/config-${PY_VER_SUFFIX}/libpython${PY_VER_SUFFIX}.a | 332 | lib/python${PY_VER_SUFFIX}/config-${PY_VER_SUFFIX}-${PY_PLATNAME}/libpython${PY_VER_SUFFIX}.a | |
333 | lib/python${PY_VER_SUFFIX}/config-${PY_VER_SUFFIX}/makesetup | 333 | lib/python${PY_VER_SUFFIX}/config-${PY_VER_SUFFIX}-${PY_PLATNAME}/makesetup | |
334 | lib/python${PY_VER_SUFFIX}/config-${PY_VER_SUFFIX}/python-config.py | 334 | lib/python${PY_VER_SUFFIX}/config-${PY_VER_SUFFIX}-${PY_PLATNAME}/python-config.py | |
335 | lib/python${PY_VER_SUFFIX}/config-${PY_VER_SUFFIX}/python.o | 335 | lib/python${PY_VER_SUFFIX}/config-${PY_VER_SUFFIX}-${PY_PLATNAME}/python.o | |
336 | lib/python${PY_VER_SUFFIX}/configparser.py | 336 | lib/python${PY_VER_SUFFIX}/configparser.py | |
337 | lib/python${PY_VER_SUFFIX}/configparser.pyc | 337 | lib/python${PY_VER_SUFFIX}/configparser.pyc | |
338 | lib/python${PY_VER_SUFFIX}/configparser.pyo | 338 | lib/python${PY_VER_SUFFIX}/configparser.pyo | |
339 | lib/python${PY_VER_SUFFIX}/contextlib.py | 339 | lib/python${PY_VER_SUFFIX}/contextlib.py | |
340 | lib/python${PY_VER_SUFFIX}/contextlib.pyc | 340 | lib/python${PY_VER_SUFFIX}/contextlib.pyc | |
341 | lib/python${PY_VER_SUFFIX}/contextlib.pyo | 341 | lib/python${PY_VER_SUFFIX}/contextlib.pyo | |
342 | lib/python${PY_VER_SUFFIX}/copy.py | 342 | lib/python${PY_VER_SUFFIX}/copy.py | |
343 | lib/python${PY_VER_SUFFIX}/copy.pyc | 343 | lib/python${PY_VER_SUFFIX}/copy.pyc | |
344 | lib/python${PY_VER_SUFFIX}/copy.pyo | 344 | lib/python${PY_VER_SUFFIX}/copy.pyo | |
345 | lib/python${PY_VER_SUFFIX}/copyreg.py | 345 | lib/python${PY_VER_SUFFIX}/copyreg.py | |
346 | lib/python${PY_VER_SUFFIX}/copyreg.pyc | 346 | lib/python${PY_VER_SUFFIX}/copyreg.pyc | |
347 | lib/python${PY_VER_SUFFIX}/copyreg.pyo | 347 | lib/python${PY_VER_SUFFIX}/copyreg.pyo | |
348 | lib/python${PY_VER_SUFFIX}/crypt.py | 348 | lib/python${PY_VER_SUFFIX}/crypt.py |
@@ -1,18 +1,18 @@ | @@ -1,18 +1,18 @@ | |||
1 | $NetBSD: distinfo,v 1.3 2017/01/05 23:16:42 roy Exp $ | 1 | $NetBSD: distinfo,v 1.4 2017/01/25 19:35:49 adam Exp $ | |
2 | 2 | |||
3 | SHA1 (Python-3.6.0.tar.xz) = 18ebf7d726782967d967dc00e3aa08b334fbdd5c | 3 | SHA1 (Python-3.6.0.tar.xz) = 18ebf7d726782967d967dc00e3aa08b334fbdd5c | |
4 | RMD160 (Python-3.6.0.tar.xz) = 984a38d1eec379ac8921479a86259ca0161734af | 4 | RMD160 (Python-3.6.0.tar.xz) = 984a38d1eec379ac8921479a86259ca0161734af | |
5 | SHA512 (Python-3.6.0.tar.xz) = 9d06bee9172bc0bfd2d280fd1c27ea712f3258cfbfd2e2aeb734d0a6710998d5deeefc5d6e72251750dd9493d35461511ceaa187a29dea700ca238ff6ac1dbb2 | 5 | SHA512 (Python-3.6.0.tar.xz) = 9d06bee9172bc0bfd2d280fd1c27ea712f3258cfbfd2e2aeb734d0a6710998d5deeefc5d6e72251750dd9493d35461511ceaa187a29dea700ca238ff6ac1dbb2 | |
6 | Size (Python-3.6.0.tar.xz) = 16805836 bytes | 6 | Size (Python-3.6.0.tar.xz) = 16805836 bytes | |
7 | SHA1 (patch-Include_py__curses.h) = 14359f8d0527eff08073c0aea60dfe8961d9255d | 7 | SHA1 (patch-Include_py__curses.h) = 14359f8d0527eff08073c0aea60dfe8961d9255d | |
8 | SHA1 (patch-Lib_distutils_command_install.py) = 6fc6f5d918b7581fc62cd0fe55857ee932c3a341 | 8 | SHA1 (patch-Lib_distutils_command_install.py) = 6fc6f5d918b7581fc62cd0fe55857ee932c3a341 | |
9 | SHA1 (patch-Lib_distutils_sysconfig.py) = 23d8e9e63924e0b7be21355bd83d20eff25c9c21 | 9 | SHA1 (patch-Lib_distutils_sysconfig.py) = 23d8e9e63924e0b7be21355bd83d20eff25c9c21 | |
10 | SHA1 (patch-Lib_distutils_unixccompiler.py) = e7aa684fa186de7a01486c3d8bfa177afdd22ef9 | 10 | SHA1 (patch-Lib_distutils_unixccompiler.py) = e7aa684fa186de7a01486c3d8bfa177afdd22ef9 | |
11 | SHA1 (patch-Lib_sysconfig.py) = 81df54149caba826062fb78e68fdd4328ea98b2a | 11 | SHA1 (patch-Lib_sysconfig.py) = 81df54149caba826062fb78e68fdd4328ea98b2a | |
12 | SHA1 (patch-Makefile.pre.in) = 99b33ba203eb2c9c626377f1bac03c723d467553 | 12 | SHA1 (patch-Makefile.pre.in) = 99b33ba203eb2c9c626377f1bac03c723d467553 | |
13 | SHA1 (patch-Modules___cursesmodule.c) = 2ab2779e0418a4529987641c254686ba05d28593 | 13 | SHA1 (patch-Modules___cursesmodule.c) = 2ab2779e0418a4529987641c254686ba05d28593 | |
14 | SHA1 (patch-Modules_makesetup) = a06786eebffadecedba5e3a50a9785fb47613567 | 14 | SHA1 (patch-Modules_makesetup) = a06786eebffadecedba5e3a50a9785fb47613567 | |
15 | SHA1 (patch-Modules_nismodule.c) = 1bafe9b06359586d027a77011b103877590d947d | 15 | SHA1 (patch-Modules_nismodule.c) = 1bafe9b06359586d027a77011b103877590d947d | |
16 | SHA1 (patch-Python_thread__pthread.h) = fb81eaa604b4ed7c1b64c3f4731d58a8aee257be | 16 | SHA1 (patch-Python_thread__pthread.h) = fb81eaa604b4ed7c1b64c3f4731d58a8aee257be | |
17 | SHA1 (patch-configure) = 0c1d33440105d08c3a1564a5b47a35f5f7e5ecf8 | 17 | SHA1 (patch-configure) = 7bbebbb5716a0740035b5028434154d4d4ccfc88 | |
18 | SHA1 (patch-setup.py) = f3fd3c3e5bc2e002dcee8239d153360a7247844b | 18 | SHA1 (patch-setup.py) = f3fd3c3e5bc2e002dcee8239d153360a7247844b |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | $NetBSD: patch-configure,v 1.1 2017/01/01 14:34:27 adam Exp $ | 1 | $NetBSD: patch-configure,v 1.2 2017/01/25 19:35:49 adam Exp $ | |
2 | 2 | |||
3 | Simplify _sysconfigdata to include only platform name. | 3 | Simplify _sysconfigdata to include only platform name. | |
4 | 4 | |||
5 | MirBSD support | 5 | MirBSD support | |
6 | http://bugs.python.org/issue21458 | 6 | http://bugs.python.org/issue21458 | |
7 | 7 | |||
8 | Changes for consistency across pkgsrc platforms. | 8 | Changes for consistency across pkgsrc platforms. | |
9 | 9 | |||
10 | Fix linking on Darwin. | 10 | Fix linking on Darwin. | |
11 | 11 | |||
12 | --- configure.orig 2016-12-23 02:21:22.000000000 +0000 | 12 | --- configure.orig 2016-12-23 02:21:22.000000000 +0000 | |
13 | +++ configure | 13 | +++ configure | |
14 | @@ -2928,7 +2928,7 @@ $as_echo_n "checking for python interpre | 14 | @@ -2928,7 +2928,7 @@ $as_echo_n "checking for python interpre | |
@@ -89,25 +89,13 @@ Fix linking on Darwin. | @@ -89,25 +89,13 @@ Fix linking on Darwin. | |||
89 | + FreeBSD*|NetBSD*|OpenBSD*|MirBSD*|DragonFly*) | 89 | + FreeBSD*|NetBSD*|OpenBSD*|MirBSD*|DragonFly*) | |
90 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 90 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | |
91 | then | 91 | then | |
92 | LINKFORSHARED="-Wl,--export-dynamic" | 92 | LINKFORSHARED="-Wl,--export-dynamic" | |
93 | @@ -14882,8 +14885,6 @@ $as_echo "$SOABI" >&6; } | 93 | @@ -14882,8 +14885,6 @@ $as_echo "$SOABI" >&6; } | |
94 | 94 | |||
95 | 95 | |||
96 | case $ac_sys_system in | 96 | case $ac_sys_system in | |
97 | - Linux*|GNU*|Darwin) | 97 | - Linux*|GNU*|Darwin) | |
98 | - EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX};; | 98 | - EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX};; | |
99 | *) | 99 | *) | |
100 | EXT_SUFFIX=${SHLIB_SUFFIX};; | 100 | EXT_SUFFIX=${SHLIB_SUFFIX};; | |
101 | esac | 101 | esac | |
102 | @@ -14895,11 +14896,7 @@ LDVERSION='$(VERSION)$(ABIFLAGS)' | |||
103 | $as_echo "$LDVERSION" >&6; } | |||
104 | ||||
105 | ||||
106 | -if test x$PLATFORM_TRIPLET = x; then | |||
107 | LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}" | |||
108 | -else | |||
109 | - LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}" | |||
110 | -fi | |||
111 | ||||
112 | ||||
113 | # Check whether right shifting a negative integer extends the sign bit |