Commit 9435180d authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Updated python to 2.7.16

parent b6df56de
target all: LC_ALL=$(SYSTEM_LOCALE) target all: LC_ALL=$(SYSTEM_LOCALE)
all: all:
tar xf Python-2.7.15.tar.xz tar xf Python-2.7.16.tar.xz
patch -Np1 -d Python-2.7.15 < Python-2.7.15-test_io.patch cd Python-2.7.16 && sed -i '/#SSL/,+3 s/^#//' Modules/Setup.dist
cd Python-2.7.15 && 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.15 && ./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.15
if [[ ! "$(BUILD_OPTIONS)" =~ no-tests ]] ; then \ if [[ ! "$(BUILD_OPTIONS)" =~ no-tests ]] ; then \
$(MAKE) -C Python-2.7.15 test ; \ $(MAKE) -C Python-2.7.16 test ; \
fi fi
$(MAKE) -C Python-2.7.15 install $(MAKE) -C Python-2.7.16 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.15 rm -rf Python-2.7.16
diff -uNr Python-2.7.15/Lib/test/test_io.py Python-2.7.15-test_io/Lib/test/test_io.py
--- Python-2.7.15/Lib/test/test_io.py 2018-04-30 08:17:33.000000000 +0930
+++ Python-2.7.15-test_io/Lib/test/test_io.py 2018-12-19 15:19:16.942402617 +1030
@@ -3146,7 +3146,7 @@
try:
wio = self.io.open(w, **fdopen_kwargs)
t.start()
- signal.alarm(1)
+ signal.alarm(2)
# Fill the pipe enough that the write will be blocking.
# It will be interrupted by the timer armed above. Since the
# other thread has read one byte, the low-level write will
@@ -3192,7 +3192,7 @@
r, w = os.pipe()
wio = self.io.open(w, **fdopen_kwargs)
try:
- signal.alarm(1)
+ signal.alarm(2)
# Either the reentrant call to wio.write() fails with RuntimeError,
# or the signal handler raises ZeroDivisionError.
with self.assertRaises((ZeroDivisionError, RuntimeError)) as cm:
@@ -3227,7 +3227,7 @@
try:
rio = self.io.open(r, **fdopen_kwargs)
os.write(w, b"foo")
- signal.alarm(1)
+ signal.alarm(2)
# Expected behaviour:
# - first raw read() returns partial b"foo"
# - second raw read() returns EINTR
@@ -3275,13 +3275,13 @@
t.daemon = True
def alarm1(sig, frame):
signal.signal(signal.SIGALRM, alarm2)
- signal.alarm(1)
+ signal.alarm(2)
def alarm2(sig, frame):
t.start()
signal.signal(signal.SIGALRM, alarm1)
try:
wio = self.io.open(w, **fdopen_kwargs)
- signal.alarm(1)
+ signal.alarm(2)
# Expected behaviour:
# - first raw write() is partial (because of the limited pipe buffer
# and the first alarm)
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