python: update to version 2.7.15
This also updates pip and setuptools. With this occasion, they also get PKG_RELEASEs of their own. Dropped patch 011-remove-setupterm-definition.patch Manually re-applied 005-fix-bluetooth-support.patch Ran make package/python/refresh to refresh other patches. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
This commit is contained in:
parent
a40234905e
commit
2ef484615d
8 changed files with 24 additions and 41 deletions
|
@ -6,8 +6,14 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
PYTHON_VERSION:=2.7
|
PYTHON_VERSION:=2.7
|
||||||
PYTHON_VERSION_MICRO:=14
|
PYTHON_VERSION_MICRO:=15
|
||||||
|
|
||||||
PYTHON_SETUPTOOLS_VERSION:=28.8.0
|
PYTHON_SETUPTOOLS_PKG_RELEASE:=1
|
||||||
PYTHON_PIP_VERSION:=9.0.1
|
PYTHON_PIP_PKG_RELEASE:=1
|
||||||
|
|
||||||
|
PYTHON_SETUPTOOLS_VERSION:=39.0.1
|
||||||
|
PYTHON_PIP_VERSION:=9.0.3
|
||||||
|
|
||||||
|
PYTHON_SETUPTOOLS_VERSION:=$(PYTHON_SETUPTOOLS_VERSION)-$(PYTHON_SETUPTOOLS_PKG_RELEASE)
|
||||||
|
PYTHON_PIP_VERSION:=$(PYTHON_PIP_VERSION)-$(PYTHON_PIP_PKG_RELEASE)
|
||||||
|
|
||||||
|
|
|
@ -12,11 +12,11 @@ include ../python-version.mk
|
||||||
|
|
||||||
PKG_NAME:=python
|
PKG_NAME:=python
|
||||||
PKG_VERSION:=$(PYTHON_VERSION).$(PYTHON_VERSION_MICRO)
|
PKG_VERSION:=$(PYTHON_VERSION).$(PYTHON_VERSION_MICRO)
|
||||||
PKG_RELEASE:=10
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz
|
||||||
PKG_SOURCE_URL:=https://www.python.org/ftp/python/$(PKG_VERSION)
|
PKG_SOURCE_URL:=https://www.python.org/ftp/python/$(PKG_VERSION)
|
||||||
PKG_HASH:=71ffb26e09e78650e424929b2b457b9c912ac216576e6bd9e7d204ed03296a66
|
PKG_HASH:=22d9b1ac5b26135ad2b8c2901a9413537e08749a753356ee913c84dbd2df5574
|
||||||
|
|
||||||
PKG_LICENSE:=PSF
|
PKG_LICENSE:=PSF
|
||||||
PKG_LICENSE_FILES:=LICENSE Modules/_ctypes/libffi_msvc/LICENSE Modules/_ctypes/darwin/LICENSE Modules/_ctypes/libffi/LICENSE Modules/_ctypes/libffi_osx/LICENSE Tools/pybench/LICENSE
|
PKG_LICENSE_FILES:=LICENSE Modules/_ctypes/libffi_msvc/LICENSE Modules/_ctypes/darwin/LICENSE Modules/_ctypes/libffi/LICENSE Modules/_ctypes/libffi_osx/LICENSE Tools/pybench/LICENSE
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
--- a/Makefile.pre.in
|
--- a/Makefile.pre.in
|
||||||
+++ b/Makefile.pre.in
|
+++ b/Makefile.pre.in
|
||||||
@@ -1110,6 +1110,7 @@ libinstall: build_all $(srcdir)/Lib/$(PL
|
@@ -1127,6 +1127,7 @@ libinstall: build_all $(srcdir)/Lib/$(PL
|
||||||
done; \
|
done; \
|
||||||
done
|
done
|
||||||
$(INSTALL_DATA) $(srcdir)/LICENSE $(DESTDIR)$(LIBDEST)/LICENSE.txt
|
$(INSTALL_DATA) $(srcdir)/LICENSE $(DESTDIR)$(LIBDEST)/LICENSE.txt
|
||||||
|
@ -8,7 +8,7 @@
|
||||||
if test -d $(DESTDIR)$(LIBDEST)/distutils/tests; then \
|
if test -d $(DESTDIR)$(LIBDEST)/distutils/tests; then \
|
||||||
$(INSTALL_DATA) $(srcdir)/Modules/xxmodule.c \
|
$(INSTALL_DATA) $(srcdir)/Modules/xxmodule.c \
|
||||||
$(DESTDIR)$(LIBDEST)/distutils/tests ; \
|
$(DESTDIR)$(LIBDEST)/distutils/tests ; \
|
||||||
@@ -1136,6 +1137,7 @@ libinstall: build_all $(srcdir)/Lib/$(PL
|
@@ -1153,6 +1154,7 @@ libinstall: build_all $(srcdir)/Lib/$(PL
|
||||||
$(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/Grammar.txt
|
$(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/Grammar.txt
|
||||||
-PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
|
-PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
|
||||||
$(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/PatternGrammar.txt
|
$(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/PatternGrammar.txt
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
--- a/Python/pythonrun.c
|
--- a/Python/pythonrun.c
|
||||||
+++ b/Python/pythonrun.c
|
+++ b/Python/pythonrun.c
|
||||||
@@ -79,7 +79,7 @@ int Py_InteractiveFlag; /* Needed by Py_
|
@@ -71,7 +71,7 @@ int Py_InteractiveFlag; /* Needed by Py_
|
||||||
int Py_InspectFlag; /* Needed to determine whether to exit at SystemExit */
|
int Py_InspectFlag; /* Needed to determine whether to exit at SystemExit */
|
||||||
int Py_NoSiteFlag; /* Suppress 'import site' */
|
int Py_NoSiteFlag; /* Suppress 'import site' */
|
||||||
int Py_BytesWarningFlag; /* Warn on str(bytes) and str(buffer) */
|
int Py_BytesWarningFlag; /* Warn on str(bytes) and str(buffer) */
|
||||||
|
@ -9,12 +9,3 @@
|
||||||
int Py_UseClassExceptionsFlag = 1; /* Needed by bltinmodule.c: deprecated */
|
int Py_UseClassExceptionsFlag = 1; /* Needed by bltinmodule.c: deprecated */
|
||||||
int Py_FrozenFlag; /* Needed by getpath.c */
|
int Py_FrozenFlag; /* Needed by getpath.c */
|
||||||
int Py_UnicodeFlag = 0; /* Needed by compile.c */
|
int Py_UnicodeFlag = 0; /* Needed by compile.c */
|
||||||
@@ -185,7 +185,7 @@ Py_InitializeEx(int install_sigs)
|
|
||||||
if ((p = Py_GETENV("PYTHONOPTIMIZE")) && *p != '\0')
|
|
||||||
Py_OptimizeFlag = add_flag(Py_OptimizeFlag, p);
|
|
||||||
if ((p = Py_GETENV("PYTHONDONTWRITEBYTECODE")) && *p != '\0')
|
|
||||||
- Py_DontWriteBytecodeFlag = add_flag(Py_DontWriteBytecodeFlag, p);
|
|
||||||
+ Py_DontWriteBytecodeFlag = atoi(p);
|
|
||||||
/* The variable is only tested for existence here; _PyRandom_Init will
|
|
||||||
check its value further. */
|
|
||||||
if ((p = Py_GETENV("PYTHONHASHSEED")) && *p != '\0')
|
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
diff --git a/configure b/configure
|
|
||||||
index 4c0435e..0068a9d 100755
|
|
||||||
--- a/configure
|
--- a/configure
|
||||||
+++ b/configure
|
+++ b/configure
|
||||||
@@ -7045,7 +7045,7 @@ sys/param.h sys/poll.h sys/random.h sys/select.h sys/socket.h sys/statvfs.h sys/
|
@@ -7077,7 +7077,7 @@ sys/param.h sys/poll.h sys/random.h sys/
|
||||||
sys/termio.h sys/time.h \
|
sys/termio.h sys/time.h \
|
||||||
sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
|
sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
|
||||||
sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
|
sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
|
||||||
-bluetooth/bluetooth.h linux/tipc.h spawn.h util.h alloca.h
|
-bluetooth/bluetooth.h linux/tipc.h spawn.h util.h alloca.h sys/sysmacros.h
|
||||||
+linux/tipc.h spawn.h util.h alloca.h
|
+linux/tipc.h spawn.h util.h alloca.h sys/sysmacros.h
|
||||||
do :
|
do :
|
||||||
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
||||||
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
||||||
@@ -7267,6 +7267,24 @@ fi
|
@@ -7299,6 +7299,24 @@ fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
@ -36,16 +34,14 @@ index 4c0435e..0068a9d 100755
|
||||||
# On Linux, netlink.h requires asm/types.h
|
# On Linux, netlink.h requires asm/types.h
|
||||||
for ac_header in linux/netlink.h
|
for ac_header in linux/netlink.h
|
||||||
do :
|
do :
|
||||||
diff --git a/configure.ac b/configure.ac
|
|
||||||
index 780f275..dceca1c 100644
|
|
||||||
--- a/configure.ac
|
--- a/configure.ac
|
||||||
+++ b/configure.ac
|
+++ b/configure.ac
|
||||||
@@ -1702,10 +1702,17 @@ sys/param.h sys/poll.h sys/random.h sys/select.h sys/socket.h sys/statvfs.h sys/
|
@@ -1732,10 +1732,17 @@ sys/param.h sys/poll.h sys/random.h sys/
|
||||||
sys/termio.h sys/time.h \
|
sys/termio.h sys/time.h \
|
||||||
sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
|
sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
|
||||||
sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
|
sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
|
||||||
-bluetooth/bluetooth.h linux/tipc.h spawn.h util.h alloca.h)
|
-bluetooth/bluetooth.h linux/tipc.h spawn.h util.h alloca.h sys/sysmacros.h)
|
||||||
+linux/tipc.h spawn.h util.h alloca.h)
|
+linux/tipc.h spawn.h util.h alloca.h sys/sysmacros.h)
|
||||||
AC_HEADER_DIRENT
|
AC_HEADER_DIRENT
|
||||||
AC_HEADER_MAJOR
|
AC_HEADER_MAJOR
|
||||||
|
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
--- a/Modules/_cursesmodule.c
|
|
||||||
+++ b/Modules/_cursesmodule.c
|
|
||||||
@@ -117,7 +117,6 @@ char *PyCursesVersion = "2.2";
|
|
||||||
#defines many common symbols (such as "lines") which breaks the
|
|
||||||
curses module in other ways. So the code will just specify
|
|
||||||
explicit prototypes here. */
|
|
||||||
-extern int setupterm(char *,int,int *);
|
|
||||||
#ifdef __sgi
|
|
||||||
#include <term.h>
|
|
||||||
#endif
|
|
|
@ -1,6 +1,6 @@
|
||||||
--- a/Lib/py_compile.py
|
--- a/Lib/py_compile.py
|
||||||
+++ b/Lib/py_compile.py
|
+++ b/Lib/py_compile.py
|
||||||
@@ -108,6 +108,7 @@ def compile(file, cfile=None, dfile=None, doraise=False):
|
@@ -108,6 +108,7 @@ def compile(file, cfile=None, dfile=None
|
||||||
timestamp = long(os.fstat(f.fileno()).st_mtime)
|
timestamp = long(os.fstat(f.fileno()).st_mtime)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
timestamp = long(os.stat(file).st_mtime)
|
timestamp = long(os.stat(file).st_mtime)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
--- a/Makefile.pre.in
|
--- a/Makefile.pre.in
|
||||||
+++ b/Makefile.pre.in
|
+++ b/Makefile.pre.in
|
||||||
@@ -625,6 +625,16 @@ regen-all: regen-opcode-targets regen-gr
|
@@ -634,6 +634,16 @@ regen-all: regen-opcode-targets regen-gr
|
||||||
############################################################################
|
############################################################################
|
||||||
# Special rules for object files
|
# Special rules for object files
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
Modules/getbuildinfo.o: $(PARSER_OBJS) \
|
Modules/getbuildinfo.o: $(PARSER_OBJS) \
|
||||||
$(OBJECT_OBJS) \
|
$(OBJECT_OBJS) \
|
||||||
$(PYTHON_OBJS) \
|
$(PYTHON_OBJS) \
|
||||||
@@ -633,6 +643,8 @@ Modules/getbuildinfo.o: $(PARSER_OBJS) \
|
@@ -642,6 +652,8 @@ Modules/getbuildinfo.o: $(PARSER_OBJS) \
|
||||||
$(MODOBJS) \
|
$(MODOBJS) \
|
||||||
$(srcdir)/Modules/getbuildinfo.c
|
$(srcdir)/Modules/getbuildinfo.c
|
||||||
$(CC) -c $(PY_CFLAGS) \
|
$(CC) -c $(PY_CFLAGS) \
|
||||||
|
|
Loading…
Reference in a new issue