Hello community, here is the log from the commit of package grep for openSUSE:Factory checked in at 2020-07-05 01:09:37 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/grep (Old) and /work/SRC/openSUSE:Factory/.grep.new.3060 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "grep" Sun Jul 5 01:09:37 2020 rev:73 rq:818103 version:3.4 Changes: -------- --- /work/SRC/openSUSE:Factory/grep/grep.changes 2020-02-15 22:21:11.511172551 +0100 +++ /work/SRC/openSUSE:Factory/.grep.new.3060/grep.changes 2020-07-05 01:10:23.115447329 +0200 @@ -1,0 +2,6 @@ +Wed Jul 1 03:30:01 UTC 2020 - Bernhard Wiedemann <[email protected]> + +- Use deterministic profile.sh script to make package build + reproducible (boo#1040589) + +------------------------------------------------------------------- New: ---- profile.sh ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ grep.spec ++++++ --- /var/tmp/diff_new_pack.EHYPGM/_old 2020-07-05 01:10:26.031457180 +0200 +++ /var/tmp/diff_new_pack.EHYPGM/_new 2020-07-05 01:10:26.035457193 +0200 @@ -26,6 +26,7 @@ Source0: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz Source2: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz.sig Source3: https://savannah.gnu.org/project/memberlist-gpgkeys.php?group=grep&download=1#/%{name}.keyring +Source4: profile.sh BuildRequires: fdupes BuildRequires: makeinfo BuildRequires: pcre-devel @@ -48,9 +49,8 @@ --without-included-regex \ %{nil} %if 0%{?do_profiling} - make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_generate} -fno-profile-values" - # do not run profiling in parallel for reproducible builds (boo#1040589) - make CFLAGS="%{optflags} %{cflags_profile_generate}" check + make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_generate}" + sh %{SOURCE4} # profiling run make clean make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_feedback}" %else ++++++ profile.sh ++++++ #!/bin/sh # profiling script for profile-guided-optimizations (PGO) # must be fully deterministic in what it does for reproducible builds # should cover most code for good PGO optimization benefit # See https://github.com/bmwiedemann/theunreproduciblepackage/tree/master/pgo # for background information on PGO reproducibility grep=src/grep t=COPYING exec > /dev/null for param in "" "-v" "-i" "-h" "-H" "-l" "-L" "-q" "-n" "-Z" "-E" "-F" "-P" "-e" "-w" "-c" "-o" ; do $grep $param "GNU" $t $grep $param "G.*U" $t done
