Remove obsolete bsddb bits carried over from python2. Patch from jcea in joyent/pkgsrc#457.diff -r1.18 -r1.19 pkgsrc/lang/python34/Makefile
(jperkin)
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.18 2017/01/19 01:25:09 wen Exp $ | 1 | # $NetBSD: Makefile,v 1.19 2017/01/26 09:45:23 jperkin Exp $ | |
2 | 2 | |||
3 | .include "dist.mk" | 3 | .include "dist.mk" | |
4 | 4 | |||
5 | PKGNAME= python34-${PY_DISTVERSION} | 5 | PKGNAME= python34-${PY_DISTVERSION} | |
6 | CATEGORIES= lang python | 6 | CATEGORIES= lang python | |
7 | 7 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | HOMEPAGE= http://www.python.org/ | 9 | HOMEPAGE= http://www.python.org/ | |
10 | COMMENT= Interpreted, interactive, object-oriented programming language | 10 | COMMENT= Interpreted, interactive, object-oriented programming language | |
11 | LICENSE= python-software-foundation | 11 | LICENSE= python-software-foundation | |
12 | 12 | |||
13 | CONFLICTS+= python-[0-9]* | 13 | CONFLICTS+= python-[0-9]* | |
14 | 14 | |||
@@ -67,51 +67,42 @@ PLIST_SUBST+= PY_PLATNAME=${PY_PLATNAME: | @@ -67,51 +67,42 @@ PLIST_SUBST+= PY_PLATNAME=${PY_PLATNAME: | |||
67 | # ossaudiodev is only available on x86 for the following platforms | 67 | # ossaudiodev is only available on x86 for the following platforms | |
68 | PLIST_VARS+= oss | 68 | PLIST_VARS+= oss | |
69 | .if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64") && \ | 69 | .if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64") && \ | |
70 | (${PY_PLATNAME} == "linux" || ${OPSYS} == "FreeBSD") | 70 | (${PY_PLATNAME} == "linux" || ${OPSYS} == "FreeBSD") | |
71 | PLIST.oss= yes | 71 | PLIST.oss= yes | |
72 | .endif | 72 | .endif | |
73 | 73 | |||
74 | # For Xcode 5 and up, we need to search the SDK path for headers, otherwise | 74 | # For Xcode 5 and up, we need to search the SDK path for headers, otherwise | |
75 | # certain modules will not be built. | 75 | # certain modules will not be built. | |
76 | .if ${OPSYS} == "Darwin" && exists(${OSX_SDK_PATH:Q}/usr/include) | 76 | .if ${OPSYS} == "Darwin" && exists(${OSX_SDK_PATH:Q}/usr/include) | |
77 | CFLAGS+= -I${OSX_SDK_PATH:Q}/usr/include | 77 | CFLAGS+= -I${OSX_SDK_PATH:Q}/usr/include | |
78 | .endif | 78 | .endif | |
79 | 79 | |||
80 | PLIST_VARS+= bsddb dll nis no-nis | 80 | PLIST_VARS+= dll nis no-nis | |
81 | .if ${OPSYS} == "IRIX" | 81 | .if ${OPSYS} == "IRIX" | |
82 | . if ${ABI} == "64" | 82 | . if ${ABI} == "64" | |
83 | PLIST.no-nis= yes | 83 | PLIST.no-nis= yes | |
84 | . else | 84 | . else | |
85 | PLIST.nis= yes | 85 | PLIST.nis= yes | |
86 | . endif | 86 | . endif | |
87 | .else | 87 | .else | |
88 | . include "../../mk/bdb.buildlink3.mk" | |||
89 | MAKE_ENV+= PY_BDB_TYPE=${BDB_TYPE} | |||
90 | MAKE_ENV+= PY_BDB_INCDIRS=${BUILDLINK_INCDIRS.${BDB_TYPE}:S,^,${BDBBASE}/,:Q} | |||
91 | MAKE_ENV+= PY_BDB_LIBDIRS=${BDBBASE}/lib | |||
92 | PLIST.bsddb= yes | |||
93 | PLIST.dll= yes | 88 | PLIST.dll= yes | |
94 | . if ${OPSYS} != "NetBSD" || exists(/usr/bin/ypcat) | 89 | . if ${OPSYS} != "NetBSD" || exists(/usr/bin/ypcat) | |
95 | PLIST.nis= yes | 90 | PLIST.nis= yes | |
96 | . else | 91 | . else | |
97 | PLIST.no-nis= yes | 92 | PLIST.no-nis= yes | |
98 | . endif | 93 | . endif | |
99 | .endif | 94 | .endif | |
100 | 95 | |||
101 | .if defined(BUILDLINK_TRANSFORM) | |||
102 | MAKE_ENV+= PY_BDB_TRANSFORM=${BUILDLINK_TRANSFORM:Q} | |||
103 | .endif | |||
104 | ||||
105 | PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX:Q} | 96 | PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX:Q} | |
106 | 97 | |||
107 | PRINT_PLIST_AWK+= { gsub(/${PY_PLATNAME}/, "$${PY_PLATNAME}") } | 98 | PRINT_PLIST_AWK+= { gsub(/${PY_PLATNAME}/, "$${PY_PLATNAME}") } | |
108 | PRINT_PLIST_AWK+= { gsub(/python${PY_VER_SUFFIX}/, \ | 99 | PRINT_PLIST_AWK+= { gsub(/python${PY_VER_SUFFIX}/, \ | |
109 | "python$${PY_VER_SUFFIX}") } | 100 | "python$${PY_VER_SUFFIX}") } | |
110 | 101 | |||
111 | TEST_TARGET= test | 102 | TEST_TARGET= test | |
112 | INSTALL_TARGET= altinstall | 103 | INSTALL_TARGET= altinstall | |
113 | 104 | |||
114 | REPLACE_INTERPRETER+= py34 | 105 | REPLACE_INTERPRETER+= py34 | |
115 | REPLACE.py34.old= .*python[^ ]* | 106 | REPLACE.py34.old= .*python[^ ]* | |
116 | REPLACE.py34.new= ${PREFIX}/bin/python${PY_VER_SUFFIX} | 107 | REPLACE.py34.new= ${PREFIX}/bin/python${PY_VER_SUFFIX} | |
117 | REPLACE_FILES.py34= Lib/*.py Lib/*/*.py Lib/*/*/*.py Lib/*/*/*/*.py | 108 | REPLACE_FILES.py34= Lib/*.py Lib/*/*.py Lib/*/*/*.py Lib/*/*/*/*.py |
@@ -1,16 +1,16 @@ | @@ -1,16 +1,16 @@ | |||
1 | $NetBSD: distinfo,v 1.24 2017/01/19 01:25:09 wen Exp $ | 1 | $NetBSD: distinfo,v 1.25 2017/01/26 09:45:23 jperkin Exp $ | |
2 | 2 | |||
3 | SHA1 (Python-3.4.6.tar.xz) = ef7dbec63d45760701534990511d686e3acbbe4f | 3 | SHA1 (Python-3.4.6.tar.xz) = ef7dbec63d45760701534990511d686e3acbbe4f | |
4 | RMD160 (Python-3.4.6.tar.xz) = a669de69e6728141a6c960877c486c1f094b560d | 4 | RMD160 (Python-3.4.6.tar.xz) = a669de69e6728141a6c960877c486c1f094b560d | |
5 | SHA512 (Python-3.4.6.tar.xz) = f6785cf6a99a8a27823baefe59cc20e34cbec01bb444c8600e7f49b5437159d5137f9d80fce26e219846d71bfe98f68bc6f0c87719a34db0050a4eaca95959ac | 5 | SHA512 (Python-3.4.6.tar.xz) = f6785cf6a99a8a27823baefe59cc20e34cbec01bb444c8600e7f49b5437159d5137f9d80fce26e219846d71bfe98f68bc6f0c87719a34db0050a4eaca95959ac | |
6 | Size (Python-3.4.6.tar.xz) = 14473592 bytes | 6 | Size (Python-3.4.6.tar.xz) = 14473592 bytes | |
7 | SHA1 (patch-Lib_distutils_unixccompiler.py) = 7d6df07921ad3357757d4681a964256b560b3f57 | 7 | SHA1 (patch-Lib_distutils_unixccompiler.py) = 7d6df07921ad3357757d4681a964256b560b3f57 | |
8 | SHA1 (patch-aa) = 14359f8d0527eff08073c0aea60dfe8961d9255d | 8 | SHA1 (patch-aa) = 14359f8d0527eff08073c0aea60dfe8961d9255d | |
9 | SHA1 (patch-ah) = 0acdfcbf3ebcb96b18a1cf28f18b286aa507a62f | 9 | SHA1 (patch-ah) = 0acdfcbf3ebcb96b18a1cf28f18b286aa507a62f | |
10 | SHA1 (patch-al) = 7239d10b67c739c3ee33dd2fc95bb770360d152f | 10 | SHA1 (patch-al) = 7239d10b67c739c3ee33dd2fc95bb770360d152f | |
11 | SHA1 (patch-am) = 1752a06fec7626af57e85b6cbd9b6cc38b99272f | 11 | SHA1 (patch-am) = 5822927f1c315b4fce5078626efe5418c764665e | |
12 | SHA1 (patch-an) = c9b571eb54fdf0b1e93524a6de6780e8c4119221 | 12 | SHA1 (patch-an) = c9b571eb54fdf0b1e93524a6de6780e8c4119221 | |
13 | SHA1 (patch-au) = b593d64b34531fdd5a936d109854d80e969f1847 | 13 | SHA1 (patch-au) = b593d64b34531fdd5a936d109854d80e969f1847 | |
14 | SHA1 (patch-av) = 9b44f339f65f029b7f17dbc654739a7ae3c12780 | 14 | SHA1 (patch-av) = 9b44f339f65f029b7f17dbc654739a7ae3c12780 | |
15 | SHA1 (patch-aw) = bd290417c265846e238660180e60e76c0f5f696a | 15 | SHA1 (patch-aw) = bd290417c265846e238660180e60e76c0f5f696a | |
16 | SHA1 (patch-xa) = fb81eaa604b4ed7c1b64c3f4731d58a8aee257be | 16 | SHA1 (patch-xa) = fb81eaa604b4ed7c1b64c3f4731d58a8aee257be |
@@ -1,23 +1,23 @@ | @@ -1,23 +1,23 @@ | |||
1 | $NetBSD: patch-am,v 1.6 2014/06/01 10:11:29 wiz Exp $ | 1 | $NetBSD: patch-am,v 1.7 2017/01/26 09:45:23 jperkin Exp $ | |
2 | 2 | |||
3 | --- setup.py.orig 2014-03-17 02:31:31.000000000 +0000 | 3 | --- setup.py.orig 2014-03-17 02:31:31.000000000 +0000 | |
4 | +++ setup.py | 4 | +++ setup.py | |
5 | @@ -33,7 +33,8 @@ host_platform = get_platform() | 5 | @@ -33,7 +33,8 @@ host_platform = get_platform() | |
6 | COMPILED_WITH_PYDEBUG = ('--with-pydebug' in sysconfig.get_config_var("CONFIG_ARGS")) | 6 | COMPILED_WITH_PYDEBUG = ('--with-pydebug' in sysconfig.get_config_var("CONFIG_ARGS")) | |
7 | 7 | |||
8 | # This global variable is used to hold the list of modules to be disabled. | 8 | # This global variable is used to hold the list of modules to be disabled. | |
9 | -disabled_module_list = [] | 9 | -disabled_module_list = [] | |
10 | +disabled_module_list = ["_bsddb", "_curses", "_curses_panel", "_elementtree", | 10 | +disabled_module_list = ["_curses", "_curses_panel", "_elementtree", | |
11 | +"_sqlite3", "_tkinter", "_gdbm", "pyexpat", "readline", "spwd", "xxlimited"] | 11 | +"_sqlite3", "_tkinter", "_gdbm", "pyexpat", "readline", "spwd", "xxlimited"] | |
12 | 12 | |||
13 | def add_dir_to_list(dirlist, dir): | 13 | def add_dir_to_list(dirlist, dir): | |
14 | """Add the directory 'dir' to the list 'dirlist' (after any relative | 14 | """Add the directory 'dir' to the list 'dirlist' (after any relative | |
15 | @@ -441,15 +442,15 @@ class PyBuildExt(build_ext): | 15 | @@ -441,15 +442,15 @@ class PyBuildExt(build_ext): | |
16 | os.unlink(tmpfile) | 16 | os.unlink(tmpfile) | |
17 | 17 | |||
18 | def detect_modules(self): | 18 | def detect_modules(self): | |
19 | - # Ensure that /usr/local is always used, but the local build | 19 | - # Ensure that /usr/local is always used, but the local build | |
20 | - # directories (i.e. '.' and 'Include') must be first. See issue | 20 | - # directories (i.e. '.' and 'Include') must be first. See issue | |
21 | - # 10520. | 21 | - # 10520. | |
22 | - if not cross_compiling: | 22 | - if not cross_compiling: | |
23 | - add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') | 23 | - add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.7 2017/01/19 13:55:53 wen Exp $ | 1 | # $NetBSD: Makefile,v 1.8 2017/01/26 09:45:23 jperkin Exp $ | |
2 | 2 | |||
3 | .include "dist.mk" | 3 | .include "dist.mk" | |
4 | 4 | |||
5 | PKGNAME= python35-${PY_DISTVERSION} | 5 | PKGNAME= python35-${PY_DISTVERSION} | |
6 | CATEGORIES= lang python | 6 | CATEGORIES= lang python | |
7 | 7 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | HOMEPAGE= http://www.python.org/ | 9 | HOMEPAGE= http://www.python.org/ | |
10 | COMMENT= Interpreted, interactive, object-oriented programming language | 10 | COMMENT= Interpreted, interactive, object-oriented programming language | |
11 | LICENSE= python-software-foundation | 11 | LICENSE= python-software-foundation | |
12 | 12 | |||
13 | CONFLICTS+= python-[0-9]* | 13 | CONFLICTS+= python-[0-9]* | |
14 | 14 | |||
@@ -67,51 +67,42 @@ PLIST_SUBST+= PY_PLATNAME=${PY_PLATNAME: | @@ -67,51 +67,42 @@ PLIST_SUBST+= PY_PLATNAME=${PY_PLATNAME: | |||
67 | # ossaudiodev is only available on x86 for the following platforms | 67 | # ossaudiodev is only available on x86 for the following platforms | |
68 | PLIST_VARS+= oss | 68 | PLIST_VARS+= oss | |
69 | .if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64") && \ | 69 | .if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64") && \ | |
70 | (${PY_PLATNAME} == "linux" || ${OPSYS} == "FreeBSD") | 70 | (${PY_PLATNAME} == "linux" || ${OPSYS} == "FreeBSD") | |
71 | PLIST.oss= yes | 71 | PLIST.oss= yes | |
72 | .endif | 72 | .endif | |
73 | 73 | |||
74 | # For Xcode 5 and up, we need to search the SDK path for headers, otherwise | 74 | # For Xcode 5 and up, we need to search the SDK path for headers, otherwise | |
75 | # certain modules will not be built. | 75 | # certain modules will not be built. | |
76 | .if ${OPSYS} == "Darwin" && exists(${OSX_SDK_PATH:Q}/usr/include) | 76 | .if ${OPSYS} == "Darwin" && exists(${OSX_SDK_PATH:Q}/usr/include) | |
77 | CFLAGS+= -I${OSX_SDK_PATH:Q}/usr/include | 77 | CFLAGS+= -I${OSX_SDK_PATH:Q}/usr/include | |
78 | .endif | 78 | .endif | |
79 | 79 | |||
80 | PLIST_VARS+= bsddb dll nis no-nis | 80 | PLIST_VARS+= dll nis no-nis | |
81 | .if ${OPSYS} == "IRIX" | 81 | .if ${OPSYS} == "IRIX" | |
82 | . if ${ABI} == "64" | 82 | . if ${ABI} == "64" | |
83 | PLIST.no-nis= yes | 83 | PLIST.no-nis= yes | |
84 | . else | 84 | . else | |
85 | PLIST.nis= yes | 85 | PLIST.nis= yes | |
86 | . endif | 86 | . endif | |
87 | .else | 87 | .else | |
88 | . include "../../mk/bdb.buildlink3.mk" | |||
89 | MAKE_ENV+= PY_BDB_TYPE=${BDB_TYPE} | |||
90 | MAKE_ENV+= PY_BDB_INCDIRS=${BUILDLINK_INCDIRS.${BDB_TYPE}:S,^,${BDBBASE}/,:Q} | |||
91 | MAKE_ENV+= PY_BDB_LIBDIRS=${BDBBASE}/lib | |||
92 | PLIST.bsddb= yes | |||
93 | PLIST.dll= yes | 88 | PLIST.dll= yes | |
94 | . if ${OPSYS} != "NetBSD" || exists(/usr/bin/ypcat) | 89 | . if ${OPSYS} != "NetBSD" || exists(/usr/bin/ypcat) | |
95 | PLIST.nis= yes | 90 | PLIST.nis= yes | |
96 | . else | 91 | . else | |
97 | PLIST.no-nis= yes | 92 | PLIST.no-nis= yes | |
98 | . endif | 93 | . endif | |
99 | .endif | 94 | .endif | |
100 | 95 | |||
101 | .if defined(BUILDLINK_TRANSFORM) | |||
102 | MAKE_ENV+= PY_BDB_TRANSFORM=${BUILDLINK_TRANSFORM:Q} | |||
103 | .endif | |||
104 | ||||
105 | PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX:Q} | 96 | PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX:Q} | |
106 | 97 | |||
107 | PRINT_PLIST_AWK+= { gsub(/${PY_PLATNAME}/, "$${PY_PLATNAME}") } | 98 | PRINT_PLIST_AWK+= { gsub(/${PY_PLATNAME}/, "$${PY_PLATNAME}") } | |
108 | PRINT_PLIST_AWK+= { gsub(/python${PY_VER_SUFFIX}/, \ | 99 | PRINT_PLIST_AWK+= { gsub(/python${PY_VER_SUFFIX}/, \ | |
109 | "python$${PY_VER_SUFFIX}") } | 100 | "python$${PY_VER_SUFFIX}") } | |
110 | 101 | |||
111 | TEST_TARGET= test | 102 | TEST_TARGET= test | |
112 | INSTALL_TARGET= altinstall | 103 | INSTALL_TARGET= altinstall | |
113 | 104 | |||
114 | REPLACE_INTERPRETER+= py35 | 105 | REPLACE_INTERPRETER+= py35 | |
115 | REPLACE.py35.old= .*python[^ ]* | 106 | REPLACE.py35.old= .*python[^ ]* | |
116 | REPLACE.py35.new= ${PREFIX}/bin/python${PY_VER_SUFFIX} | 107 | REPLACE.py35.new= ${PREFIX}/bin/python${PY_VER_SUFFIX} | |
117 | REPLACE_FILES.py35= Lib/*.py Lib/*/*.py Lib/*/*/*.py Lib/*/*/*/*.py | 108 | REPLACE_FILES.py35= Lib/*.py Lib/*/*.py Lib/*/*/*.py Lib/*/*/*/*.py |
@@ -1,16 +1,16 @@ | @@ -1,16 +1,16 @@ | |||
1 | $NetBSD: distinfo,v 1.9 2017/01/19 13:55:53 wen Exp $ | 1 | $NetBSD: distinfo,v 1.10 2017/01/26 09:45:23 jperkin Exp $ | |
2 | 2 | |||
3 | SHA1 (Python-3.5.3.tar.xz) = 127121fdca11e735b3686e300d66f73aba663e93 | 3 | SHA1 (Python-3.5.3.tar.xz) = 127121fdca11e735b3686e300d66f73aba663e93 | |
4 | RMD160 (Python-3.5.3.tar.xz) = 663ad06b0c4b36e7760f5202e73bc53697f225d2 | 4 | RMD160 (Python-3.5.3.tar.xz) = 663ad06b0c4b36e7760f5202e73bc53697f225d2 | |
5 | SHA512 (Python-3.5.3.tar.xz) = bbcc20e315c63dbc8901d7e7bfa29d4dbdad9335720757d8d679730319fd1d9fcfdb55cf62d620c9b052134170f162c28d653a8af60923185b8932524d827864 | 5 | SHA512 (Python-3.5.3.tar.xz) = bbcc20e315c63dbc8901d7e7bfa29d4dbdad9335720757d8d679730319fd1d9fcfdb55cf62d620c9b052134170f162c28d653a8af60923185b8932524d827864 | |
6 | Size (Python-3.5.3.tar.xz) = 15213396 bytes | 6 | Size (Python-3.5.3.tar.xz) = 15213396 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) = 9b44f339f65f029b7f17dbc654739a7ae3c12780 | 8 | SHA1 (patch-Lib_distutils_command_install.py) = 9b44f339f65f029b7f17dbc654739a7ae3c12780 | |
9 | SHA1 (patch-Lib_distutils_unixccompiler.py) = 7d0b70a64b79ee6084c41d8fbb01c8e8e4553419 | 9 | SHA1 (patch-Lib_distutils_unixccompiler.py) = 7d0b70a64b79ee6084c41d8fbb01c8e8e4553419 | |
10 | SHA1 (patch-Makefile.pre.in) = 174e01e44c61c756131f795dc96100a381876fcb | 10 | SHA1 (patch-Makefile.pre.in) = 174e01e44c61c756131f795dc96100a381876fcb | |
11 | SHA1 (patch-Modules___cursesmodule.c) = 2ab2779e0418a4529987641c254686ba05d28593 | 11 | SHA1 (patch-Modules___cursesmodule.c) = 2ab2779e0418a4529987641c254686ba05d28593 | |
12 | SHA1 (patch-Modules_makesetup) = c9b571eb54fdf0b1e93524a6de6780e8c4119221 | 12 | SHA1 (patch-Modules_makesetup) = c9b571eb54fdf0b1e93524a6de6780e8c4119221 | |
13 | SHA1 (patch-Modules_nismodule.c) = bd290417c265846e238660180e60e76c0f5f696a | 13 | SHA1 (patch-Modules_nismodule.c) = bd290417c265846e238660180e60e76c0f5f696a | |
14 | SHA1 (patch-Python_thread__pthread.h) = fb81eaa604b4ed7c1b64c3f4731d58a8aee257be | 14 | SHA1 (patch-Python_thread__pthread.h) = fb81eaa604b4ed7c1b64c3f4731d58a8aee257be | |
15 | SHA1 (patch-configure) = 069f7bb10d98e3616f52859a2cf90c7f5732425e | 15 | SHA1 (patch-configure) = 069f7bb10d98e3616f52859a2cf90c7f5732425e | |
16 | SHA1 (patch-setup.py) = 42385e851af583ab5a460f6ca7b73e98697e268e | 16 | SHA1 (patch-setup.py) = 7d8afe5e799c8373fe41fbb65e283e0c6f3967d2 |
@@ -1,32 +1,32 @@ | @@ -1,32 +1,32 @@ | |||
1 | $NetBSD: patch-setup.py,v 1.3 2017/01/19 13:55:53 wen Exp $ | 1 | $NetBSD: patch-setup.py,v 1.4 2017/01/26 09:45:23 jperkin Exp $ | |
2 | 2 | |||
3 | --- setup.py.orig 2017-01-17 07:57:54.000000000 +0000 | 3 | --- setup.py.orig 2017-01-17 07:57:54.000000000 +0000 | |
4 | +++ setup.py | 4 | +++ setup.py | |
5 | @@ -7,7 +7,7 @@ import importlib._bootstrap | 5 | @@ -7,7 +7,7 @@ import importlib._bootstrap | |
6 | import importlib.util | 6 | import importlib.util | |
7 | import sysconfig | 7 | import sysconfig | |
8 | 8 | |||
9 | -from distutils import log | 9 | -from distutils import log | |
10 | +from distutils import log,text_file | 10 | +from distutils import log,text_file | |
11 | from distutils.errors import * | 11 | from distutils.errors import * | |
12 | from distutils.core import Extension, setup | 12 | from distutils.core import Extension, setup | |
13 | from distutils.command.build_ext import build_ext | 13 | from distutils.command.build_ext import build_ext | |
14 | @@ -43,7 +43,8 @@ host_platform = get_platform() | 14 | @@ -43,7 +43,8 @@ host_platform = get_platform() | |
15 | COMPILED_WITH_PYDEBUG = ('--with-pydebug' in sysconfig.get_config_var("CONFIG_ARGS")) | 15 | COMPILED_WITH_PYDEBUG = ('--with-pydebug' in sysconfig.get_config_var("CONFIG_ARGS")) | |
16 | 16 | |||
17 | # This global variable is used to hold the list of modules to be disabled. | 17 | # This global variable is used to hold the list of modules to be disabled. | |
18 | -disabled_module_list = [] | 18 | -disabled_module_list = [] | |
19 | +disabled_module_list = ["_bsddb", "_curses", "_curses_panel", "_elementtree", | 19 | +disabled_module_list = ["_curses", "_curses_panel", "_elementtree", | |
20 | +"_sqlite3", "_tkinter", "_gdbm", "pyexpat", "readline", "spwd", "xxlimited"] | 20 | +"_sqlite3", "_tkinter", "_gdbm", "pyexpat", "readline", "spwd", "xxlimited"] | |
21 | 21 | |||
22 | def add_dir_to_list(dirlist, dir): | 22 | def add_dir_to_list(dirlist, dir): | |
23 | """Add the directory 'dir' to the list 'dirlist' (after any relative | 23 | """Add the directory 'dir' to the list 'dirlist' (after any relative | |
24 | @@ -487,15 +488,15 @@ class PyBuildExt(build_ext): | 24 | @@ -487,15 +488,15 @@ class PyBuildExt(build_ext): | |
25 | return ['m'] | 25 | return ['m'] | |
26 | 26 | |||
27 | def detect_modules(self): | 27 | def detect_modules(self): | |
28 | - # Ensure that /usr/local is always used, but the local build | 28 | - # Ensure that /usr/local is always used, but the local build | |
29 | - # directories (i.e. '.' and 'Include') must be first. See issue | 29 | - # directories (i.e. '.' and 'Include') must be first. See issue | |
30 | - # 10520. | 30 | - # 10520. | |
31 | - if not cross_compiling: | 31 | - if not cross_compiling: | |
32 | - add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') | 32 | - add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.3 2017/01/26 09:13:27 adam Exp $ | 1 | # $NetBSD: Makefile,v 1.4 2017/01/26 09:45:23 jperkin 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= 2 | 6 | PKGREVISION= 2 | |
7 | CATEGORIES= lang python | 7 | CATEGORIES= lang python | |
8 | 8 | |||
9 | MAINTAINER= pkgsrc-users@NetBSD.org | 9 | MAINTAINER= pkgsrc-users@NetBSD.org | |
10 | HOMEPAGE= http://www.python.org/ | 10 | HOMEPAGE= http://www.python.org/ | |
11 | COMMENT= Interpreted, interactive, object-oriented programming language | 11 | COMMENT= Interpreted, interactive, object-oriented programming language | |
12 | LICENSE= python-software-foundation | 12 | LICENSE= python-software-foundation | |
13 | 13 | |||
14 | CONFLICTS+= python-[0-9]* | 14 | CONFLICTS+= python-[0-9]* | |
@@ -68,51 +68,42 @@ PLIST_SUBST+= PY_PLATNAME=${PY_PLATNAME: | @@ -68,51 +68,42 @@ PLIST_SUBST+= PY_PLATNAME=${PY_PLATNAME: | |||
68 | # ossaudiodev is only available on x86 for the following platforms | 68 | # ossaudiodev is only available on x86 for the following platforms | |
69 | PLIST_VARS+= oss | 69 | PLIST_VARS+= oss | |
70 | .if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64") && \ | 70 | .if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64") && \ | |
71 | (${PY_PLATNAME} == "linux" || ${OPSYS} == "FreeBSD") | 71 | (${PY_PLATNAME} == "linux" || ${OPSYS} == "FreeBSD") | |
72 | PLIST.oss= yes | 72 | PLIST.oss= yes | |
73 | .endif | 73 | .endif | |
74 | 74 | |||
75 | # For Xcode 5 and up, we need to search the SDK path for headers, otherwise | 75 | # For Xcode 5 and up, we need to search the SDK path for headers, otherwise | |
76 | # certain modules will not be built. | 76 | # certain modules will not be built. | |
77 | .if ${OPSYS} == "Darwin" && exists(${OSX_SDK_PATH:Q}/usr/include) | 77 | .if ${OPSYS} == "Darwin" && exists(${OSX_SDK_PATH:Q}/usr/include) | |
78 | CFLAGS+= -I${OSX_SDK_PATH:Q}/usr/include | 78 | CFLAGS+= -I${OSX_SDK_PATH:Q}/usr/include | |
79 | .endif | 79 | .endif | |
80 | 80 | |||
81 | PLIST_VARS+= bsddb dll nis no-nis | 81 | PLIST_VARS+= dll nis no-nis | |
82 | .if ${OPSYS} == "IRIX" | 82 | .if ${OPSYS} == "IRIX" | |
83 | . if ${ABI} == "64" | 83 | . if ${ABI} == "64" | |
84 | PLIST.no-nis= yes | 84 | PLIST.no-nis= yes | |
85 | . else | 85 | . else | |
86 | PLIST.nis= yes | 86 | PLIST.nis= yes | |
87 | . endif | 87 | . endif | |
88 | .else | 88 | .else | |
89 | . include "../../mk/bdb.buildlink3.mk" | |||
90 | MAKE_ENV+= PY_BDB_TYPE=${BDB_TYPE} | |||
91 | MAKE_ENV+= PY_BDB_INCDIRS=${BUILDLINK_INCDIRS.${BDB_TYPE}:S,^,${BDBBASE}/,:Q} | |||
92 | MAKE_ENV+= PY_BDB_LIBDIRS=${BDBBASE}/lib | |||
93 | PLIST.bsddb= yes | |||
94 | PLIST.dll= yes | 89 | PLIST.dll= yes | |
95 | . if ${OPSYS} != "NetBSD" || exists(/usr/bin/ypcat) | 90 | . if ${OPSYS} != "NetBSD" || exists(/usr/bin/ypcat) | |
96 | PLIST.nis= yes | 91 | PLIST.nis= yes | |
97 | . else | 92 | . else | |
98 | PLIST.no-nis= yes | 93 | PLIST.no-nis= yes | |
99 | . endif | 94 | . endif | |
100 | .endif | 95 | .endif | |
101 | 96 | |||
102 | .if defined(BUILDLINK_TRANSFORM) | |||
103 | MAKE_ENV+= PY_BDB_TRANSFORM=${BUILDLINK_TRANSFORM:Q} | |||
104 | .endif | |||
105 | ||||
106 | PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX:Q} | 97 | PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX:Q} | |
107 | 98 | |||
108 | PRINT_PLIST_AWK+= { gsub(/${PY_PLATNAME}/, "$${PY_PLATNAME}") } | 99 | PRINT_PLIST_AWK+= { gsub(/${PY_PLATNAME}/, "$${PY_PLATNAME}") } | |
109 | PRINT_PLIST_AWK+= { gsub(/python${PY_VER_SUFFIX}/, \ | 100 | PRINT_PLIST_AWK+= { gsub(/python${PY_VER_SUFFIX}/, \ | |
110 | "python$${PY_VER_SUFFIX}") } | 101 | "python$${PY_VER_SUFFIX}") } | |
111 | 102 | |||
112 | TEST_TARGET= test | 103 | TEST_TARGET= test | |
113 | INSTALL_TARGET= altinstall | 104 | INSTALL_TARGET= altinstall | |
114 | 105 | |||
115 | REPLACE_INTERPRETER+= py36 | 106 | REPLACE_INTERPRETER+= py36 | |
116 | REPLACE.py36.old= .*python[^ ]* | 107 | REPLACE.py36.old= .*python[^ ]* | |
117 | REPLACE.py36.new= ${PREFIX}/bin/python${PY_VER_SUFFIX} | 108 | REPLACE.py36.new= ${PREFIX}/bin/python${PY_VER_SUFFIX} | |
118 | REPLACE_FILES.py36= Lib/*.py Lib/*/*.py Lib/*/*/*.py Lib/*/*/*/*.py | 109 | REPLACE_FILES.py36= Lib/*.py Lib/*/*.py Lib/*/*/*.py Lib/*/*/*/*.py |
@@ -1,18 +1,18 @@ | @@ -1,18 +1,18 @@ | |||
1 | $NetBSD: distinfo,v 1.6 2017/01/26 09:13:27 adam Exp $ | 1 | $NetBSD: distinfo,v 1.7 2017/01/26 09:45:23 jperkin 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) = 6822eafb4dfded86d7f7353831816aeb8119e6cf | 9 | SHA1 (patch-Lib_distutils_sysconfig.py) = 6822eafb4dfded86d7f7353831816aeb8119e6cf | |
10 | SHA1 (patch-Lib_distutils_unixccompiler.py) = e7aa684fa186de7a01486c3d8bfa177afdd22ef9 | 10 | SHA1 (patch-Lib_distutils_unixccompiler.py) = e7aa684fa186de7a01486c3d8bfa177afdd22ef9 | |
11 | SHA1 (patch-Lib_sysconfig.py) = a4f009ed73ebbd9d9c4bf7e12b7981182ed8fd7c | 11 | SHA1 (patch-Lib_sysconfig.py) = a4f009ed73ebbd9d9c4bf7e12b7981182ed8fd7c | |
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) = b3b73638ddd72517f4e80193212a38e0cd991157 | 17 | SHA1 (patch-configure) = b3b73638ddd72517f4e80193212a38e0cd991157 | |
18 | SHA1 (patch-setup.py) = f3fd3c3e5bc2e002dcee8239d153360a7247844b | 18 | SHA1 (patch-setup.py) = 2ac8834ecc4e8bb27e1721e572e06dbfa74fe277 |
@@ -1,33 +1,33 @@ | @@ -1,33 +1,33 @@ | |||
1 | $NetBSD: patch-setup.py,v 1.1 2017/01/01 14:34:27 adam Exp $ | 1 | $NetBSD: patch-setup.py,v 1.2 2017/01/26 09:45:23 jperkin Exp $ | |
2 | 2 | |||
3 | Disable modules, so they can be built as separate packages. | 3 | Disable modules, so they can be built as separate packages. | |
4 | 4 | |||
5 | --- setup.py.orig 2016-12-23 02:21:22.000000000 +0000 | 5 | --- setup.py.orig 2016-12-23 02:21:22.000000000 +0000 | |
6 | +++ setup.py | 6 | +++ setup.py | |
7 | @@ -8,6 +8,7 @@ import importlib.util | 7 | @@ -8,6 +8,7 @@ import importlib.util | |
8 | import sysconfig | 8 | import sysconfig | |
9 | 9 | |||
10 | from distutils import log | 10 | from distutils import log | |
11 | +from distutils import text_file | 11 | +from distutils import text_file | |
12 | from distutils.errors import * | 12 | from distutils.errors import * | |
13 | from distutils.core import Extension, setup | 13 | from distutils.core import Extension, setup | |
14 | from distutils.command.build_ext import build_ext | 14 | from distutils.command.build_ext import build_ext | |
15 | @@ -43,7 +44,8 @@ host_platform = get_platform() | 15 | @@ -43,7 +44,8 @@ host_platform = get_platform() | |
16 | COMPILED_WITH_PYDEBUG = ('--with-pydebug' in sysconfig.get_config_var("CONFIG_ARGS")) | 16 | COMPILED_WITH_PYDEBUG = ('--with-pydebug' in sysconfig.get_config_var("CONFIG_ARGS")) | |
17 | 17 | |||
18 | # This global variable is used to hold the list of modules to be disabled. | 18 | # This global variable is used to hold the list of modules to be disabled. | |
19 | -disabled_module_list = [] | 19 | -disabled_module_list = [] | |
20 | +disabled_module_list = ["_bsddb", "_curses", "_curses_panel", "_elementtree", | 20 | +disabled_module_list = ["_curses", "_curses_panel", "_elementtree", | |
21 | +"_sqlite3", "_tkinter", "_gdbm", "pyexpat", "readline", "spwd", "xxlimited"] | 21 | +"_sqlite3", "_tkinter", "_gdbm", "pyexpat", "readline", "spwd", "xxlimited"] | |
22 | 22 | |||
23 | def add_dir_to_list(dirlist, dir): | 23 | def add_dir_to_list(dirlist, dir): | |
24 | """Add the directory 'dir' to the list 'dirlist' (after any relative | 24 | """Add the directory 'dir' to the list 'dirlist' (after any relative | |
25 | @@ -487,15 +489,15 @@ class PyBuildExt(build_ext): | 25 | @@ -487,15 +489,15 @@ class PyBuildExt(build_ext): | |
26 | return ['m'] | 26 | return ['m'] | |
27 | 27 | |||
28 | def detect_modules(self): | 28 | def detect_modules(self): | |
29 | - # Ensure that /usr/local is always used, but the local build | 29 | - # Ensure that /usr/local is always used, but the local build | |
30 | - # directories (i.e. '.' and 'Include') must be first. See issue | 30 | - # directories (i.e. '.' and 'Include') must be first. See issue | |
31 | - # 10520. | 31 | - # 10520. | |
32 | - if not cross_compiling: | 32 | - if not cross_compiling: | |
33 | - add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') | 33 | - add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') |