Dr. Werner Fink 2022-09-19 13:30:02 +00:00 committed by Git OBS Bridge
parent dec9a7959c
commit c532ce9c6f

View File

@ -21,6 +21,8 @@
%else %else
%bcond_without alternatives %bcond_without alternatives
%endif %endif
# Parallel builds do not work!
%global _smp_mflags -j1
%define bextend %{nil} %define bextend %{nil}
%define bversion 5.1 %define bversion 5.1
@ -224,13 +226,12 @@ Legacy usrmove helper files for the build system. Do not install.
%prep %prep
%if %{with sjis} %if %{with sjis}
echo -e '\033[1m\033[31mWarning: Shift JIS support is enabled\033[m' %{warn:Shift JIS support is enabled}
%else %else
echo -e '\033[1m\032[31mShift JIS support disabled\033[m' %{echo:Shift JIS support disabled}
%endif %endif
%setup -q -n bash-%{bversion}%{bextend} -b1 %setup -q -n bash-%{bversion}%{bextend} -b1
typeset -i level typeset -i level
set +x
for patch in ../bash-%{bversion}-patches/*-*[0-9]; do for patch in ../bash-%{bversion}-patches/*-*[0-9]; do
test -e $patch || break test -e $patch || break
@ -245,7 +246,6 @@ for patch in ../bash-%{bversion}-patches/*-*[0-9]; do
echo Patch $patch echo Patch $patch
patch -s -p$level < $patch patch -s -p$level < $patch
done done
set -x
%patch1 -b .manual %patch1 -b .manual
%patch3 -b .2.4.4 %patch3 -b .2.4.4
%patch4 -b .evalexp %patch4 -b .evalexp
@ -452,23 +452,23 @@ test ${rl1[2]} = ${rl2[2]} || exit 1
profilecflags=CFLAGS="$CFLAGS %{cflags_profile_generate}" profilecflags=CFLAGS="$CFLAGS %{cflags_profile_generate}"
%endif %endif
makeopts="Machine=${HOSTTYPE} OS=${OSTYPE} VENDOR=${VENDOR} MACHTYPE=${MACHTYPE}" makeopts="Machine=${HOSTTYPE} OS=${OSTYPE} VENDOR=${VENDOR} MACHTYPE=${MACHTYPE}"
make $makeopts "$profilecflags" \ %make_build $makeopts "$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
tail -q -s 0.5 -f $SCREENLOG & pid=$! tail -q -s 0.5 -f $SCREENLOG & pid=$!
env -i HOME=$PWD TERM=$TERM LD_LIBRARY_PATH=$LD_RUN_PATH TMPDIR=$TMPDIR \ env -i HOME=$PWD TERM=$TERM LD_LIBRARY_PATH=$LD_RUN_PATH TMPDIR=$TMPDIR \
SCREENRC=$SCREENRC SCREENDIR=$SCREENDIR \ SCREENRC=$SCREENRC SCREENDIR=$SCREENDIR \
screen -D -m make TESTSCRIPT=%{SOURCE4} check screen -D -m %make_build TESTSCRIPT=%{SOURCE4} check
kill -TERM $pid kill -TERM $pid
%if 0%{?do_profiling} %if 0%{?do_profiling}
rm -f jobs.gcda rm -f jobs.gcda
profilecflags=CFLAGS="$CFLAGS %{cflags_profile_feedback} -fprofile-correction" profilecflags=CFLAGS="$CFLAGS %{cflags_profile_feedback} -fprofile-correction"
clean=clean clean=clean
%endif %endif
make $makeopts "$profilecflags" $clean all %make_build $makeopts "$profilecflags" $clean all
make $makeopts -C examples/loadables/ %make_build $makeopts -C examples/loadables/
make $makeopts documentation %make_build $makeopts documentation
%install %install
%make_install %make_install