Accepting request 648389 from Base:System

do not run profiling in parallel to make package build reproducible (boo#1040589)

also requires -fno-profile-values to avoid ~3 differing bits (forwarded request 647618 from bmwiedemann)

OBS-URL: https://build.opensuse.org/request/show/648389
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/grep?expand=0&rev=68
This commit is contained in:
Dominique Leuenberger 2018-11-26 09:12:03 +00:00 committed by Git OBS Bridge
commit 2d29b503ac
2 changed files with 10 additions and 3 deletions

View File

@ -4,6 +4,12 @@ Tue Aug 7 07:08:30 UTC 2018 - schwab@suse.de
- remove-backref-alt-test.patch: Remove backref-alt test which fails or
not depending on glibc version
-------------------------------------------------------------------
Fri Jul 13 03:53:14 UTC 2018 - bwiedemann@suse.com
- do not run profiling in parallel to make package build
reproducible (boo#1040589)
-------------------------------------------------------------------
Thu Feb 22 15:10:33 UTC 2018 - fvogt@suse.com

View File

@ -49,9 +49,10 @@ match to a specified pattern. By default, grep prints the matching lines.
%configure \
--disable-silent-rules \
--without-included-regex
%if %{do_profiling}
make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_generate}"
make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_generate}" check
%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 clean
make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_feedback}"
%else