From 6d2ddee86ab785813133a268d13f711c3cfac52925c63a9cee4b4d31c6736c1a Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Mon, 12 Nov 2018 08:14:47 +0000 Subject: [PATCH] Accepting request 647618 from home:bmwiedemann:branches: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 OBS-URL: https://build.opensuse.org/request/show/647618 OBS-URL: https://build.opensuse.org/package/show/Base:System/grep?expand=0&rev=89 --- grep.changes | 6 ++++++ grep.spec | 7 ++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/grep.changes b/grep.changes index 7fe319e..9e8c0bc 100644 --- a/grep.changes +++ b/grep.changes @@ -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 diff --git a/grep.spec b/grep.spec index f3ae78a..ab6fa47 100644 --- a/grep.spec +++ b/grep.spec @@ -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