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
This commit is contained in:
Egbert Eich 2022-08-02 13:14:07 +00:00 committed by Git OBS Bridge
parent e067a36989
commit fd509c0258
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jul 21 19:20:42 UTC 2022 - Bernhard Wiedemann <bwiedemann@suse.com>
- make slurmtest.tar reproducible
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Jul 14 15:20:46 UTC 2022 - Egbert Eich <eich@suse.com> Thu Jul 14 15:20:46 UTC 2022 - Egbert Eich <eich@suse.com>

View File

@ -873,7 +873,13 @@ EOF
mkdir -p %{buildroot}/srv/slurm-testsuite/shared mkdir -p %{buildroot}/srv/slurm-testsuite/shared
mkdir -p %{buildroot}%_localstatedir/lib/slurm/shared mkdir -p %{buildroot}%_localstatedir/lib/slurm/shared
cd %{buildroot}/srv/slurm-testsuite 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 - cd -
rm -rf %{buildroot}/srv/slurm-testsuite rm -rf %{buildroot}/srv/slurm-testsuite
mkdir -p %{buildroot}/srv/slurm-testsuite mkdir -p %{buildroot}/srv/slurm-testsuite