[150874] trunk/dports/lang/python32
ionic at macports.org
ionic at macports.org
Sun Jul 31 23:44:08 PDT 2016
Revision: 150874
https://trac.macports.org/changeset/150874
Author: ionic at macports.org
Date: 2016-07-31 23:44:08 -0700 (Sun, 31 Jul 2016)
Log Message:
-----------
python32: refresh patches, rename a few with "wrong" names.
Modified Paths:
--------------
trunk/dports/lang/python32/Portfile
trunk/dports/lang/python32/files/patch-Lib-distutils-dist.py.diff
trunk/dports/lang/python32/files/patch-configure.diff
trunk/dports/lang/python32/files/patch-libedit.diff
trunk/dports/lang/python32/files/patch-setup.py.diff
Added Paths:
-----------
trunk/dports/lang/python32/files/patch-Lib-distutils-util.py_Mac-BuildScript-build-installer.py-yosemite_python_fixes.diff
trunk/dports/lang/python32/files/patch-Lib-site.py-omit_local_site_packages.diff
trunk/dports/lang/python32/files/patch-configure_configure.ac-yosemite_configure_fixes.diff
Removed Paths:
-------------
trunk/dports/lang/python32/files/omit-local-site-packages.patch
trunk/dports/lang/python32/files/yosemite-configure-fixes.patch
trunk/dports/lang/python32/files/yosemite-python-fixes.patch
Modified: trunk/dports/lang/python32/Portfile
===================================================================
--- trunk/dports/lang/python32/Portfile 2016-08-01 06:43:57 UTC (rev 150873)
+++ trunk/dports/lang/python32/Portfile 2016-08-01 06:44:08 UTC (rev 150874)
@@ -37,11 +37,11 @@
patch-configure.diff \
patch-setup.py-disabled_modules.diff \
patch-libedit.diff \
- omit-local-site-packages.patch
+ patch-Lib-site.py-omit_local_site_packages.diff
# http://bugs.python.org/issue21811
-patchfiles-append yosemite-configure-fixes.patch \
- yosemite-python-fixes.patch
+patchfiles-append patch-configure_configure.ac-yosemite_configure_fixes.diff \
+ patch-Lib-distutils-util.py_Mac-BuildScript-build-installer.py-yosemite_python_fixes.diff
depends_lib port:zlib path:lib/libssl.dylib:openssl \
port:sqlite3 port:ncurses \
Deleted: trunk/dports/lang/python32/files/omit-local-site-packages.patch
===================================================================
--- trunk/dports/lang/python32/files/omit-local-site-packages.patch 2016-08-01 06:43:57 UTC (rev 150873)
+++ trunk/dports/lang/python32/files/omit-local-site-packages.patch 2016-08-01 06:44:08 UTC (rev 150874)
@@ -1,20 +0,0 @@
-Index: Lib/site.py
-===================================================================
---- Lib/site.py.orig
-+++ Lib/site.py
-@@ -292,15 +292,6 @@ def getsitepackages():
- else:
- sitepackages.append(prefix)
- sitepackages.append(os.path.join(prefix, "lib", "site-packages"))
-- if sys.platform == "darwin":
-- # for framework builds *only* we add the standard Apple
-- # locations.
-- from sysconfig import get_config_var
-- framework = get_config_var("PYTHONFRAMEWORK")
-- if framework:
-- sitepackages.append(
-- os.path.join("/Library", framework,
-- sys.version[:3], "site-packages"))
- return sitepackages
-
- def addsitepackages(known_paths):
Modified: trunk/dports/lang/python32/files/patch-Lib-distutils-dist.py.diff
===================================================================
--- trunk/dports/lang/python32/files/patch-Lib-distutils-dist.py.diff 2016-08-01 06:43:57 UTC (rev 150873)
+++ trunk/dports/lang/python32/files/patch-Lib-distutils-dist.py.diff 2016-08-01 06:44:08 UTC (rev 150874)
@@ -1,6 +1,6 @@
---- Lib/distutils/dist.py.orig 2008-07-26 16:09:45.000000000 -0400
-+++ Lib/distutils/dist.py 2009-01-31 11:37:17.000000000 -0500
-@@ -54,6 +54,7 @@
+--- Lib/distutils/dist.py.old 2014-10-12 08:52:02.000000000 +0200
++++ Lib/distutils/dist.py 2016-08-01 06:07:29.000000000 +0200
+@@ -51,6 +51,7 @@ class Distribution:
('quiet', 'q', "run quietly (turns verbosity off)"),
('dry-run', 'n', "don't actually do anything"),
('help', 'h', "show detailed help message"),
@@ -8,7 +8,7 @@
]
# 'common_usage' is a short (2-3 line) string describing the common
-@@ -260,6 +261,12 @@
+@@ -258,6 +259,12 @@ Common commands: (see '--help-commands'
else:
sys.stderr.write(msg + "\n")
@@ -21,7 +21,7 @@
self.finalize_options()
def get_option_dict(self, command):
-@@ -315,6 +322,9 @@
+@@ -310,6 +317,9 @@ Common commands: (see '--help-commands'
Distutils __inst__.py file lives), a file in the user's home
directory named .pydistutils.cfg on Unix and pydistutils.cfg
on Windows/Mac, and setup.cfg in the current directory.
@@ -31,7 +31,7 @@
"""
files = []
check_environ()
-@@ -335,7 +345,7 @@
+@@ -330,7 +340,7 @@ Common commands: (see '--help-commands'
# And look for the user config file
user_file = os.path.join(os.path.expanduser('~'), user_filename)
@@ -40,7 +40,7 @@
files.append(user_file)
# All platforms support local setup.cfg
-@@ -343,6 +353,8 @@
+@@ -338,6 +348,8 @@ Common commands: (see '--help-commands'
if os.path.isfile(local_file):
files.append(local_file)
Copied: trunk/dports/lang/python32/files/patch-Lib-distutils-util.py_Mac-BuildScript-build-installer.py-yosemite_python_fixes.diff (from rev 150873, trunk/dports/lang/python32/files/yosemite-python-fixes.patch)
===================================================================
--- trunk/dports/lang/python32/files/patch-Lib-distutils-util.py_Mac-BuildScript-build-installer.py-yosemite_python_fixes.diff (rev 0)
+++ trunk/dports/lang/python32/files/patch-Lib-distutils-util.py_Mac-BuildScript-build-installer.py-yosemite_python_fixes.diff 2016-08-01 06:44:08 UTC (rev 150874)
@@ -0,0 +1,154 @@
+Index: Lib/_osx_support.py
+===================================================================
+--- Lib/_osx_support.py.orig
++++ Lib/_osx_support.py
+@@ -444,8 +444,16 @@ def get_platform_osx(_config_vars, osnam
+ # case and disallow installs.
+ cflags = _config_vars.get(_INITPRE+'CFLAGS',
+ _config_vars.get('CFLAGS', ''))
+- if ((macrelease + '.') >= '10.4.' and
+- '-arch' in cflags.strip()):
++ if macrelease:
++ try:
++ macrelease = tuple(int(i) for i in macrelease.split('.')[0:2])
++ except ValueError:
++ macrelease = (10, 0)
++ else:
++ # assume no universal support
++ macrelease = (10, 0)
++
++ if (macrelease >= (10, 4)) and '-arch' in cflags.strip():
+ # The universal build will build fat binaries, but not on
+ # systems before 10.4
+
+Index: Lib/distutils/tests/test_build_ext.py
+===================================================================
+--- Lib/distutils/tests/test_build_ext.py.orig
++++ Lib/distutils/tests/test_build_ext.py
+@@ -448,8 +448,16 @@ class BuildExtTestCase(TempdirManager,
+
+ # get the deployment target that the interpreter was built with
+ target = sysconfig.get_config_var('MACOSX_DEPLOYMENT_TARGET')
+- target = tuple(map(int, target.split('.')))
+- target = '%02d%01d0' % target
++ target = tuple(map(int, target.split('.')[0:2]))
++ # format the target value as defined in the Apple
++ # Availability Macros. We can't use the macro names since
++ # at least one value we test with will not exist yet.
++ if target[1] < 10:
++ # for 10.1 through 10.9.x -> "10n0"
++ target = '%02d%01d0' % target
++ else:
++ # for 10.10 and beyond -> "10nn00"
++ target = '%02d%02d00' % target
+ deptarget_ext = Extension(
+ 'deptarget',
+ [deptarget_c],
+Index: Lib/test/test__osx_support.py
+===================================================================
+--- Lib/test/test__osx_support.py.orig
++++ Lib/test/test__osx_support.py
+@@ -109,7 +109,9 @@ class Test_OSXSupport(unittest.TestCase)
+
+ def test__supports_universal_builds(self):
+ import platform
+- self.assertEqual(platform.mac_ver()[0].split('.') >= ['10', '4'],
++ mac_ver_tuple = tuple(int(i) for i in
++ platform.mac_ver()[0].split('.')[0:2])
++ self.assertEqual(mac_ver_tuple >= (10, 4),
+ _osx_support._supports_universal_builds())
+
+ def test__find_appropriate_compiler(self):
+Index: Lib/test/test_posix.py
+===================================================================
+--- Lib/test/test_posix.py.orig
++++ Lib/test/test_posix.py
+@@ -487,7 +487,7 @@ class PosixTester(unittest.TestCase):
+ if sys.platform == 'darwin':
+ import sysconfig
+ dt = sysconfig.get_config_var('MACOSX_DEPLOYMENT_TARGET') or '10.0'
+- if float(dt) < 10.6:
++ if tuple(int(n) for n in dt.split('.')[0:2]) < (10, 6):
+ raise unittest.SkipTest("getgroups(2) is broken prior to 10.6")
+
+ # 'id -G' and 'os.getgroups()' should return the same
+Index: Mac/BuildScript/build-installer.py
+===================================================================
+--- Mac/BuildScript/build-installer.py.orig
++++ Mac/BuildScript/build-installer.py
+@@ -148,16 +148,19 @@ SRCDIR = os.path.dirname(
+ # $MACOSX_DEPLOYMENT_TARGET -> minimum OS X level
+ DEPTARGET = '10.3'
+
+-target_cc_map = {
++def getDeptargetTuple():
++ return tuple([int(n) for n in DEPTARGET.split('.')[0:2]])
++
++def getTargetCompilers():
++ target_cc_map = {
+ '10.3': ('gcc-4.0', 'g++-4.0'),
+ '10.4': ('gcc-4.0', 'g++-4.0'),
+ '10.5': ('gcc-4.2', 'g++-4.2'),
+ '10.6': ('gcc-4.2', 'g++-4.2'),
+- '10.7': ('clang', 'clang++'),
+- '10.8': ('clang', 'clang++'),
+-}
++ }
++ return target_cc_map.get(DEPTARGET, ('clang', 'clang++') )
+
+-CC, CXX = target_cc_map[DEPTARGET]
++CC, CXX = getTargetCompilers()
+
+ PYTHON_3 = getVersionTuple() >= (3, 0)
+
+@@ -190,7 +193,7 @@ EXPECTED_SHARED_LIBS = {}
+ def library_recipes():
+ result = []
+
+- LT_10_5 = bool(DEPTARGET < '10.5')
++ LT_10_5 = bool(getDeptargetTuple() < (10, 5))
+
+ if getVersionTuple() >= (3, 3):
+ result.extend([
+@@ -259,7 +262,7 @@ def library_recipes():
+ ),
+ ])
+
+- if DEPTARGET < '10.5':
++ if getDeptargetTuple() < (10, 5):
+ result.extend([
+ dict(
+ name="Bzip2 1.0.6",
+@@ -394,7 +397,7 @@ def pkg_recipes():
+ ),
+ ]
+
+- if DEPTARGET < '10.4' and not PYTHON_3:
++ if getDeptargetTuple() < (10, 4) and not PYTHON_3:
+ result.append(
+ dict(
+ name="PythonSystemFixes",
+@@ -610,7 +613,7 @@ def parseOptions(args=None):
+ SDKPATH=os.path.abspath(SDKPATH)
+ DEPSRC=os.path.abspath(DEPSRC)
+
+- CC, CXX=target_cc_map[DEPTARGET]
++ CC, CXX = getTargetCompilers()
+
+ print("Settings:")
+ print(" * Source directory:", SRCDIR)
+Index: setup.py
+===================================================================
+--- setup.py.orig
++++ setup.py
+@@ -639,7 +639,9 @@ class PyBuildExt(build_ext):
+ if platform == 'darwin':
+ os_release = int(os.uname()[2].split('.')[0])
+ dep_target = sysconfig.get_config_var('MACOSX_DEPLOYMENT_TARGET')
+- if dep_target and dep_target.split('.') < ['10', '5']:
++ if (dep_target and
++ (tuple(int(n) for n in dep_target.split('.')[0:2])
++ < (10, 5) ) ):
+ os_release = 8
+ if os_release < 9:
+ # MacOSX 10.4 has a broken readline. Don't try to build
Copied: trunk/dports/lang/python32/files/patch-Lib-site.py-omit_local_site_packages.diff (from rev 150873, trunk/dports/lang/python32/files/omit-local-site-packages.patch)
===================================================================
--- trunk/dports/lang/python32/files/patch-Lib-site.py-omit_local_site_packages.diff (rev 0)
+++ trunk/dports/lang/python32/files/patch-Lib-site.py-omit_local_site_packages.diff 2016-08-01 06:44:08 UTC (rev 150874)
@@ -0,0 +1,20 @@
+Index: Lib/site.py
+===================================================================
+--- Lib/site.py.orig
++++ Lib/site.py
+@@ -292,15 +292,6 @@ def getsitepackages():
+ else:
+ sitepackages.append(prefix)
+ sitepackages.append(os.path.join(prefix, "lib", "site-packages"))
+- if sys.platform == "darwin":
+- # for framework builds *only* we add the standard Apple
+- # locations.
+- from sysconfig import get_config_var
+- framework = get_config_var("PYTHONFRAMEWORK")
+- if framework:
+- sitepackages.append(
+- os.path.join("/Library", framework,
+- sys.version[:3], "site-packages"))
+ return sitepackages
+
+ def addsitepackages(known_paths):
Modified: trunk/dports/lang/python32/files/patch-configure.diff
===================================================================
--- trunk/dports/lang/python32/files/patch-configure.diff 2016-08-01 06:43:57 UTC (rev 150873)
+++ trunk/dports/lang/python32/files/patch-configure.diff 2016-08-01 06:44:08 UTC (rev 150874)
@@ -1,6 +1,6 @@
---- configure.orig 2011-02-19 19:58:23.000000000 +1100
-+++ configure 2011-05-14 02:29:23.000000000 +1000
-@@ -2920,6 +2920,8 @@
+--- configure.old 2014-10-12 08:52:04.000000000 +0200
++++ configure 2016-08-01 06:10:47.000000000 +0200
+@@ -2957,6 +2957,8 @@ if test "${enable_framework+set}" = set;
;;
esac
Copied: trunk/dports/lang/python32/files/patch-configure_configure.ac-yosemite_configure_fixes.diff (from rev 150873, trunk/dports/lang/python32/files/yosemite-configure-fixes.patch)
===================================================================
--- trunk/dports/lang/python32/files/patch-configure_configure.ac-yosemite_configure_fixes.diff (rev 0)
+++ trunk/dports/lang/python32/files/patch-configure_configure.ac-yosemite_configure_fixes.diff 2016-08-01 06:44:08 UTC (rev 150874)
@@ -0,0 +1,118 @@
+--- configure.old 2016-08-01 06:11:48.000000000 +0200
++++ configure 2016-08-01 06:17:25.000000000 +0200
+@@ -5791,8 +5791,16 @@ $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
++ cur_target_major=`sw_vers -productVersion | \
++ sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
++ cur_target_minor=`sw_vers -productVersion | \
++ sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
++ cur_target="${cur_target_major}.${cur_target_minor}"
++ if test ${cur_target_major} -eq 10 && \
++ test ${cur_target_minor} -ge 3 && \
++ test ${cur_target_minor} -le 5
++ then
++ # OS X 10.3 through 10.5
+ cur_target=10.3
+ if test ${enable_universalsdk}; then
+ if test "${UNIVERSAL_ARCHS}" = "all"; then
+@@ -7785,15 +7793,14 @@ then
+ # Use -undefined dynamic_lookup whenever possible (10.3 and later).
+ # This allows an extension to be used in any Python
+
+- if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
++ dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
++ sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
++ dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
++ sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
++ if test ${dep_target_major} -eq 10 && \
++ test ${dep_target_minor} -le 2
+ then
+- if test "${enable_universalsdk}"; then
+- LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
+- fi
+- LDSHARED='$(CC) -bundle -undefined dynamic_lookup'
+- LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup'
+- BLDSHARED="$LDSHARED"
+- else
++ # building for OS X 10.0 through 10.2
+ LDSHARED='$(CC) -bundle'
+ LDCXXSHARED='$(CXX) -bundle'
+ if test "$enable_framework" ; then
+@@ -7807,6 +7814,14 @@ then
+ LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
+ LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
+ fi
++ else
++ # building for OS X 10.3 and later
++ if test "${enable_universalsdk}"; then
++ LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
++ fi
++ LDSHARED='$(CC) -bundle -undefined dynamic_lookup'
++ LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup'
++ BLDSHARED="$LDSHARED"
+ fi
+ ;;
+ Linux*|GNU*|QNX*)
+--- configure.ac.old 2014-10-12 08:52:04.000000000 +0200
++++ configure.ac 2016-08-01 06:17:25.000000000 +0200
+@@ -1099,8 +1099,16 @@ yes)
+
+ # 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
++ cur_target_major=`sw_vers -productVersion | \
++ sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
++ cur_target_minor=`sw_vers -productVersion | \
++ sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'`
++ cur_target="${cur_target_major}.${cur_target_minor}"
++ if test ${cur_target_major} -eq 10 && \
++ test ${cur_target_minor} -ge 3 && \
++ test ${cur_target_minor} -le 5
++ then
++ # OS X 10.3 through 10.5
+ cur_target=10.3
+ if test ${enable_universalsdk}; then
+ if test "${UNIVERSAL_ARCHS}" = "all"; then
+@@ -1806,15 +1814,14 @@ then
+ # Use -undefined dynamic_lookup whenever possible (10.3 and later).
+ # This allows an extension to be used in any Python
+
+- if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
++ dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
++ sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
++ dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
++ sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'`
++ if test ${dep_target_major} -eq 10 && \
++ test ${dep_target_minor} -le 2
+ then
+- if test "${enable_universalsdk}"; then
+- LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
+- fi
+- LDSHARED='$(CC) -bundle -undefined dynamic_lookup'
+- LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup'
+- BLDSHARED="$LDSHARED"
+- else
++ # building for OS X 10.0 through 10.2
+ LDSHARED='$(CC) -bundle'
+ LDCXXSHARED='$(CXX) -bundle'
+ if test "$enable_framework" ; then
+@@ -1828,6 +1835,14 @@ then
+ LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
+ LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
+ fi
++ else
++ # building for OS X 10.3 and later
++ if test "${enable_universalsdk}"; then
++ LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
++ fi
++ LDSHARED='$(CC) -bundle -undefined dynamic_lookup'
++ LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup'
++ BLDSHARED="$LDSHARED"
+ fi
+ ;;
+ Linux*|GNU*|QNX*)
Modified: trunk/dports/lang/python32/files/patch-libedit.diff
===================================================================
--- trunk/dports/lang/python32/files/patch-libedit.diff 2016-08-01 06:43:57 UTC (rev 150873)
+++ trunk/dports/lang/python32/files/patch-libedit.diff 2016-08-01 06:44:08 UTC (rev 150874)
@@ -1,6 +1,6 @@
---- configure.orig 2011-06-12 01:48:52.000000000 +1000
-+++ configure 2011-10-31 15:28:14.000000000 +1100
-@@ -12807,9 +12807,9 @@
+--- configure.old 2016-08-01 06:10:47.000000000 +0200
++++ configure 2016-08-01 06:11:48.000000000 +0200
+@@ -12967,9 +12967,9 @@ py_cv_lib_readline=no
$as_echo_n "checking how to link readline libs... " >&6; }
for py_libtermcap in "" ncursesw ncurses curses termcap; do
if test -z "$py_libtermcap"; then
@@ -12,7 +12,7 @@
fi
LIBS="$READLINE_LIBS $LIBS_no_readline"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-@@ -12853,13 +12853,13 @@
+@@ -13013,13 +13013,13 @@ $as_echo "#define HAVE_LIBREADLINE 1" >>
fi
# check for readline 2.1
@@ -29,7 +29,7 @@
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-@@ -12899,7 +12899,7 @@
+@@ -13059,7 +13059,7 @@ fi
# check for readline 2.2
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@@ -38,7 +38,7 @@
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
have_readline=yes
-@@ -12912,7 +12912,7 @@
+@@ -13072,7 +13072,7 @@ if test $have_readline = yes
then
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@@ -47,7 +47,7 @@
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-@@ -12925,7 +12925,7 @@
+@@ -13085,7 +13085,7 @@ rm -f conftest*
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@@ -56,7 +56,7 @@
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-@@ -12939,13 +12939,13 @@
+@@ -13099,13 +13099,13 @@ rm -f conftest*
fi
# check for readline 4.0
@@ -73,7 +73,7 @@
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-@@ -12983,13 +12983,13 @@
+@@ -13143,13 +13143,13 @@ fi
# also in 4.0
@@ -90,7 +90,7 @@
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-@@ -13027,13 +13027,13 @@
+@@ -13187,13 +13187,13 @@ fi
# check for readline 4.2
@@ -107,7 +107,7 @@
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-@@ -13073,7 +13073,7 @@
+@@ -13233,7 +13233,7 @@ fi
# also in readline 4.2
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@@ -116,7 +116,7 @@
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
have_readline=yes
-@@ -13086,7 +13086,7 @@
+@@ -13246,7 +13246,7 @@ if test $have_readline = yes
then
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@@ -125,9 +125,9 @@
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
---- setup.py.orig 2011-10-31 15:26:25.000000000 +1100
-+++ setup.py 2011-10-31 15:29:39.000000000 +1100
-@@ -581,7 +581,7 @@
+--- setup.py.old 2016-08-01 06:11:23.000000000 +0200
++++ setup.py 2016-08-01 06:11:48.000000000 +0200
+@@ -602,7 +602,7 @@ class PyBuildExt(build_ext):
exts.append( Extension('audioop', ['audioop.c']) )
# readline
@@ -136,7 +136,7 @@
readline_termcap_library = ""
curses_library = ""
# Determine if readline is already linked against curses or tinfo.
-@@ -637,7 +637,7 @@
+@@ -658,7 +658,7 @@ class PyBuildExt(build_ext):
else:
readline_extra_link_args = ()
@@ -145,8 +145,8 @@
if readline_termcap_library:
pass # Issue 7384: Already linked against curses or tinfo.
elif curses_library:
---- Modules/readline.c.orig 2011-09-04 02:16:46.000000000 +1000
-+++ Modules/readline.c 2011-10-31 16:02:33.000000000 +1100
+--- Modules/readline.c.old 2014-10-12 08:52:03.000000000 +0200
++++ Modules/readline.c 2016-08-01 06:11:48.000000000 +0200
@@ -28,8 +28,7 @@
/* GNU readline definitions */
@@ -157,7 +157,7 @@
#ifdef HAVE_RL_COMPLETION_MATCHES
#define completion_matches(x, y) \
-@@ -573,14 +572,13 @@ get_history_item(PyObject *self, PyObjec
+@@ -575,14 +574,13 @@ get_history_item(PyObject *self, PyObjec
* difference.
*/
int length = _py_get_history_length();
@@ -173,7 +173,7 @@
Py_RETURN_NONE;
}
}
-@@ -1000,7 +998,6 @@ readline_until_enter_or_signal(char *pro
+@@ -1003,7 +1001,6 @@ readline_until_enter_or_signal(char *pro
PyEval_SaveThread();
#endif
if (s < 0) {
@@ -181,7 +181,7 @@
rl_cleanup_after_signal();
rl_callback_handler_remove();
*signal = 1;
-@@ -1099,15 +1096,6 @@ call_readline(FILE *sys_stdin, FILE *sys
+@@ -1102,15 +1099,6 @@ call_readline(FILE *sys_stdin, FILE *sys
const char *line;
int length = _py_get_history_length();
if (length > 0)
Modified: trunk/dports/lang/python32/files/patch-setup.py.diff
===================================================================
--- trunk/dports/lang/python32/files/patch-setup.py.diff 2016-08-01 06:43:57 UTC (rev 150873)
+++ trunk/dports/lang/python32/files/patch-setup.py.diff 2016-08-01 06:44:08 UTC (rev 150874)
@@ -1,6 +1,6 @@
---- setup.py.orig 2009-05-24 03:13:14.000000000 +1000
-+++ setup.py 2009-09-03 13:51:47.000000000 +1000
-@@ -1265,7 +1265,7 @@
+--- setup.py.old 2014-10-12 08:52:04.000000000 +0200
++++ setup.py 2016-08-01 06:01:52.000000000 +0200
+@@ -1493,7 +1493,7 @@ class PyBuildExt(build_ext):
# For 8.4a2, the X11 headers are not included. Rather than include a
# complicated search, this is a hard-coded path. It could bail out
# if X11 libs are not found...
@@ -9,7 +9,7 @@
frameworks = ['-framework', 'Tcl', '-framework', 'Tk']
# All existing framework builds of Tcl/Tk don't support 64-bit
-@@ -1300,13 +1300,7 @@
+@@ -1538,13 +1538,7 @@ class PyBuildExt(build_ext):
def detect_tkinter(self, inc_dirs, lib_dirs):
# The _tkinter module.
@@ -23,7 +23,7 @@
# Assume we haven't found any of the libraries or include files
# The versions with dots are used on Unix, and the versions without
-@@ -1354,17 +1348,17 @@
+@@ -1594,17 +1588,17 @@ class PyBuildExt(build_ext):
if platform == 'sunos5':
include_dirs.append('/usr/openwin/include')
added_lib_dirs.append('/usr/openwin/lib')
Deleted: trunk/dports/lang/python32/files/yosemite-configure-fixes.patch
===================================================================
--- trunk/dports/lang/python32/files/yosemite-configure-fixes.patch 2016-08-01 06:43:57 UTC (rev 150873)
+++ trunk/dports/lang/python32/files/yosemite-configure-fixes.patch 2016-08-01 06:44:08 UTC (rev 150874)
@@ -1,122 +0,0 @@
-Index: configure
-===================================================================
---- configure.orig
-+++ configure
-@@ -5789,8 +5789,16 @@ $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
-+ cur_target_major=`sw_vers -productVersion | \
-+ sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
-+ cur_target_minor=`sw_vers -productVersion | \
-+ sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
-+ cur_target="${cur_target_major}.${cur_target_minor}"
-+ if test ${cur_target_major} -eq 10 && \
-+ test ${cur_target_minor} -ge 3 && \
-+ test ${cur_target_minor} -le 5
-+ then
-+ # OS X 10.3 through 10.5
- cur_target=10.3
- if test ${enable_universalsdk}; then
- if test "${UNIVERSAL_ARCHS}" = "all"; then
-@@ -7783,15 +7791,14 @@ then
- # Use -undefined dynamic_lookup whenever possible (10.3 and later).
- # This allows an extension to be used in any Python
-
-- if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
-+ dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
-+ sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
-+ dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
-+ sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
-+ if test ${dep_target_major} -eq 10 && \
-+ test ${dep_target_minor} -le 2
- then
-- if test "${enable_universalsdk}"; then
-- LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
-- fi
-- LDSHARED='$(CC) -bundle -undefined dynamic_lookup'
-- LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup'
-- BLDSHARED="$LDSHARED"
-- else
-+ # building for OS X 10.0 through 10.2
- LDSHARED='$(CC) -bundle'
- LDCXXSHARED='$(CXX) -bundle'
- if test "$enable_framework" ; then
-@@ -7805,6 +7812,14 @@ then
- LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
- LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
- fi
-+ else
-+ # building for OS X 10.3 and later
-+ if test "${enable_universalsdk}"; then
-+ LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
-+ fi
-+ LDSHARED='$(CC) -bundle -undefined dynamic_lookup'
-+ LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup'
-+ BLDSHARED="$LDSHARED"
- fi
- ;;
- Linux*|GNU*|QNX*)
-Index: configure.ac
-===================================================================
---- configure.ac.orig
-+++ configure.ac
-@@ -1099,8 +1099,16 @@ yes)
-
- # 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
-+ cur_target_major=`sw_vers -productVersion | \
-+ sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
-+ cur_target_minor=`sw_vers -productVersion | \
-+ sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'`
-+ cur_target="${cur_target_major}.${cur_target_minor}"
-+ if test ${cur_target_major} -eq 10 && \
-+ test ${cur_target_minor} -ge 3 && \
-+ test ${cur_target_minor} -le 5
-+ then
-+ # OS X 10.3 through 10.5
- cur_target=10.3
- if test ${enable_universalsdk}; then
- if test "${UNIVERSAL_ARCHS}" = "all"; then
-@@ -1806,15 +1814,14 @@ then
- # Use -undefined dynamic_lookup whenever possible (10.3 and later).
- # This allows an extension to be used in any Python
-
-- if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
-+ dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
-+ sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
-+ dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
-+ sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'`
-+ if test ${dep_target_major} -eq 10 && \
-+ test ${dep_target_minor} -le 2
- then
-- if test "${enable_universalsdk}"; then
-- LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
-- fi
-- LDSHARED='$(CC) -bundle -undefined dynamic_lookup'
-- LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup'
-- BLDSHARED="$LDSHARED"
-- else
-+ # building for OS X 10.0 through 10.2
- LDSHARED='$(CC) -bundle'
- LDCXXSHARED='$(CXX) -bundle'
- if test "$enable_framework" ; then
-@@ -1828,6 +1835,14 @@ then
- LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
- LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
- fi
-+ else
-+ # building for OS X 10.3 and later
-+ if test "${enable_universalsdk}"; then
-+ LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
-+ fi
-+ LDSHARED='$(CC) -bundle -undefined dynamic_lookup'
-+ LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup'
-+ BLDSHARED="$LDSHARED"
- fi
- ;;
- Linux*|GNU*|QNX*)
Deleted: trunk/dports/lang/python32/files/yosemite-python-fixes.patch
===================================================================
--- trunk/dports/lang/python32/files/yosemite-python-fixes.patch 2016-08-01 06:43:57 UTC (rev 150873)
+++ trunk/dports/lang/python32/files/yosemite-python-fixes.patch 2016-08-01 06:44:08 UTC (rev 150874)
@@ -1,154 +0,0 @@
-Index: Lib/_osx_support.py
-===================================================================
---- Lib/_osx_support.py.orig
-+++ Lib/_osx_support.py
-@@ -444,8 +444,16 @@ def get_platform_osx(_config_vars, osnam
- # case and disallow installs.
- cflags = _config_vars.get(_INITPRE+'CFLAGS',
- _config_vars.get('CFLAGS', ''))
-- if ((macrelease + '.') >= '10.4.' and
-- '-arch' in cflags.strip()):
-+ if macrelease:
-+ try:
-+ macrelease = tuple(int(i) for i in macrelease.split('.')[0:2])
-+ except ValueError:
-+ macrelease = (10, 0)
-+ else:
-+ # assume no universal support
-+ macrelease = (10, 0)
-+
-+ if (macrelease >= (10, 4)) and '-arch' in cflags.strip():
- # The universal build will build fat binaries, but not on
- # systems before 10.4
-
-Index: Lib/distutils/tests/test_build_ext.py
-===================================================================
---- Lib/distutils/tests/test_build_ext.py.orig
-+++ Lib/distutils/tests/test_build_ext.py
-@@ -448,8 +448,16 @@ class BuildExtTestCase(TempdirManager,
-
- # get the deployment target that the interpreter was built with
- target = sysconfig.get_config_var('MACOSX_DEPLOYMENT_TARGET')
-- target = tuple(map(int, target.split('.')))
-- target = '%02d%01d0' % target
-+ target = tuple(map(int, target.split('.')[0:2]))
-+ # format the target value as defined in the Apple
-+ # Availability Macros. We can't use the macro names since
-+ # at least one value we test with will not exist yet.
-+ if target[1] < 10:
-+ # for 10.1 through 10.9.x -> "10n0"
-+ target = '%02d%01d0' % target
-+ else:
-+ # for 10.10 and beyond -> "10nn00"
-+ target = '%02d%02d00' % target
- deptarget_ext = Extension(
- 'deptarget',
- [deptarget_c],
-Index: Lib/test/test__osx_support.py
-===================================================================
---- Lib/test/test__osx_support.py.orig
-+++ Lib/test/test__osx_support.py
-@@ -109,7 +109,9 @@ class Test_OSXSupport(unittest.TestCase)
-
- def test__supports_universal_builds(self):
- import platform
-- self.assertEqual(platform.mac_ver()[0].split('.') >= ['10', '4'],
-+ mac_ver_tuple = tuple(int(i) for i in
-+ platform.mac_ver()[0].split('.')[0:2])
-+ self.assertEqual(mac_ver_tuple >= (10, 4),
- _osx_support._supports_universal_builds())
-
- def test__find_appropriate_compiler(self):
-Index: Lib/test/test_posix.py
-===================================================================
---- Lib/test/test_posix.py.orig
-+++ Lib/test/test_posix.py
-@@ -487,7 +487,7 @@ class PosixTester(unittest.TestCase):
- if sys.platform == 'darwin':
- import sysconfig
- dt = sysconfig.get_config_var('MACOSX_DEPLOYMENT_TARGET') or '10.0'
-- if float(dt) < 10.6:
-+ if tuple(int(n) for n in dt.split('.')[0:2]) < (10, 6):
- raise unittest.SkipTest("getgroups(2) is broken prior to 10.6")
-
- # 'id -G' and 'os.getgroups()' should return the same
-Index: Mac/BuildScript/build-installer.py
-===================================================================
---- Mac/BuildScript/build-installer.py.orig
-+++ Mac/BuildScript/build-installer.py
-@@ -148,16 +148,19 @@ SRCDIR = os.path.dirname(
- # $MACOSX_DEPLOYMENT_TARGET -> minimum OS X level
- DEPTARGET = '10.3'
-
--target_cc_map = {
-+def getDeptargetTuple():
-+ return tuple([int(n) for n in DEPTARGET.split('.')[0:2]])
-+
-+def getTargetCompilers():
-+ target_cc_map = {
- '10.3': ('gcc-4.0', 'g++-4.0'),
- '10.4': ('gcc-4.0', 'g++-4.0'),
- '10.5': ('gcc-4.2', 'g++-4.2'),
- '10.6': ('gcc-4.2', 'g++-4.2'),
-- '10.7': ('clang', 'clang++'),
-- '10.8': ('clang', 'clang++'),
--}
-+ }
-+ return target_cc_map.get(DEPTARGET, ('clang', 'clang++') )
-
--CC, CXX = target_cc_map[DEPTARGET]
-+CC, CXX = getTargetCompilers()
-
- PYTHON_3 = getVersionTuple() >= (3, 0)
-
-@@ -190,7 +193,7 @@ EXPECTED_SHARED_LIBS = {}
- def library_recipes():
- result = []
-
-- LT_10_5 = bool(DEPTARGET < '10.5')
-+ LT_10_5 = bool(getDeptargetTuple() < (10, 5))
-
- if getVersionTuple() >= (3, 3):
- result.extend([
-@@ -259,7 +262,7 @@ def library_recipes():
- ),
- ])
-
-- if DEPTARGET < '10.5':
-+ if getDeptargetTuple() < (10, 5):
- result.extend([
- dict(
- name="Bzip2 1.0.6",
-@@ -394,7 +397,7 @@ def pkg_recipes():
- ),
- ]
-
-- if DEPTARGET < '10.4' and not PYTHON_3:
-+ if getDeptargetTuple() < (10, 4) and not PYTHON_3:
- result.append(
- dict(
- name="PythonSystemFixes",
-@@ -610,7 +613,7 @@ def parseOptions(args=None):
- SDKPATH=os.path.abspath(SDKPATH)
- DEPSRC=os.path.abspath(DEPSRC)
-
-- CC, CXX=target_cc_map[DEPTARGET]
-+ CC, CXX = getTargetCompilers()
-
- print("Settings:")
- print(" * Source directory:", SRCDIR)
-Index: setup.py
-===================================================================
---- setup.py.orig
-+++ setup.py
-@@ -639,7 +639,9 @@ class PyBuildExt(build_ext):
- if platform == 'darwin':
- os_release = int(os.uname()[2].split('.')[0])
- dep_target = sysconfig.get_config_var('MACOSX_DEPLOYMENT_TARGET')
-- if dep_target and dep_target.split('.') < ['10', '5']:
-+ if (dep_target and
-+ (tuple(int(n) for n in dep_target.split('.')[0:2])
-+ < (10, 5) ) ):
- os_release = 8
- if os_release < 9:
- # MacOSX 10.4 has a broken readline. Don't try to build
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160731/54282fbb/attachment-0001.html>
More information about the macports-changes
mailing list