The package rpms/python35.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/python35.git/commit/?id=d6970b119....
Change:
+%ifarch %{valgrind_arches}
Thanks.
Full change:
============
commit 8d915a2d0100ebe959402a01b0d0e1f3462442f6
Author: Miro Hronok <miro(a)hroncok.cz>
Date: Sun Aug 5 13:47:25 2018 +0200
Rebased to version 3.5.6
diff --git a/.gitignore b/.gitignore
index 518dbba..8e6e1ec 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@ Python-3.5.1.tar.xz
/Python-3.5.3.tar.xz
/Python-3.5.4.tar.xz
/Python-3.5.5.tar.xz
+/Python-3.5.6.tar.xz
diff --git a/python35.spec b/python35.spec
index 3ee1fdf..c399b38 100644
--- a/python35.spec
+++ b/python35.spec
@@ -81,8 +81,8 @@
# ==================
Summary: Version 3.5 of the Python programming language
Name: python%{pyshortver}
-Version: %{pybasever}.5
-Release: 3%{?dist}
+Version: %{pybasever}.6
+Release: 1%{?dist}
License: Python
Group: Development/Languages
@@ -1026,6 +1026,9 @@ CheckPython optimized
# ======================================================
%changelog
+* Sun Aug 05 2018 Miro Hronok <mhroncok(a)redhat.com> - 3.5.6-1
+- Rebased to version 3.5.6
+
* Sat Jul 14 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 3.5.5-3
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
diff --git a/sources b/sources
index c3f630d..d535e31 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (Python-3.5.5.tar.xz) =
c9056baee6a2d1fe7f14b1f310db95b78e8972766d086f8ae10954f38f8182956171580bde01ddadebe897f2545a6fbe47669ca3e4887026ac1fae5ee9197f22
+SHA512 (Python-3.5.6.tar.xz) =
1ccf287dbe8594eb577c1197c19d882fbe235c72f4c01cda23258f2add8a93e639b41ebaf556508b867cbe1b4c1fc4e1cf457d70b98cf7a1502013660a7e0ac1
commit d6970b11983eac78d5b9b21054b411fd9fe1cdc8
Author: Miro Hronok <miro(a)hroncok.cz>
Date: Sun Aug 5 13:45:58 2018 +0200
Use the %{valgrind_arches} macro instead of hardcoding unsupported arches
diff --git a/python35.spec b/python35.spec
index 9768731..3ee1fdf 100644
--- a/python35.spec
+++ b/python35.spec
@@ -57,7 +57,7 @@
%global with_systemtap 1
# some arches don't have valgrind so we need to disable its support on them
-%ifnarch s390 %{mips}
+%ifarch %{valgrind_arches}
%global with_valgrind 1
%else
%global with_valgrind 0
commit 2d6a14f1555412e0e99e269f9be5bb82bc6b9b5f
Author: Fedora Release Engineering <releng(a)fedoraproject.org>
Date: Sat Jul 14 02:54:07 2018 +0000
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng(a)fedoraproject.org>
diff --git a/python35.spec b/python35.spec
index 9d3e7fa..9768731 100644
--- a/python35.spec
+++ b/python35.spec
@@ -82,7 +82,7 @@
Summary: Version 3.5 of the Python programming language
Name: python%{pyshortver}
Version: %{pybasever}.5
-Release: 2%{?dist}
+Release: 3%{?dist}
License: Python
Group: Development/Languages
@@ -1026,6 +1026,9 @@ CheckPython optimized
# ======================================================
%changelog
+* Sat Jul 14 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 3.5.5-3
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
+
* Mon Apr 23 2018 Miro Hronok <mhroncok(a)redhat.com> - 3.5.5-2
- Fix multiprocessing regression on newer glibcs
- Enable test_multiprocessing_fork(server) and _spawn again
commit cb22176a7b8d2a23a83f17081f64c707d3b8fc1f
Author: Jason Tibbitts <tibbs(a)math.uh.edu>
Date: Tue Jul 10 01:55:19 2018 -0500
Remove needless use of %defattr
diff --git a/python35.spec b/python35.spec
index b95fdc2..9d3e7fa 100644
--- a/python35.spec
+++ b/python35.spec
@@ -961,7 +961,6 @@ CheckPython optimized
%files
-%defattr(-, root, root)
%doc LICENSE README
%doc Misc/README.valgrind Misc/valgrind-python.supp Misc/gdbinit
commit d5dc5b222f28272d209ad68b480cafdc9f894363
Author: Miro Hronok <miro(a)hroncok.cz>
Date: Fri Apr 27 22:20:32 2018 +0200
Fix shebangs of the GDB hooks
Also, use -p (preserve timestamp) with pathfix.py.
Resolves
https://bugzilla.redhat.com/show_bug.cgi?id=1560295
diff --git a/python35.spec b/python35.spec
index 2ef06f1..b95fdc2 100644
--- a/python35.spec
+++ b/python35.spec
@@ -748,8 +748,9 @@ sed -i -e "s/'pyconfig.h'/'%{_pyconfig_h}'/"
\
# Switch all shebangs to refer to the specific Python version.
LD_LIBRARY_PATH=./build/optimized ./build/optimized/python \
Tools/scripts/pathfix.py \
- -i "%{_bindir}/python%{pybasever}" \
- %{buildroot}
+ -i "%{_bindir}/python%{pybasever}" -p \
+ %{buildroot} \
+ %{?with_gdb_hooks:%{buildroot}$DirHoldingGdbPy/*.py}
# Remove shebang lines from .py files that aren't executable, and
# remove executability from .py files that don't have a shebang line:
commit 82af650dd4692480547117736be88c51db1e5109
Author: Petr Viktorin <pviktori(a)redhat.com>
Date: Tue Aug 22 14:24:22 2017 +0200
Use configuration macro instead of workaround to disable byte-compilation
diff --git a/python35.spec b/python35.spec
index c74d5c3..2ef06f1 100644
--- a/python35.spec
+++ b/python35.spec
@@ -71,26 +71,10 @@
# Turn this to 0 to turn off the "check" phase:
%global run_selftest_suite 1
-# We want to byte-compile the .py files within the packages using the new
-# python3 binary.
-#
-# Unfortunately, rpmbuild's infrastructure requires us to jump through some
-# hoops to avoid byte-compiling with the system python 2 version:
-# /usr/lib/rpm/redhat/macros sets up build policy that (amongst other things)
-# defines __os_install_post. In particular, "brp-python-bytecompile" is
-# invoked without an argument thus using the wrong version of python
-# (/usr/bin/python, rather than the freshly built python), thus leading to
-# numerous syntax errors, and incorrect magic numbers in the .pyc files. We
-# thus override __os_install_post to avoid invoking this script:
-%global __os_install_post /usr/lib/rpm/brp-compress \
- %{!?__debug_package:/usr/lib/rpm/brp-strip %{__strip}} \
- /usr/lib/rpm/brp-strip-static-archive %{__strip} \
- /usr/lib/rpm/brp-strip-comment-note %{__strip} %{__objdump} \
- /usr/lib/rpm/brp-python-hardlink
-# to remove the invocation of brp-python-bytecompile, whilst keeping the
-# invocation of brp-python-hardlink (since this should still work for python3
-# pyc/pyo files)
-
+# Disable automatic bytecompilation. The python3 binary is not yet be
+# available in /usr/bin when Python is built. Also, the bytecompilation fails
+# on files that test invalid syntax.
+%undefine py_auto_byte_compile
# ==================
# Top-level metadata
commit 712f3838b8cc1cb1aa6816143275d749103626ef
Author: Miro Hronok <miro(a)hroncok.cz>
Date: Mon Apr 23 21:13:08 2018 +0200
Fix multiprocessing regression on newer glibcs
Enable test_multiprocessing_fork(server) and _spawn again
Resolves: rhbz#1569933
diff --git a/00302-fix-multiprocessing-regression-on-newer-glibcs.patch
b/00302-fix-multiprocessing-regression-on-newer-glibcs.patch
new file mode 100644
index 0000000..965792a
--- /dev/null
+++ b/00302-fix-multiprocessing-regression-on-newer-glibcs.patch
@@ -0,0 +1,55 @@
+From a3febe3cba14b89885f42ca2f0224096a52885f6 Mon Sep 17 00:00:00 2001
+From: Antoine Pitrou <antoine(a)python.org>
+Date: Mon, 23 Apr 2018 13:19:42 +0200
+Subject: [PATCH] bpo-33329: Fix multiprocessing regression on newer glibcs
+
+Starting with glibc 2.27.9000-xxx, sigaddset() can return EINVAL for some
+reserved signal numbers between 1 and NSIG. The `range(1, NSIG)` idiom
+is commonly used to select all signals for blocking with `pthread_sigmask`.
+So we ignore the sigaddset() return value until we expose sigfillset()
+to provide a better idiom.
+---
+ .../next/Library/2018-04-23-13-21-39.bpo-33329.lQ-Eod.rst | 1 +
+ Modules/signalmodule.c | 14 ++++++++------
+ 2 files changed, 9 insertions(+), 6 deletions(-)
+ create mode 100644 Misc/NEWS.d/next/Library/2018-04-23-13-21-39.bpo-33329.lQ-Eod.rst
+
+diff --git a/Misc/NEWS.d/next/Library/2018-04-23-13-21-39.bpo-33329.lQ-Eod.rst
b/Misc/NEWS.d/next/Library/2018-04-23-13-21-39.bpo-33329.lQ-Eod.rst
+new file mode 100644
+index 000000000000..d1a4e56d04b9
+--- /dev/null
++++ b/Misc/NEWS.d/next/Library/2018-04-23-13-21-39.bpo-33329.lQ-Eod.rst
+@@ -0,0 +1 @@
++Fix multiprocessing regression on newer glibcs
+diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c
+index 791616014384..35fd87e2d1e7 100644
+--- a/Modules/signalmodule.c
++++ b/Modules/signalmodule.c
+@@ -819,7 +819,6 @@ iterable_to_sigset(PyObject *iterable, sigset_t *mask)
+ int result = -1;
+ PyObject *iterator, *item;
+ long signum;
+- int err;
+
+ sigemptyset(mask);
+
+@@ -841,11 +840,14 @@ iterable_to_sigset(PyObject *iterable, sigset_t *mask)
+ Py_DECREF(item);
+ if (signum == -1 && PyErr_Occurred())
+ goto error;
+- if (0 < signum && signum < NSIG)
+- err = sigaddset(mask, (int)signum);
+- else
+- err = 1;
+- if (err) {
++ if (0 < signum && signum < NSIG) {
++ /* bpo-33329: ignore sigaddset() return value as it can fail
++ * for some reserved signals, but we want the `range(1, NSIG)`
++ * idiom to allow selecting all valid signals.
++ */
++ (void) sigaddset(mask, (int)signum);
++ }
++ else {
+ PyErr_Format(PyExc_ValueError,
+ "signal number %ld out of range", signum);
+ goto error;
diff --git a/python35.spec b/python35.spec
index 3c8bba9..c74d5c3 100644
--- a/python35.spec
+++ b/python35.spec
@@ -98,7 +98,7 @@
Summary: Version 3.5 of the Python programming language
Name: python%{pyshortver}
Version: %{pybasever}.5
-Release: 1%{?dist}
+Release: 2%{?dist}
License: Python
Group: Development/Languages
@@ -393,6 +393,12 @@ Patch273: 00273-skip-float-test.patch
# Fixed upstream:
https://bugs.python.org/issue32635
Patch290: 00290-cryptmodule-Include-crypt.h-for-declaration-of-crypt.patch
+# 00302 #
+# Fix multiprocessing regression on newer glibcs
+# See:
https://bugzilla.redhat.com/show_bug.cgi?id=1569933
+# and:
https://bugs.python.org/issue33329
+Patch302: 00302-fix-multiprocessing-regression-on-newer-glibcs.patch
+
# (New patches go here ^^^)
#
# When adding new patches to "python" and "python3" in Fedora, EL,
etc.,
@@ -507,6 +513,7 @@ rm -r Modules/zlib || exit 1
%patch270 -p1
%patch273 -p1
%patch290 -p1
+%patch302 -p1
# Currently (2010-01-15),
http://docs.python.org/library is for 2.6, and there
# are many differences between 2.6 and the Python 3 library.
@@ -943,12 +950,6 @@ CheckPython() {
%ifarch %{power64} s390 s390x armv7hl aarch64 %{mips}
-x test_gdb \
%endif
- -x test_multiprocessing_fork \
- -x test_multiprocessing_forkserver \
- -x test_multiprocessing_spawn \
- %ifnarch %{ix86} x86_64
- -x test_rapid_restart \
- %endif
echo FINISHED: CHECKING OF PYTHON FOR CONFIGURATION: $ConfName
@@ -1041,6 +1042,11 @@ CheckPython optimized
# ======================================================
%changelog
+* Mon Apr 23 2018 Miro Hronok <mhroncok(a)redhat.com> - 3.5.5-2
+- Fix multiprocessing regression on newer glibcs
+- Enable test_multiprocessing_fork(server) and _spawn again
+Resolves: rhbz#1569933
+
* Fri Apr 20 2018 Miro Hronok <mhroncok(a)redhat.com> - 3.5.5-1
- Rebased to version 3.5.5
- Do not ship the Tools directory
commit ee04c1b4b6fb85ef84f01e865978d1a53bb7058c
Author: Miro Hronok <miro(a)hroncok.cz>
Date: Sat Apr 21 10:20:30 2018 +0200
Skip test_buffer on ppc64le
diff --git a/python35.spec b/python35.spec
index 54d18df..3c8bba9 100644
--- a/python35.spec
+++ b/python35.spec
@@ -937,6 +937,9 @@ CheckPython() {
%ifarch %{mips64}
-x test_ctypes \
%endif
+ %ifarch ppc64le
+ -x test_buffer \
+ %endif
%ifarch %{power64} s390 s390x armv7hl aarch64 %{mips}
-x test_gdb \
%endif
@@ -1043,6 +1046,7 @@ CheckPython optimized
- Do not ship the Tools directory
- Skip test_multiprocessing_fork(server) and _spawn for now
- Skip test_rapid_restart on non x86 arches
+- Skip test_buffer on ppc64le
* Fri Feb 09 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 3.5.4-4
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
commit 3562e2af49a6ea73b8125167cc88e1f59cc843ac
Author: Miro Hronok <miro(a)hroncok.cz>
Date: Fri Apr 20 16:35:05 2018 +0200
Skip test_rapid_restart on non x86 arches
diff --git a/python35.spec b/python35.spec
index 9ad7f3e..54d18df 100644
--- a/python35.spec
+++ b/python35.spec
@@ -943,6 +943,9 @@ CheckPython() {
-x test_multiprocessing_fork \
-x test_multiprocessing_forkserver \
-x test_multiprocessing_spawn \
+ %ifnarch %{ix86} x86_64
+ -x test_rapid_restart \
+ %endif
echo FINISHED: CHECKING OF PYTHON FOR CONFIGURATION: $ConfName
@@ -1039,6 +1042,7 @@ CheckPython optimized
- Rebased to version 3.5.5
- Do not ship the Tools directory
- Skip test_multiprocessing_fork(server) and _spawn for now
+- Skip test_rapid_restart on non x86 arches
* Fri Feb 09 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 3.5.4-4
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
commit 05356b4f0619929ae9f01b38a2a08bec35b3d69f
Author: Miro Hronok <miro(a)hroncok.cz>
Date: Fri Apr 20 12:36:59 2018 +0200
Skip test_multiprocessing_fork(server) and _spawn for now
diff --git a/python35.spec b/python35.spec
index 40cc08a..9ad7f3e 100644
--- a/python35.spec
+++ b/python35.spec
@@ -938,8 +938,11 @@ CheckPython() {
-x test_ctypes \
%endif
%ifarch %{power64} s390 s390x armv7hl aarch64 %{mips}
- -x test_gdb
+ -x test_gdb \
%endif
+ -x test_multiprocessing_fork \
+ -x test_multiprocessing_forkserver \
+ -x test_multiprocessing_spawn \
echo FINISHED: CHECKING OF PYTHON FOR CONFIGURATION: $ConfName
@@ -1032,9 +1035,10 @@ CheckPython optimized
# ======================================================
%changelog
-* Tue Mar 27 2018 Miro Hronok <mhroncok(a)redhat.com> - 3.5.5-1
+* Fri Apr 20 2018 Miro Hronok <mhroncok(a)redhat.com> - 3.5.5-1
- Rebased to version 3.5.5
- Do not ship the Tools directory
+- Skip test_multiprocessing_fork(server) and _spawn for now
* Fri Feb 09 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 3.5.4-4
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild