Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python36 for openSUSE:Factory checked in at 2021-12-01 20:47:00 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python36 (Old) and /work/SRC/openSUSE:Factory/.python36.new.31177 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python36" Wed Dec 1 20:47:00 2021 rev:24 rq:934644 version:3.6.15 Changes: -------- --- /work/SRC/openSUSE:Factory/python36/python36.changes 2021-10-30 23:14:31.491093522 +0200 +++ /work/SRC/openSUSE:Factory/.python36.new.31177/python36.changes 2021-12-02 02:25:16.220604250 +0100 @@ -1,0 +2,22 @@ +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 + +------------------------------------------------------------------- +Sat Nov 27 09:58:46 UTC 2021 - Dirk M??ller <dmuel...@suse.com> + +- build against openssl 1.1 as it is incompatible with openssl 3.0+ (bsc#1190566) + +------------------------------------------------------------------- +Wed Nov 3 09:50:39 UTC 2021 - Andreas Schwab <sch...@suse.de> + +- 0001-allow-for-reproducible-builds-of-python-packages.patch: ignore + permission error when changing the mtime of the source file in presence + of SOURCE_DATE_EPOCH + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python36.spec ++++++ --- /var/tmp/diff_new_pack.Z52qBD/_old 2021-12-02 02:25:17.144601026 +0100 +++ /var/tmp/diff_new_pack.Z52qBD/_new 2021-12-02 02:25:17.148601013 +0100 @@ -176,20 +176,20 @@ BuildRequires: automake BuildRequires: fdupes BuildRequires: gmp-devel +BuildRequires: libopenssl-1_1-devel BuildRequires: lzma-devel BuildRequires: netcfg -BuildRequires: openssl-devel BuildRequires: pkgconfig -%if 0%{?suse_version} >= 1550 -# The provider for python(abi) is in rpm-build-python -BuildRequires: rpm-build-python -%endif BuildRequires: xz BuildRequires: pkgconfig(bzip2) BuildRequires: pkgconfig(expat) BuildRequires: pkgconfig(libffi) BuildRequires: pkgconfig(zlib) #!BuildIgnore: gdk-pixbuf-loader-rsvg +%if 0%{?suse_version} >= 1550 +# The provider for python(abi) is in rpm-build-python +BuildRequires: rpm-build-python +%endif %if 0%{?suse_version} >= 1500 BuildRequires: pkgconfig(libnsl) BuildRequires: pkgconfig(libtirpc) @@ -450,6 +450,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 @@ -458,6 +459,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 ++++++ 0001-allow-for-reproducible-builds-of-python-packages.patch ++++++ --- /var/tmp/diff_new_pack.Z52qBD/_old 2021-12-02 02:25:17.172600928 +0100 +++ /var/tmp/diff_new_pack.Z52qBD/_new 2021-12-02 02:25:17.176600915 +0100 @@ -21,21 +21,21 @@ Lib/py_compile.py | 4 ++++ 1 file changed, 4 insertions(+) -diff --git a/Lib/py_compile.py b/Lib/py_compile.py -index 11c5b50..62dcdc7 100644 ---- a/Lib/py_compile.py -+++ b/Lib/py_compile.py -@@ -137,6 +137,10 @@ def compile(file, cfile=None, dfile=None, doraise=False, optimize=-1): +Index: Python-3.6.15/Lib/py_compile.py +=================================================================== +--- Python-3.6.15.orig/Lib/py_compile.py ++++ Python-3.6.15/Lib/py_compile.py +@@ -137,6 +137,13 @@ def compile(file, cfile=None, dfile=None except FileExistsError: pass source_stats = loader.path_stats(file) + sde = os.environ.get('SOURCE_DATE_EPOCH') + if sde and source_stats['mtime'] > int(sde): + source_stats['mtime'] = int(sde) -+ os.utime(file, (source_stats['mtime'], source_stats['mtime'])) ++ try: ++ os.utime(file, (source_stats['mtime'], source_stats['mtime'])) ++ except PermissionError: ++ pass bytecode = importlib._bootstrap_external._code_to_bytecode( code, source_stats['mtime'], source_stats['size']) mode = importlib._bootstrap_external._calc_mode(file) --- -2.10.2 -