Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python38 for openSUSE:Factory checked in at 2021-12-01 20:46:08 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python38 (Old) and /work/SRC/openSUSE:Factory/.python38.new.31177 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python38" Wed Dec 1 20:46:08 2021 rev:20 rq:934639 version:3.8.12 Changes: -------- --- /work/SRC/openSUSE:Factory/python38/python38.changes 2021-10-25 15:16:50.957653720 +0200 +++ /work/SRC/openSUSE:Factory/.python38.new.31177/python38.changes 2021-12-02 02:25:17.472599882 +0100 @@ -1,0 +2,10 @@ +Mon Nov 29 00:17:07 UTC 2021 - Matej Cepl <mc...@suse.com> + +- Remove shebangs from from python-base libraries in _libdir + (bsc#1193179). +- Readjust patches: + - bpo-31046_ensurepip_honours_prefix.patch + - decimal.patch + - python-3.3.0b1-fix_date_time_compiler.patch + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python38.spec ++++++ --- /var/tmp/diff_new_pack.8802Zr/_old 2021-12-02 02:25:18.188597384 +0100 +++ /var/tmp/diff_new_pack.8802Zr/_new 2021-12-02 02:25:18.192597370 +0100 @@ -123,13 +123,13 @@ # PATCH-FEATURE-UPSTREAM SUSE-FEDORA-multilib.patch bsc#[0-9]+ mc...@suse.com # Add support for platlib variable Patch03: SUSE-FEDORA-multilib.patch -# PATCH-FEATURE-UPSTREAM distutils-reproducible-compile.patch gh#python/cpython#8057 mc...@suse.com -# Improve reproduceability -Patch06: distutils-reproducible-compile.patch # PATCH-FEATURE-UPSTREAM decimal-3.8.patch bsc#1189356 mc...@suse.com # fix building with mpdecimal # https://www.bytereef.org/contrib/decimal-3.8.diff Patch05: decimal-3.8.patch +# PATCH-FEATURE-UPSTREAM distutils-reproducible-compile.patch gh#python/cpython#8057 mc...@suse.com +# Improve reproduceability +Patch06: distutils-reproducible-compile.patch # support finding packages in /usr/local, install to /usr/local by default Patch07: python-3.3.0b1-localpath.patch # replace DATE, TIME and COMPILER by fixed definitions to aid reproducible builds @@ -426,6 +426,7 @@ # drop Autoconf version requirement sed -i 's/^AC_PREREQ/dnl AC_PREREQ/' configure.ac +%if %{primary_interpreter} # fix shebangs - convert /usr/local/bin/python and /usr/bin/env/python to /usr/bin/python3 for dir in Lib Tools; do # find *.py, filter to files that contain bad shebangs @@ -434,6 +435,13 @@ | xargs -0 grep -lE '^#! *(/''usr/.*bin/(env +)?)?python' \ | xargs sed -r -i -e '1s@^#![[:space:]]*(/''usr/(local/)?bin/(env +)?)?python([0-9]+(\.[0-9]+)?)?@#!%{_bindir}/python3@' done +%else +# For non-primary Python, just don't bother (bsc#1193179) and remove all +# those shebangs +for dir in Lib Tools; do + find $dir -name '*.py' -type f -exec sed -i '1{/^#!.*python/ d}' '{}' \; +done +%endif # drop in-tree libffi and expat rm -r Modules/_ctypes/libffi* Modules/_ctypes/darwin