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