Commit 5e979280 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Updated Python to 2.7.18

parent f4410009
target all: LC_ALL=$(SYSTEM_LOCALE) target all: LC_ALL=$(SYSTEM_LOCALE)
all: all:
tar xf Python-2.7.16.tar.xz tar xf Python-2.7.18.tar.xz
patch -Np1 -d Python-2.7.16 < Python-2.7.16-OpenSSL_1.1.1_test_fix.patch patch -Np1 -d Python-2.7.18 < Python-2.7.18-OpenSSL_1.1.1_test_fix.patch
cd Python-2.7.16 && sed -i '/#SSL/,+3 s/^#//' Modules/Setup.dist cd Python-2.7.18 && sed -i '/#SSL/,+3 s/^#//' Modules/Setup.dist
cd Python-2.7.16 && ./configure --build=$(CLFS_TARGET) --prefix=/usr --enable-shared --with-system-expat --with-system-ffi --with-ensurepip=yes --enable-unicode=ucs4 --enable-optimizations cd Python-2.7.18 && ./configure --build=$(CLFS_TARGET) --prefix=/usr --enable-shared --with-system-expat --with-system-ffi --with-ensurepip=yes --enable-unicode=ucs4 --enable-optimizations
$(MAKE) -C Python-2.7.16 $(MAKE) -C Python-2.7.18
if [[ ! "$(BUILD_OPTIONS)" =~ no-tests ]] ; then \ if [[ ! "$(BUILD_OPTIONS)" =~ no-tests ]] ; then \
$(MAKE) -C Python-2.7.16 test ; \ $(MAKE) -C Python-2.7.18 test ; \
fi fi
$(MAKE) -C Python-2.7.16 install $(MAKE) -C Python-2.7.18 install
chmod -v 755 /usr/lib/libpython2.7.so.1.0 chmod -v 755 /usr/lib/libpython2.7.so.1.0
rm -rf Python-2.7.16 rm -rf Python-2.7.18
temporary: temporary:
tar xf Python-2.7.16.tar.xz tar xf Python-2.7.18.tar.xz
patch -Np1 -d Python-2.7.16 < Python-2.7.16-OpenSSL_1.1.1_test_fix.patch patch -Np1 -d Python-2.7.18 < Python-2.7.18-OpenSSL_1.1.1_test_fix.patch
cd Python-2.7.16 && sed -i '/#SSL/,+3 s/^#//' Modules/Setup.dist cd Python-2.7.18 && sed -i '/#SSL/,+3 s/^#//' Modules/Setup.dist
cd Python-2.7.16 && ./configure --prefix=/build/usr --enable-shared --with-system-expat --with-system-ffi --with-ensurepip=yes --enable-unicode=ucs4 cd Python-2.7.18 && ./configure --prefix=/build/usr --enable-shared --with-system-expat --with-system-ffi --with-ensurepip=yes --enable-unicode=ucs4
$(MAKE) -C Python-2.7.16 install $(MAKE) -C Python-2.7.18 install
echo "/build/usr/lib" >> /etc/ld.so.conf echo "/build/usr/lib" >> /etc/ld.so.conf
ldconfig ldconfig
rm -rf Python-2.7.16 rm -rf Python-2.7.18
clean: clean:
rm -rf /build/usr rm -rf /build/usr
......
diff -uNr Python-2.7.16/Lib/BaseHTTPServer.py Python-2.7.16-OpenSSL_1.1.1_test_fix/Lib/BaseHTTPServer.py diff -uNr Python-2.7.18/Lib/BaseHTTPServer.py Python-2.7.18-OpenSSL_1.1.1_test_fix/Lib/BaseHTTPServer.py
--- Python-2.7.16/Lib/BaseHTTPServer.py 2019-03-03 04:47:42.000000000 +1030 --- Python-2.7.18/Lib/BaseHTTPServer.py 2020-04-20 06:43:39.000000000 +0930
+++ Python-2.7.16-OpenSSL_1.1.1_test_fix/Lib/BaseHTTPServer.py 2019-09-25 03:54:53.146421649 +0930 +++ Python-2.7.18-OpenSSL_1.1.1_test_fix/Lib/BaseHTTPServer.py 2021-07-29 11:39:08.962495435 +0930
@@ -332,6 +332,12 @@ @@ -332,6 +332,12 @@
self.log_error("Request timed out: %r", e) self.log_error("Request timed out: %r", e)
self.close_connection = 1 self.close_connection = 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment