File reproducibleaslr.patch of Package python-rpm-macros

Index: python-rpm-macros-20221117.8687578/flavor.in
===================================================================
--- python-rpm-macros-20221117.8687578.orig/flavor.in
+++ python-rpm-macros-20221117.8687578/flavor.in
@@ -87,7 +87,7 @@ fi \
 for d in %{buildroot}%{#FLAVOR#_sitelib} %{buildroot}%{#FLAVOR#_sitearch}; do \
   if [ -d $d ]; then \
     find $d -iname '*.pyc' -delete \
-    find $d -iname '*.py' -printf 'Generating cached byte-code for %%P\\n' -exec %__#FLAVOR# -c \\\
+    find $d -iname '*.py' -printf 'Generating cached byte-code for %%P\\n' -exec setarch -R %__#FLAVOR# -c \\\
        'import py_compile; f="{}"; [py_compile.compile(f, dfile=f[len("%{buildroot}"):], optimize=o) for o in [0, 1]]' ';' \
   fi \
 done
openSUSE Build Service is sponsored by