From 327561019d4ff15a88f30eb77e4d1b2a078d1c786452ccdf6340d6f480e5fe5c Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Tue, 30 May 2017 09:47:23 +0000 Subject: [PATCH] Accepting request 499520 from home:heijligen:branches:Base:System changing the way how gcc profiling is generating to have a reproducible build https://en.opensuse.org/openSUSE:Reproducible_Builds OBS-URL: https://build.opensuse.org/request/show/499520 OBS-URL: https://build.opensuse.org/package/show/Base:System/gzip?expand=0&rev=50 --- gzip.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gzip.spec b/gzip.spec index 5d8a4cd..c9b9e02 100644 --- a/gzip.spec +++ b/gzip.spec @@ -66,8 +66,8 @@ profile_gzip() { tmpfile=$(mktemp) trap "rm -f $tmpfile $tmpfile.gz" EXIT - tar -cf $tmpfile %{_prefix} || true - time ./gzip $tmpfile + tar -cfd %{SOURCE0} > $tmpfile || true + time ./gzip < $tmpfile > $tmpfile.gz time ./gzip -d < $tmpfile.gz > /dev/null } %if %{do_profiling}