Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pymol for openSUSE:Factory 
checked in at 2024-11-13 15:28:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pymol (Old)
 and      /work/SRC/openSUSE:Factory/.python-pymol.new.2017 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pymol"

Wed Nov 13 15:28:52 2024 rev:14 rq:1223790 version:3.0.0+git.1725549602.9d3061c

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pymol/python-pymol.changes        
2024-10-12 13:35:55.157641457 +0200
+++ /work/SRC/openSUSE:Factory/.python-pymol.new.2017/python-pymol.changes      
2024-11-13 15:29:25.380123593 +0100
@@ -1,0 +2,6 @@
+Tue Nov 12 14:18:22 UTC 2024 - Bernhard Wiedemann <bwiedem...@suse.com>
+
+- Add reproducible.patch to normalize build date (boo#1047218)
+- Remove no-build-date.patch
+
+-------------------------------------------------------------------

Old:
----
  no-build-date.patch

New:
----
  reproducible.patch

BETA DEBUG BEGIN:
  Old:- Add reproducible.patch to normalize build date (boo#1047218)
- Remove no-build-date.patch
BETA DEBUG END:

BETA DEBUG BEGIN:
  New:
- Add reproducible.patch to normalize build date (boo#1047218)
- Remove no-build-date.patch
BETA DEBUG END:

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

Other differences:
------------------
++++++ python-pymol.spec ++++++
--- /var/tmp/diff_new_pack.mNAJw6/_old  2024-11-13 15:29:26.164156341 +0100
+++ /var/tmp/diff_new_pack.mNAJw6/_new  2024-11-13 15:29:26.168156508 +0100
@@ -29,8 +29,7 @@
 URL:            https://pymol.org/
 # Source0:        
https://github.com/schrodinger/%%{modname}/archive/v%%{version}/%%{modname}-%%{version}.tar.gz
 Source0:        %{modname}-%{version}.tar.gz
-# PATCH-FIX-OPENSUSE no-build-date.patch dh...@wustl.edu -- patch eliminates 
build date
-Patch0:         no-build-date.patch
+Patch0:         
https://github.com/schrodinger/pymol-open-source/pull/404.patch#/reproducible.patch
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module numpy-devel}
 BuildRequires:  %{python_module pip}

++++++ pymol-open-source-3.0.0+git.1725549602.9d3061c.obscpio ++++++
/work/SRC/openSUSE:Factory/python-pymol/pymol-open-source-3.0.0+git.1725549602.9d3061c.obscpio
 
/work/SRC/openSUSE:Factory/.python-pymol.new.2017/pymol-open-source-3.0.0+git.1725549602.9d3061c.obscpio
 differ: char 2318, line 64

++++++ reproducible.patch ++++++
>From 1aa8682968dbc5df74e35fab224221a3829260f6 Mon Sep 17 00:00:00 2001
From: "Bernhard M. Wiedemann" <bwiedem...@suse.de>
Date: Sun, 20 Oct 2024 20:02:01 +0200
Subject: [PATCH] Allow to override build date with SOURCE_DATE_EPOCH

to make builds reproducible.
See https://reproducible-builds.org/ for why this is good
and https://reproducible-builds.org/specs/source-date-epoch/
for the definition of this variable.
---
 create_shadertext.py | 2 +-
 setup.py             | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/create_shadertext.py b/create_shadertext.py
index f6857087e..ea68dc22e 100644
--- a/create_shadertext.py
+++ b/create_shadertext.py
@@ -127,7 +127,7 @@ def create_buildinfo(outputdir, pymoldir='.'):
         print('''
 #define _PyMOL_BUILD_DATE %d
 #define _PYMOL_BUILD_GIT_SHA "%s"
-        ''' % (time.time(), sha), file=out)
+        ''' % (int(os.environ.get('SOURCE_DATE_EPOCH', time.time())), sha), 
file=out)
 
 if __name__ == "__main__":
     create_shadertext(*sys.argv[1:6])
diff --git a/setup.py b/setup.py
index 507dd32d0..4cec85057 100644
--- a/setup.py
+++ b/setup.py
@@ -168,7 +168,7 @@ def create_buildinfo(outputdir, pymoldir="."):
 #define _PyMOL_BUILD_DATE %d
 #define _PYMOL_BUILD_GIT_SHA "%s"
         """
-            % (time.time(), sha),
+            % (int(os.environ.get('SOURCE_DATE_EPOCH', time.time())), sha),
             file=out,
         )
 

Reply via email to