|
@@ -6,10 +6,11 @@ on the sysconfig import that usually leads to bad data/results.
|
|
|
|
|
|
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
|
|
|
|
|
-diff -Nura Python-2.7.6.orig/configure.ac Python-2.7.6/configure.ac
|
|
|
---- Python-2.7.6.orig/configure.ac 2014-02-25 12:48:16.726535439 -0300
|
|
|
-+++ Python-2.7.6/configure.ac 2014-02-25 12:49:00.992176462 -0300
|
|
|
-@@ -868,6 +868,7 @@
|
|
|
+Index: b/configure.ac
|
|
|
+===================================================================
|
|
|
+--- a/configure.ac
|
|
|
++++ b/configure.ac
|
|
|
+@@ -879,6 +879,7 @@
|
|
|
|
|
|
# Other platforms follow
|
|
|
if test $enable_shared = "yes"; then
|
|
@@ -17,7 +18,7 @@ diff -Nura Python-2.7.6.orig/configure.ac Python-2.7.6/configure.ac
|
|
|
AC_DEFINE(Py_ENABLE_SHARED, 1, [Defined if Python is built as a shared library.])
|
|
|
case $ac_sys_system in
|
|
|
BeOS*)
|
|
|
-@@ -928,6 +929,7 @@
|
|
|
+@@ -939,6 +940,7 @@
|
|
|
|
|
|
esac
|
|
|
else # shared is disabled
|
|
@@ -25,7 +26,7 @@ diff -Nura Python-2.7.6.orig/configure.ac Python-2.7.6/configure.ac
|
|
|
case $ac_sys_system in
|
|
|
CYGWIN*)
|
|
|
BLDLIBRARY='$(LIBRARY)'
|
|
|
-@@ -1905,6 +1907,9 @@
|
|
|
+@@ -1909,6 +1911,9 @@
|
|
|
AC_SUBST(BLDSHARED)
|
|
|
AC_SUBST(CCSHARED)
|
|
|
AC_SUBST(LINKFORSHARED)
|
|
@@ -35,7 +36,7 @@ diff -Nura Python-2.7.6.orig/configure.ac Python-2.7.6/configure.ac
|
|
|
# SO is the extension of shared libraries `(including the dot!)
|
|
|
# -- usually .so, .sl on HP-UX, .dll on Cygwin
|
|
|
AC_MSG_CHECKING(SO)
|
|
|
-@@ -4529,7 +4534,7 @@
|
|
|
+@@ -4550,7 +4555,7 @@
|
|
|
AC_MSG_RESULT(done)
|
|
|
|
|
|
# generate output files
|
|
@@ -44,10 +45,11 @@ diff -Nura Python-2.7.6.orig/configure.ac Python-2.7.6/configure.ac
|
|
|
AC_CONFIG_FILES([Modules/ld_so_aix], [chmod +x Modules/ld_so_aix])
|
|
|
AC_OUTPUT
|
|
|
|
|
|
-diff -Nura Python-2.7.6.orig/Makefile.pre.in Python-2.7.6/Makefile.pre.in
|
|
|
---- Python-2.7.6.orig/Makefile.pre.in 2014-02-25 12:48:16.611533773 -0300
|
|
|
-+++ Python-2.7.6/Makefile.pre.in 2014-02-25 12:49:00.993176482 -0300
|
|
|
-@@ -161,7 +161,7 @@
|
|
|
+Index: b/Makefile.pre.in
|
|
|
+===================================================================
|
|
|
+--- a/Makefile.pre.in
|
|
|
++++ b/Makefile.pre.in
|
|
|
+@@ -163,7 +163,7 @@
|
|
|
SUBDIRSTOO= Include Lib Misc Demo
|
|
|
|
|
|
# Files and directories to be distributed
|
|
@@ -56,7 +58,7 @@ diff -Nura Python-2.7.6.orig/Makefile.pre.in Python-2.7.6/Makefile.pre.in
|
|
|
DISTFILES= README ChangeLog $(CONFIGFILES)
|
|
|
DISTDIRS= $(SUBDIRS) $(SUBDIRSTOO) Ext-dummy
|
|
|
DIST= $(DISTFILES) $(DISTDIRS)
|
|
|
-@@ -405,7 +405,7 @@
|
|
|
+@@ -407,7 +407,7 @@
|
|
|
|
|
|
# Default target
|
|
|
all: build_all
|
|
@@ -65,7 +67,7 @@ diff -Nura Python-2.7.6.orig/Makefile.pre.in Python-2.7.6/Makefile.pre.in
|
|
|
|
|
|
# Compile a binary with gcc profile guided optimization.
|
|
|
profile-opt:
|
|
|
-@@ -1045,10 +1045,12 @@
|
|
|
+@@ -1068,10 +1068,12 @@
|
|
|
fi; \
|
|
|
cd $(srcdir)/Lib/$(PLATDIR); $(RUNSHARED) ./regen
|
|
|
|
|
@@ -80,7 +82,7 @@ diff -Nura Python-2.7.6.orig/Makefile.pre.in Python-2.7.6/Makefile.pre.in
|
|
|
|
|
|
# Install the include files
|
|
|
INCLDIRSTOMAKE=$(INCLUDEDIR) $(CONFINCLUDEDIR) $(INCLUDEPY) $(CONFINCLUDEPY)
|
|
|
-@@ -1107,7 +1109,7 @@
|
|
|
+@@ -1130,7 +1132,7 @@
|
|
|
$(INSTALL_SCRIPT) $(srcdir)/Modules/makesetup $(DESTDIR)$(LIBPL)/makesetup
|
|
|
$(INSTALL_SCRIPT) $(srcdir)/install-sh $(DESTDIR)$(LIBPL)/install-sh
|
|
|
$(INSTALL_SCRIPT) python-config $(DESTDIR)$(BINDIR)/python$(VERSION)-config
|
|
@@ -89,7 +91,7 @@ diff -Nura Python-2.7.6.orig/Makefile.pre.in Python-2.7.6/Makefile.pre.in
|
|
|
@if [ -s Modules/python.exp -a \
|
|
|
"`echo $(MACHDEP) | sed 's/^\(...\).*/\1/'`" = "aix" ]; then \
|
|
|
echo; echo "Installing support files for building shared extension modules on AIX:"; \
|
|
|
-@@ -1287,6 +1289,7 @@
|
|
|
+@@ -1311,6 +1313,7 @@
|
|
|
config.cache config.log pyconfig.h Modules/config.c
|
|
|
-rm -rf build platform
|
|
|
-rm -rf $(PYTHONFRAMEWORKDIR)
|
|
@@ -97,9 +99,10 @@ diff -Nura Python-2.7.6.orig/Makefile.pre.in Python-2.7.6/Makefile.pre.in
|
|
|
|
|
|
# Make things extra clean, before making a distribution:
|
|
|
# remove all generated files, even Makefile[.pre]
|
|
|
-diff -Nura Python-2.7.6.orig/Misc/python-config.sh.in Python-2.7.6/Misc/python-config.sh.in
|
|
|
---- Python-2.7.6.orig/Misc/python-config.sh.in 1969-12-31 21:00:00.000000000 -0300
|
|
|
-+++ Python-2.7.6/Misc/python-config.sh.in 2014-02-25 12:49:00.993176482 -0300
|
|
|
+Index: b/Misc/python-config.sh.in
|
|
|
+===================================================================
|
|
|
+--- /dev/null
|
|
|
++++ b/Misc/python-config.sh.in
|
|
|
@@ -0,0 +1,102 @@
|
|
|
+#!/bin/sh
|
|
|
+
|