Merged update from upstream sources

This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/python3.9.git#1d2d05b30506c5758da94f1cd3860f3d58a87db0
This commit is contained in:
DistroBaker 2021-01-22 16:12:02 +00:00
parent e9bd0522f2
commit ecf5ea609f
2 changed files with 10 additions and 8 deletions

View File

@ -17,7 +17,7 @@ URL: https://www.python.org/
#global prerel ...
%global upstream_version %{general_version}%{?prerel}
Version: %{general_version}%{?prerel:~%{prerel}}
Release: 2%{?dist}
Release: 3%{?dist}
License: Python
@ -867,9 +867,13 @@ BuildPython() {
# Call the above to build each configuration.
%if %{with debug_build}
# The debug build is compiled with the lowest level of optimizations as to not optimize
# out frames. We also suppress the warnings as the default distro value of the FORTIFY_SOURCE
# option produces too many warnings when compiling at the O0 optimization level.
# See also: https://bugzilla.redhat.com/show_bug.cgi?id=1818857
BuildPython debug \
"--without-ensurepip --with-pydebug" \
"-Og"
"-O0 -Wno-cpp"
%endif # with debug_build
BuildPython optimized \
@ -1211,8 +1215,6 @@ CheckPython() {
# test_distutils
# distutils.tests.test_bdist_rpm tests fail when bootstraping the Python
# package: rpmbuild requires /usr/bin/pythonX.Y to be installed
# test_gdb on arm:
# https://bugzilla.redhat.com/show_bug.cgi?id=1846390
LD_LIBRARY_PATH=$ConfDir $ConfDir/python -m test.regrtest \
-wW --slowest -j0 --timeout=1800 \
%if %{with bootstrap}
@ -1221,9 +1223,6 @@ CheckPython() {
%ifarch %{mips64}
-x test_ctypes \
%endif
%ifarch %{arm}
-x test_gdb \
%endif
echo FINISHED: CHECKING OF PYTHON FOR CONFIGURATION: $ConfName
@ -1754,6 +1753,9 @@ CheckPython optimized
# ======================================================
%changelog
* Wed Jan 20 2021 Charalampos Stratakis <cstratak@redhat.com> - 3.9.1-3
- Compile the debug build with -O0 instead of -Og (rhbz#1818857)
* Wed Jan 20 2021 Miro Hrončok <mhroncok@redhat.com> - 3.9.1-2
- Security fix for CVE-2021-3177

View File

@ -30,7 +30,7 @@
run: VERSION=3.9 PYTHON=python3-debug X="-x test_wsgiref" ./parallel.sh
- debugflags:
dir: python/flags
run: python3-debug ./assertflags.py -Og
run: python3-debug ./assertflags.py -O0
- marshalparser:
dir: python/marshalparser
run: VERSION=3.9 SAMPLE=10 test_marshalparser_compatibility.sh