From fd509c025809d856eb12fd519ca583413544c37684d30656e29fef23119121af Mon Sep 17 00:00:00 2001 From: Egbert Eich Date: Tue, 2 Aug 2022 13:14:07 +0000 Subject: [PATCH] Accepting request 990637 from home:bmwiedemann:branches:network:cluster make slurmtest.tar reproducible OBS-URL: https://build.opensuse.org/request/show/990637 OBS-URL: https://build.opensuse.org/package/show/network:cluster/slurm?expand=0&rev=213 --- slurm.changes | 5 +++++ slurm.spec | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/slurm.changes b/slurm.changes index 2220465..b081fa1 100644 --- a/slurm.changes +++ b/slurm.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jul 21 19:20:42 UTC 2022 - Bernhard Wiedemann + +- make slurmtest.tar reproducible + ------------------------------------------------------------------- Thu Jul 14 15:20:46 UTC 2022 - Egbert Eich diff --git a/slurm.spec b/slurm.spec index dc231c2..f4e0acb 100644 --- a/slurm.spec +++ b/slurm.spec @@ -873,7 +873,13 @@ EOF mkdir -p %{buildroot}/srv/slurm-testsuite/shared mkdir -p %{buildroot}%_localstatedir/lib/slurm/shared cd %{buildroot}/srv/slurm-testsuite -tar --group=%slurm_g --owner=%slurm_u -cjf /tmp/slurmtest.tar.bz2 * +find -type f -name "*.[ao]" -print | while read f; do + # drop non-deterministic lto bits from .o files + strip -p --discard-locals -R .gnu.lto_* -R .gnu.debuglto_* -N __gnu_lto_v1 $f +done +tar --group=%slurm_g --owner=%slurm_u \ + --sort=name --mtime="@${SOURCE_DATE_EPOCH:-`date +%%s`}" --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime \ + -cjf /tmp/slurmtest.tar.bz2 * cd - rm -rf %{buildroot}/srv/slurm-testsuite mkdir -p %{buildroot}/srv/slurm-testsuite