Hello community,

here is the log from the commit of package python for openSUSE:Factory checked 
in at 2017-04-19 18:03:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python (Old)
 and      /work/SRC/openSUSE:Factory/.python.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python"

Wed Apr 19 18:03:38 2017 rev:121 rq:482570 version:2.7.13

Changes:
--------
--- /work/SRC/openSUSE:Factory/python/python-base.changes       2017-01-11 
11:56:06.339095563 +0100
+++ /work/SRC/openSUSE:Factory/.python.new/python-base.changes  2017-04-19 
18:03:40.394547310 +0200
@@ -1,0 +2,7 @@
+Fri Feb 24 17:08:25 UTC 2017 - [email protected]
+
+- Add reproducible.patch to allow reproducible builds of various
+  python packages like python-amqp
+  Upstream: https://github.com/python/cpython/pull/296
+
+-------------------------------------------------------------------
python.changes: same change

New:
----
  reproducible.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-base.spec ++++++
--- /var/tmp/diff_new_pack.NdGbwU/_old  2017-04-19 18:03:42.434258783 +0200
+++ /var/tmp/diff_new_pack.NdGbwU/_new  2017-04-19 18:03:42.438258218 +0200
@@ -56,6 +56,8 @@
 Patch35:        python-ncurses-6.0-accessors.patch
 Patch36:        python-2.7.13-overflow_check.patch
 Patch37:        python-2.7.12-makeopcode.patch
+# PATCH-FIX-UPSTREAM [email protected] -- allow python packages to build 
reproducibly
+Patch38:        reproducible.patch
 # COMMON-PATCH-END
 %define         python_version    %(echo %{tarversion} | head -c 3)
 BuildRequires:  automake
@@ -156,6 +158,7 @@
 %patch35 -p1
 %patch36 -p1
 %patch37 -p1
+%patch38 -p1
 
 # drop Autoconf version requirement
 sed -i 's/^version_required/dnl version_required/' configure.ac

++++++ python-doc.spec ++++++
--- /var/tmp/diff_new_pack.NdGbwU/_old  2017-04-19 18:03:42.470253691 +0200
+++ /var/tmp/diff_new_pack.NdGbwU/_new  2017-04-19 18:03:42.470253691 +0200
@@ -57,6 +57,8 @@
 Patch35:        python-ncurses-6.0-accessors.patch
 Patch36:        python-2.7.13-overflow_check.patch
 Patch37:        python-2.7.12-makeopcode.patch
+# PATCH-FIX-UPSTREAM [email protected] -- allow python packages to build 
reproducibly
+Patch38:        reproducible.patch
 # COMMON-PATCH-END
 Provides:       pyth_doc
 Provides:       pyth_ps
@@ -107,6 +109,7 @@
 %patch35 -p1
 %patch36 -p1
 %patch37 -p1
+%patch38 -p1
 
 # drop Autoconf version requirement
 sed -i 's/^version_required/dnl version_required/' configure.ac

++++++ python.spec ++++++
--- /var/tmp/diff_new_pack.NdGbwU/_old  2017-04-19 18:03:42.498249731 +0200
+++ /var/tmp/diff_new_pack.NdGbwU/_new  2017-04-19 18:03:42.502249166 +0200
@@ -62,6 +62,8 @@
 Patch35:        python-ncurses-6.0-accessors.patch
 Patch36:        python-2.7.13-overflow_check.patch
 Patch37:        python-2.7.12-makeopcode.patch
+# PATCH-FIX-UPSTREAM [email protected] -- allow python packages to build 
reproducibly
+Patch38:        reproducible.patch
 # COMMON-PATCH-END
 BuildRequires:  automake
 BuildRequires:  db-devel
@@ -212,6 +214,7 @@
 %patch35 -p1
 %patch36 -p1
 %patch37 -p1
+%patch38 -p1
 
 # drop Autoconf version requirement
 sed -i 's/^version_required/dnl version_required/' configure.ac



++++++ reproducible.patch ++++++
Index: Python-2.7.13/Lib/py_compile.py
===================================================================
--- Python-2.7.13.orig/Lib/py_compile.py
+++ Python-2.7.13/Lib/py_compile.py
@@ -108,6 +108,10 @@ def compile(file, cfile=None, dfile=None
             timestamp = long(os.fstat(f.fileno()).st_mtime)
         except AttributeError:
             timestamp = long(os.stat(file).st_mtime)
+        sde = os.environ.get('SOURCE_DATE_EPOCH')
+        if sde and timestamp > int(sde):
+            timestamp = int(sde)
+            os.utime(file, (timestamp, timestamp))
         codestring = f.read()
     try:
         codeobject = __builtin__.compile(codestring, dfile or file,'exec')

Reply via email to