Accepting request 497989 from home:bmwiedemann:branches:Base:System
Allow to disable do_profiling in builds (related to boo#1040589) now keeping the tests enabled OBS-URL: https://build.opensuse.org/request/show/497989 OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=239
This commit is contained in:
parent
39dd581e4f
commit
5b28389ca3
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 24 12:42:20 UTC 2017 - bwiedemann@suse.com
|
||||||
|
|
||||||
|
- Allow to disable do_profiling in builds (related to boo#1040589)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Apr 26 16:04:15 UTC 2017 - werner@suse.de
|
Wed Apr 26 16:04:15 UTC 2017 - werner@suse.de
|
||||||
|
|
||||||
|
12
bash.spec
12
bash.spec
@ -536,7 +536,11 @@ popd
|
|||||||
--disable-strict-posix-default \
|
--disable-strict-posix-default \
|
||||||
--enable-separate-helpfiles=%{_datadir}/bash/helpfiles \
|
--enable-separate-helpfiles=%{_datadir}/bash/helpfiles \
|
||||||
$READLINE
|
$READLINE
|
||||||
make %{?do_profiling:CFLAGS="$CFLAGS %cflags_profile_generate"} \
|
profilecflags=CFLAGS="$CFLAGS"
|
||||||
|
%if 0%{?do_profiling}
|
||||||
|
profilecflags=CFLAGS="$CFLAGS %cflags_profile_generate"
|
||||||
|
%endif
|
||||||
|
make "$profilecflags" \
|
||||||
all printenv recho zecho xcase
|
all printenv recho zecho xcase
|
||||||
TMPDIR=$(mktemp -d /tmp/bash.XXXXXXXXXX) || exit 1
|
TMPDIR=$(mktemp -d /tmp/bash.XXXXXXXXXX) || exit 1
|
||||||
> $SCREENLOG
|
> $SCREENLOG
|
||||||
@ -545,7 +549,11 @@ popd
|
|||||||
SCREENRC=$SCREENRC SCREENDIR=$SCREENDIR \
|
SCREENRC=$SCREENRC SCREENDIR=$SCREENDIR \
|
||||||
screen -D -m make TESTSCRIPT=%{SOURCE4} check
|
screen -D -m make TESTSCRIPT=%{SOURCE4} check
|
||||||
kill -TERM $pid
|
kill -TERM $pid
|
||||||
make %{?do_profiling:CFLAGS="$CFLAGS %cflags_profile_feedback -fprofile-correction" clean} all
|
%if 0%{?do_profiling}
|
||||||
|
profilecflags=CFLAGS="$CFLAGS %cflags_profile_feedback -fprofile-correction"
|
||||||
|
clean=clean
|
||||||
|
%endif
|
||||||
|
make "$profilecflags" $clean all
|
||||||
make -C examples/loadables/
|
make -C examples/loadables/
|
||||||
make documentation
|
make documentation
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user