Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package scons for openSUSE:Factory checked 
in at 2026-08-30 19:06:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/scons (Old)
 and      /work/SRC/openSUSE:Factory/.scons.new.1265 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "scons"

Sun Aug 30 19:06:33 2026 rev:56 rq:1374597 version:4.10.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/scons/scons.changes      2026-06-11 
17:25:26.345483430 +0200
+++ /work/SRC/openSUSE:Factory/.scons.new.1265/scons.changes    2026-08-30 
19:06:42.827910889 +0200
@@ -1,0 +2,7 @@
+Fri Aug 28 12:34:06 UTC 2026 - Bernhard Wiedemann <[email protected]>
+
+- Re-add site_init.py to pass through SOURCE_DATE_EPOCH
+  for reproducible builds (https://github.com/SCons/scons/pull/4261).
+  It was dropped without mention in the 4.10.1 update (SR#1337378).
+
+-------------------------------------------------------------------

New:
----
  site_init.py

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

Other differences:
------------------
++++++ scons.spec ++++++
--- /var/tmp/diff_new_pack.nwGnWl/_old  2026-08-30 19:06:43.498934227 +0200
+++ /var/tmp/diff_new_pack.nwGnWl/_new  2026-08-30 19:06:43.500934296 +0200
@@ -27,6 +27,8 @@
 Group:          Development/Tools/Building
 URL:            https://www.scons.org/
 Source:         
http://prdownloads.sourceforge.net/scons/SCons-%{version}.tar.gz
+# site_init based on https://github.com/SCons/scons/pull/4261 for reproducible 
builds
+Source2:        site_init.py
 BuildRequires:  %{python_module base}
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools}
@@ -53,10 +55,13 @@
 %install
 %pyproject_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
+mkdir -p %{buildroot}%{_datadir}/scons/site_scons
+install -p -m 644 %{SOURCE2} 
%{buildroot}%{_datadir}/scons/site_scons/site_init.py
 
 %files
 %license LICENSE
 %{_bindir}/*
 %{python_sitelib}/SCons
 %{python_sitelib}/[Ss][Cc]ons-%{version}.dist-info
+%{_datadir}/scons
 

++++++ site_init.py ++++++

import os
import SCons.Environment

old_init = SCons.Environment.Base.__init__

print("Adding logic to propagate SOURCE_DATE_EPOCH from the shell environment 
when building with SCons")


def new_init(self, **kw):
    """
    This logic will add SOURCE_DATE_EPOCH to the execution environment used to 
run
    all the build commands.
    """
    old_init(self, **kw)
    if 'SOURCE_DATE_EPOCH' in os.environ:
        self._dict['ENV']['SOURCE_DATE_EPOCH'] = os.environ['SOURCE_DATE_EPOCH']


SCons.Environment.Base.__init__ = new_init

Reply via email to