Commit b6df56de authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Initial commit

parents
target all: LC_ALL=$(SYSTEM_LOCALE)
all:
tar xf Python-2.7.15.tar.xz
patch -Np1 -d Python-2.7.15 < Python-2.7.15-test_io.patch
cd Python-2.7.15 && sed -i '/#SSL/,+3 s/^#//' Modules/Setup.dist
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.15
if [[ ! "$(BUILD_OPTIONS)" =~ no-tests ]] ; then \
$(MAKE) -C Python-2.7.15 test ; \
fi
$(MAKE) -C Python-2.7.15 install
chmod -v 755 /usr/lib/libpython2.7.so.1.0
rm -rf Python-2.7.15
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)
bin
/usr/bin/.*
headers
/usr/include/.*
man
/usr/share/man/.*
doc
/usr/lib/.*/ctypes/macholib/README\.ctypes
/usr/lib/.*/test/data/README
/usr/lib/python2.*/test/ieee754\.txt
/usr/lib/python2.*/test/exception_hierarchy\.txt
/usr/lib/python2.*/lib-tk/test/README
/usr/lib/.*/lib2to3/.*\.txt
/usr/lib/.*/lib2to3/tests/data/README
/usr/lib/.*/idlelib/.*\.txt
/usr/lib/.*/idlelib/ChangeLog
/usr/lib/.*/idlelib/help\.html
/usr/lib/python2.*/site-packages/README
/usr/lib/python2.*/distutils/README
/usr/lib/python2.*/pdb\.doc
/usr/lib/python2../LICENSE.txt
pkg
/usr/lib/pkgconfig/.*
bytecode
/usr/lib/python2.*/.*\.py[oc]
lib
/usr/lib/python2.*/.*\.py
/usr/lib/python2.*/.*\.so
/usr/lib/python2.*/ctypes/macholib/fetch_macholib.*
/usr/lib/python2.*/lib2to3/.*\.pickle
/usr/lib/python2.*/idlelib/.*\.def
/usr/lib/python2.*/idlelib/.*\.pyw
/usr/lib/python2.*/idlelib/Icons/.*\.(gif|ico|icns|png)
/usr/lib/python2.*/idlelib/idle\.bat
/usr/lib/python2.*/site-packages/setuptools/.*\.(exe|tmpl|xml)
/usr/lib/python2.*/site-packages/pip/_vendor/distlib/.*\.exe
/usr/lib/python2.*/site-packages/pip/_vendor/distlib/_backport/sysconfig\.cfg
/usr/lib/python2.*/site-packages/pip/_vendor/certifi/cacert\.pem
/usr/lib/python2.*/site-packages/pip/_vendor/requests/cacert\.pem
/usr/lib/python2.*/distutils/command/.*\.exe
/usr/lib/python2.*/distutils/command/command_template
/usr/lib/python2.*/ensurepip/_bundled/.*\.whl
/usr/lib/python2.*/plat-linux2/regen
/usr/lib/python2.*/config/.*
/usr/lib/lib.*
tests
/usr/lib/python2.*/email/test/data/.*\.(txt|gif|au)
/usr/lib/python2.*/test/.*\.pem
/usr/lib/python2.*/test/revocation\.crl
/usr/lib/python2.*/test/cfgparser\.(1|2|3)
/usr/lib/python2.*/test/math_testcases.txt
/usr/lib/python2.*/test/cmath_testcases.txt
/usr/lib/python2.*/test/formatfloat_testcases.txt
/usr/lib/python2.*/test/imghdrdata/.*\.(pgm|xbm|ras|ppm|png|webp|tiff|sgi|pbm|jpg|bmp|exr|gif)
/usr/lib/python2.*/test/tokenize_tests.*\.txt
/usr/lib/python2.*/test/xmltestdata/.*\.xml
/usr/lib/python2.*/test/xmltestdata/.*\.xml\.out
/usr/lib/python2.*/test/test_doctest.*\.txt
/usr/lib/python2.*/test/rand.*\.pck
/usr/lib/python2.*/test/capath/.*\.0
/usr/lib/python2.*/test/185test\.db
/usr/lib/python2.*/test/testtar.tar
/usr/lib/python2.*/test/decimaltestdata/.*\.decTest
/usr/lib/python2.*/test/.*\.uue
/usr/lib/python2.*/test/test_difflib_expect\.html
/usr/lib/python2.*/test/audiodata/.*\.(wav|aiff|au|aifc)
/usr/lib/python2.*/test/audiotest\.au
/usr/lib/python2.*/test/floating_points.txt
/usr/lib/python2.*/test/sgml_input.html
/usr/lib/python2.*/test/cjkencodings/.*\.txt
/usr/lib/python2.*/test/zipdir\.zip
/usr/lib/python2.*/test/Sine-1000Hz-300ms\.aif
/usr/lib/python2.*/test/empty\.vbs
/usr/lib/python2.*/distutils/tests/xxmodule.c
/usr/lib/python2.*/distutils/tests/Setup.sample
egg-info
/usr/lib/python2.*/.*\.egg-info
dist-info
/usr/lib/python2.*/site-packages/.*\.dist-info/.*
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