From f138d31d058b882daeb662abe0317b047a50faac636cb3e47daca34e6d44733a Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Mon, 29 Aug 2022 08:25:00 +0000 Subject: [PATCH] Accepting request 991865 from home:coolo:branches:Base:System - Use %make_build macro and make sure we run the profiling run with -j1 OBS-URL: https://build.opensuse.org/request/show/991865 OBS-URL: https://build.opensuse.org/package/show/Base:System/m4?expand=0&rev=45 --- m4.changes | 5 +++++ m4.spec | 15 ++++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/m4.changes b/m4.changes index b90ef17..5982b76 100644 --- a/m4.changes +++ b/m4.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Jul 31 08:10:20 UTC 2022 - Stephan Kulow + +- Use %make_build macro and make sure we run the profiling run with -j1 + ------------------------------------------------------------------- Mon Jul 19 12:48:42 UTC 2021 - Andreas Schwab diff --git a/m4.spec b/m4.spec index f685472..377f7db 100644 --- a/m4.spec +++ b/m4.spec @@ -1,7 +1,7 @@ # # spec file for package m4 # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -51,16 +51,17 @@ GNU m4 is an implementation of the traditional Unix macro processor. gl_cv_func_printf_directive_n=yes \ gl_cv_func_printf_infinite_long_double=yes %if %{do_profiling} - make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_generate}" V=1 - make check %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_generate}" - make %{?_smp_mflags} clean - make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_feedback}" V=1 + %make_build CFLAGS="%{optflags} %{cflags_profile_generate}" + # run profiling check sequentially to have it reproducible + %make_build -j1 check CFLAGS="%{optflags} %{cflags_profile_generate}" + %make_build clean + %make_build CFLAGS="%{optflags} %{cflags_profile_feedback}" %else - make %{?_smp_mflags} V=1 + %make_build %endif %check -make %{?_smp_mflags} check +%make_build check %install %make_install