Hello community, here is the log from the commit of package mozjs52 for openSUSE:Factory checked in at 2017-10-13 14:06:20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mozjs52 (Old) and /work/SRC/openSUSE:Factory/.mozjs52.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mozjs52" Fri Oct 13 14:06:20 2017 rev:2 rq:532533 version:52.3.0 Changes: -------- --- /work/SRC/openSUSE:Factory/mozjs52/mozjs52.changes 2017-09-13 21:41:50.777017547 +0200 +++ /work/SRC/openSUSE:Factory/.mozjs52.new/mozjs52.changes 2017-10-13 14:06:22.225866196 +0200 @@ -1,0 +2,7 @@ +Fri Oct 6 17:11:55 UTC 2017 - [email protected] + +- Added additional compiler flags on the condition + of building for ppc64le using gcc7 or newer. + (see bmo#1399248) + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mozjs52.spec ++++++ --- /var/tmp/diff_new_pack.61e9Qc/_old 2017-10-13 14:06:29.233558026 +0200 +++ /var/tmp/diff_new_pack.61e9Qc/_new 2017-10-13 14:06:29.237557850 +0200 @@ -1,7 +1,7 @@ # # spec file for package mozjs52 # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -95,8 +95,16 @@ TIME="\"$(date -d "${modified}" "+%%R")\"" find . -regex ".*\.c\|.*\.cpp\|.*\.h" -exec sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" {} + # +# Add extra cflags for Power8 ppc64le compiling with gcc7+ (bmo#1399248) +%ifarch ppc64le +GCCVER=`gcc --version | sed "s/.* \([0-9]\.[0-9]\.[0-9]\).*/\1/" | head -n1` +if [ ${GCCVER} > "7.0" ]; then +XTRA_CFLAGS="-mcpu=power7 -mtune=power7" +fi +%endif +# # Disable null pointer gcc6 optimization in gcc6 (rhbz#1328045) -export CFLAGS="%{optflags} -fno-tree-vrp -fno-strict-aliasing -fno-delete-null-pointer-checks" +export CFLAGS="%{optflags} -fno-tree-vrp -fno-strict-aliasing -fno-delete-null-pointer-checks ${XTRA_CFLAGS}" export CXXFLAGS=$CFLAGS autoconf-2.13 ./configure \
