Hello community, here is the log from the commit of package mksh for openSUSE:Factory checked in at 2017-12-01 15:54:14 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mksh (Old) and /work/SRC/openSUSE:Factory/.mksh.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "mksh" Fri Dec 1 15:54:14 2017 rev:15 rq:546900 version:54 Changes: -------- --- /work/SRC/openSUSE:Factory/mksh/mksh.changes 2017-11-14 13:06:12.311240932 +0100 +++ /work/SRC/openSUSE:Factory/.mksh.new/mksh.changes 2017-12-01 15:54:33.126063721 +0100 @@ -1,0 +2,6 @@ +Wed Nov 22 11:44:24 UTC 2017 - werner@suse.de + +- Do not change Build.sh for not using hard coded list of signals + and errors but the cpp macros for this (requested by upstream) + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mksh.spec ++++++ --- /var/tmp/diff_new_pack.4gn4nL/_old 2017-12-01 15:54:33.766040692 +0100 +++ /var/tmp/diff_new_pack.4gn4nL/_new 2017-12-01 15:54:33.770040548 +0100 @@ -36,6 +36,7 @@ BuildRequires: screen BuildRequires: sed BuildRequires: update-alternatives +BuildRequires: virt-what %if 0%{?suse_version} >= 1315 # replaces pdksh in openSUSE >= 13.2 and SLES >= 12 Provides: pdksh = %{version} @@ -64,7 +65,7 @@ %patch0 -p1 -b .p0 %if 0%{?suse_version} > 0 -%if %{suse_version} == 1315 +%if !0%{?is_opensuse} ed -s sh.h <<-'EOF' ,s/#define MKSH_VERSION "R\([^"]*\)"/#define MKSH_VERSION "R\1 SLES"/ w @@ -93,27 +94,31 @@ if grep -q _DEFAULT_SOURCE /usr/include/features.h ; then ed -s Build.sh <<-'EOF' /^Linux)/ - /-D_GNU_SOURCE/s/\(add_cppflags\s\)-D_GNU_SOURCE/\1 -D_GNU_SOURCE -D_DEFAULT_SOURCE/ + /-D_GNU_SOURCE/s/\(add_cppflags\s\)-D_GNU_SOURCE/\1-D_GNU_SOURCE -D_DEFAULT_SOURCE/ w EOF fi +ln -s . examples + +%build +echo "Build system: Virt '$(virt-what)' -- '$(uname -a)'" # # sys_errlist and sys_siglist *are* deprecated +# Be aware of the _SYS_SIGLIST and _SYS_ERRLIST macros as well # -ed -s Build.sh <<-'EOF' - /^ac_test strerror/s/\(strerror\).*\( <<\)/\1\2/ - /^ac_test strsignal/s/\(strsignal\).*\( <<\)/\1\2/ - w - EOF -ed -s histrap.c <<-'EOF' - /^#if HAVE_SYS_SIGLIST/s/HAVE_SYS_SIGLIST/0/ - w - EOF - -ln -s . examples +HAVE_SYS_SIGLIST=0 +HAVE_SYS_ERRLIST=0 +HAVE__SYS_SIGLIST=0 +HAVE__SYS_ERRLIST=0 +export HAVE_SYS_SIGLIST HAVE_SYS_ERRLIST HAVE__SYS_SIGLIST HAVE__SYS_ERRLIST -%build +# +# -ftree-loop-linear +# Perform loop nest optimizations. Same as -floop-nest-optimize. +# To use this code transformation, GCC has to be configured with +# --with-isl to enable the Graphite loop transformation infrastructure. +# export CC=gcc if $CC -Werror -ftree-loop-linear -S -o /dev/null -xc /dev/null > /dev/null 2>&1 then @@ -121,6 +126,10 @@ else export CFLAGS='%{optflags} -Wuninitialized -Wall -Wextra -pipe' fi +case "$(uname -m)" in +ppc64) CFLAGS="$CFLAGS -mbig-endian -mcpu=power4" ;; +ppc64le) CFLAGS="$CFLAGS -mtune=power8 -mcpu=power8" ;; +esac export CPPFLAGS='-DMKSH_VENDOR_MKSHRC_PATH=\"/etc/mkshrc\"' export LDFLAGS='-Wl,--as-needed -Wl,-O2' # filter compiler warnings and errors from configuration tests @@ -173,6 +182,8 @@ %endif %check +# should always run in a clean environment as otherwise +# tests might fail due wrong line numbering SCREENDIR=$(mktemp -d ${PWD}/screen.XXXXXX) || exit 1 trap 'rm -rf $SCREENDIR' EXIT SCREENRC=${SCREENDIR}/mksh