Blame SPECS/compat-sap-c++-8.spec

5cc31e
%global scl 1
5cc31e
%global scl_prefix compat-sap-
5cc31e
%global _root_prefix /opt/rh/SAP
5cc31e
%global _root_infodir %{_root_prefix}/%{_infodir}
5cc31e
%global _root_mandir %{_root_prefix}/%{_mandir}
5cc31e
%{?scl:%global __strip strip}
5cc31e
%{?scl:%global __objdump objdump}
5cc31e
%global DATE 20190311
5cc31e
%global SVNREV 269592
5cc31e
%global gcc_version 8.3.1
5cc31e
%global gcc_major 8
5cc31e
# Note, gcc_release must be integer, if you want to add suffixes to
5cc31e
# %%{release}, append them after %%{gcc_release} on Release: line.
5cc31e
%global gcc_release 3
5cc31e
%global mpc_version 0.8.1
5cc31e
%global _unpackaged_files_terminate_build 0
5cc31e
%undefine _annotated_build
5cc31e
%global multilib_64_archs sparc64 ppc64 s390x x86_64
5cc31e
%ifarch %{ix86} x86_64 ppc ppc64 ppc64le ppc64p7 s390 s390x %{arm} aarch64
5cc31e
%global attr_ifunc 1
5cc31e
%else
5cc31e
%global attr_ifunc 0
5cc31e
%endif
5cc31e
%ifarch x86_64
5cc31e
%global multilib_32_arch i686
5cc31e
%endif
5cc31e
Summary: C++ compatibility runtime library for SAP applications
5cc31e
Name: %{?scl_prefix}c++-8
5cc31e
ExclusiveArch: x86_64 ppc64le
5cc31e
Version: %{gcc_version}
5cc31e
Release: %{gcc_release}.1%{?dist}
5cc31e
# libgcc, libgfortran, libgomp, libstdc++ and crtstuff have
5cc31e
# GCC Runtime Exception.
5cc31e
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
5cc31e
Group: Development/Languages
5cc31e
# The source for this package was pulled from upstream's vcs.  Use the
5cc31e
# following commands to generate the tarball:
5cc31e
# svn export svn://gcc.gnu.org/svn/gcc/branches/redhat/gcc-8-branch@%%{SVNREV} gcc-%%{version}-%%{DATE}
5cc31e
# tar cf - gcc-%%{version}-%%{DATE} | xz -9e > gcc-%%{version}-%%{DATE}.tar.xz
5cc31e
Source0: gcc-%{version}-%{DATE}.tar.xz
5cc31e
Source1: http://www.multiprecision.org/mpc/download/mpc-%{mpc_version}.tar.gz
5cc31e
URL: http://gcc.gnu.org
5cc31e
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
5cc31e
# Need binutils with -pie support >= 2.14.90.0.4-4
5cc31e
# Need binutils which can omit dot symbols and overlap .opd on ppc64 >= 2.15.91.0.2-4
5cc31e
# Need binutils which handle -msecure-plt on ppc >= 2.16.91.0.2-2
5cc31e
# Need binutils which support .weakref >= 2.16.91.0.3-1
5cc31e
# Need binutils which support --hash-style=gnu >= 2.17.50.0.2-7
5cc31e
# Need binutils which support mffgpr and mftgpr >= 2.17.50.0.2-8
5cc31e
# Need binutils which support --build-id >= 2.17.50.0.17-3
5cc31e
# Need binutils which support %gnu_unique_object >= 2.19.51.0.14
5cc31e
# Need binutils which support .cfi_sections >= 2.19.51.0.14-33
5cc31e
BuildRequires: binutils >= 2.19.51.0.14-33
5cc31e
# While gcc doesn't include statically linked binaries, during testing
5cc31e
# -static is used several times.
5cc31e
BuildRequires: glibc-static
5cc31e
BuildRequires: gcc, gcc-c++
5cc31e
BuildRequires: zlib-devel, gettext, dejagnu, bison, flex, texinfo, sharutils, gcc-gfortran
5cc31e
BuildRequires: /usr/bin/pod2man
5cc31e
%if 0%{?rhel} >= 7
5cc31e
BuildRequires: texinfo-tex
5cc31e
%endif
5cc31e
#BuildRequires: systemtap-sdt-devel >= 1.3
5cc31e
# For VTA guality testing
5cc31e
BuildRequires: gdb
5cc31e
# Make sure pthread.h doesn't contain __thread tokens
5cc31e
# Make sure glibc supports stack protector
5cc31e
# Make sure glibc supports DT_GNU_HASH
5cc31e
BuildRequires: glibc-devel >= 2.4.90-13
5cc31e
BuildRequires: elfutils-devel >= 0.147
5cc31e
BuildRequires: elfutils-libelf-devel >= 0.147
5cc31e
%ifarch ppc ppc64 ppc64le ppc64p7 s390 s390x sparc sparcv9 alpha
5cc31e
# Make sure glibc supports TFmode long double
5cc31e
BuildRequires: glibc >= 2.3.90-35
5cc31e
%endif
5cc31e
%ifarch %{multilib_64_archs} sparcv9 ppc
5cc31e
# Ensure glibc{,-devel} is installed for both multilib arches
5cc31e
BuildRequires: /lib/libc.so.6 /usr/lib/libc.so /lib64/libc.so.6 /usr/lib64/libc.so
5cc31e
%endif
5cc31e
%ifarch ia64
5cc31e
BuildRequires: libunwind >= 0.98
5cc31e
%endif
5cc31e
# Need .eh_frame ld optimizations
5cc31e
# Need proper visibility support
5cc31e
# Need -pie support
5cc31e
# Need --as-needed/--no-as-needed support
5cc31e
# On ppc64, need omit dot symbols support and --non-overlapping-opd
5cc31e
# Need binutils that owns /usr/bin/c++filt
5cc31e
# Need binutils that support .weakref
5cc31e
# Need binutils that supports --hash-style=gnu
5cc31e
# Need binutils that support mffgpr/mftgpr
5cc31e
# Need binutils which support --build-id >= 2.17.50.0.17-3
5cc31e
# Need binutils which support %%gnu_unique_object >= 2.19.51.0.14
5cc31e
# Need binutils which support .cfi_sections >= 2.19.51.0.14-33
5cc31e
# Don't require this for compat-sap-c++ (#1491573).
5cc31e
#Requires: binutils >= 2.19.51.0.14-33
5cc31e
# Make sure gdb will understand DW_FORM_strp
5cc31e
Conflicts: gdb < 5.1-2
5cc31e
# Don't require this for compat-sap-c++ (#1491573).
5cc31e
#Requires: glibc-devel >= 2.2.90-12
5cc31e
%ifarch ppc ppc64 ppc64le ppc64p7 s390 s390x sparc sparcv9 alpha
5cc31e
# Make sure glibc supports TFmode long double
5cc31e
Requires: glibc >= 2.3.90-35
5cc31e
%endif
5cc31e
Requires: libgcc >= 4.1.2-43
5cc31e
# Keep this for now.
5cc31e
Requires: libgomp >= 4.4.4-13
5cc31e
BuildRequires: gmp-devel >= 4.1.2-8
5cc31e
BuildRequires: mpfr-devel >= 2.2.1
5cc31e
%if 0%{?rhel} >= 7
5cc31e
BuildRequires: libmpc-devel >= 0.8.1
5cc31e
%endif
5cc31e
AutoReq: true
5cc31e
AutoProv: false
5cc31e
# Don't provide this for compat-sap-c++ (#1491573).
5cc31e
#%ifarch sparc64 ppc64 ppc64le s390x x86_64 ia64
5cc31e
#Provides: liblto_plugin.so.0()(64bit)
5cc31e
#%else
5cc31e
#Provides: liblto_plugin.so.0
5cc31e
#%endif
5cc31e
%global oformat %{nil}
5cc31e
%global oformat2 %{nil}
5cc31e
%ifarch %{ix86}
5cc31e
%global oformat OUTPUT_FORMAT(elf32-i386)
5cc31e
%endif
5cc31e
%ifarch x86_64
5cc31e
%global oformat OUTPUT_FORMAT(elf64-x86-64)
5cc31e
%global oformat2 OUTPUT_FORMAT(elf32-i386)
5cc31e
%endif
5cc31e
%ifarch ppc
5cc31e
%global oformat OUTPUT_FORMAT(elf32-powerpc)
5cc31e
%global oformat2 OUTPUT_FORMAT(elf64-powerpc)
5cc31e
%endif
5cc31e
%ifarch ppc64
5cc31e
%global oformat OUTPUT_FORMAT(elf64-powerpc)
5cc31e
%global oformat2 OUTPUT_FORMAT(elf32-powerpc)
5cc31e
%endif
5cc31e
%ifarch s390
5cc31e
%global oformat OUTPUT_FORMAT(elf32-s390)
5cc31e
%endif
5cc31e
%ifarch s390x
5cc31e
%global oformat OUTPUT_FORMAT(elf64-s390)
5cc31e
%global oformat2 OUTPUT_FORMAT(elf32-s390)
5cc31e
%endif
5cc31e
%ifarch ia64
5cc31e
%global oformat OUTPUT_FORMAT(elf64-ia64-little)
5cc31e
%endif
5cc31e
%ifarch ppc64le
5cc31e
%global oformat OUTPUT_FORMAT(elf64-powerpcle)
5cc31e
%endif
5cc31e
%ifarch aarch64
5cc31e
%global oformat OUTPUT_FORMAT(elf64-littleaarch64)
5cc31e
%endif
5cc31e
5cc31e
Patch0: gcc8-hack.patch
5cc31e
Patch2: gcc8-i386-libgomp.patch
5cc31e
Patch3: gcc8-sparc-config-detection.patch
5cc31e
Patch4: gcc8-libgomp-omp_h-multilib.patch
5cc31e
Patch5: gcc8-libtool-no-rpath.patch
5cc31e
Patch8: gcc8-no-add-needed.patch
5cc31e
Patch9: gcc8-foffload-default.patch
5cc31e
Patch10: gcc8-Wno-format-security.patch
5cc31e
Patch11: gcc8-rh1512529-aarch64.patch
5cc31e
Patch12: gcc8-mcet.patch
5cc31e
Patch13: gcc8-pr85400.patch
5cc31e
Patch14: gcc8-pr89629.patch
5cc31e
5cc31e
Patch1000: gcc8-libstdc++-compat.patch
5cc31e
Patch1001: gcc8-alt-compat-test.patch
5cc31e
Patch1005: gcc8-s390x-libsanitizer.patch
5cc31e
5cc31e
%if 0%{?rhel} >= 7
5cc31e
%global nonsharedver 48
5cc31e
%else
5cc31e
%global nonsharedver 44
5cc31e
%endif
5cc31e
5cc31e
%if 0%{?scl:1}
5cc31e
%global _gnu %{nil}
5cc31e
%else
5cc31e
%global _gnu 7E
5cc31e
%endif
5cc31e
%ifarch sparcv9
5cc31e
%global gcc_target_platform sparc64-%{_vendor}-%{_target_os}%{?_gnu}
5cc31e
%endif
5cc31e
%ifarch ppc
5cc31e
%global gcc_target_platform ppc64-%{_vendor}-%{_target_os}%{?_gnu}
5cc31e
%endif
5cc31e
%ifnarch sparcv9 ppc
5cc31e
%global gcc_target_platform %{_target_platform}
5cc31e
%endif
5cc31e
5cc31e
%description
5cc31e
This package provides runtime compatibility libraries for use by SAP
5cc31e
application binaries only.
5cc31e
5cc31e
%prep
5cc31e
%setup -q -n gcc-%{version}-%{DATE} -a 1
5cc31e
%patch0 -p0 -b .hack~
5cc31e
%patch2 -p0 -b .i386-libgomp~
5cc31e
%patch3 -p0 -b .sparc-config-detection~
5cc31e
%patch4 -p0 -b .libgomp-omp_h-multilib~
5cc31e
%patch5 -p0 -b .libtool-no-rpath~
5cc31e
%patch8 -p0 -b .no-add-needed~
5cc31e
%patch9 -p0 -b .foffload-default~
5cc31e
%patch10 -p0 -b .Wno-format-security~
5cc31e
%patch11 -p0 -b .rh1512529-aarch64~
5cc31e
%patch12 -p0 -b .mcet~
5cc31e
%patch13 -p0 -b .pr85400~
5cc31e
%patch14 -p0 -b .pr89629~
5cc31e
5cc31e
%if 0%{?rhel} <= 7
5cc31e
%patch1000 -p0 -b .libstdc++-compat~
5cc31e
%endif
5cc31e
%ifarch %{ix86} x86_64
5cc31e
%if 0%{?rhel} < 7
5cc31e
# On i?86/x86_64 there are some incompatibilities in _Decimal* as well as
5cc31e
# aggregates containing larger vector passing.
5cc31e
%patch1001 -p0 -b .alt-compat-test~
5cc31e
%endif
5cc31e
%endif
5cc31e
%if 0%{?rhel} == 6
5cc31e
%patch1005 -p0 -b .s390x-libsanitizer~
5cc31e
%endif
5cc31e
5cc31e
echo 'Red Hat %{version}-%{gcc_release}' > gcc/DEV-PHASE
5cc31e
5cc31e
%if 0%{?rhel} == 6
5cc31e
# Default to -gdwarf-3 rather than -gdwarf-4
5cc31e
sed -i '/UInteger Var(dwarf_version)/s/Init(4)/Init(3)/' gcc/common.opt
5cc31e
sed -i 's/\(may be either 2, 3 or 4; the default version is \)4\./\13./' gcc/doc/invoke.texi
5cc31e
%endif
5cc31e
5cc31e
cp -a libstdc++-v3/config/cpu/i{4,3}86/atomicity.h
5cc31e
cp -a libstdc++-v3/config/cpu/i{4,3}86/opt
5cc31e
5cc31e
./contrib/gcc_update --touch
5cc31e
5cc31e
LC_ALL=C sed -i -e 's/\xa0/ /' gcc/doc/options.texi
5cc31e
5cc31e
sed -i -e 's/Common Driver Var(flag_report_bug)/& Init(1)/' gcc/common.opt
5cc31e
5cc31e
%ifarch ppc
5cc31e
if [ -d libstdc++-v3/config/abi/post/powerpc64-linux-gnu ]; then
5cc31e
  mkdir -p libstdc++-v3/config/abi/post/powerpc64-linux-gnu/64
5cc31e
  mv libstdc++-v3/config/abi/post/powerpc64-linux-gnu/{,64/}baseline_symbols.txt
5cc31e
  mv libstdc++-v3/config/abi/post/powerpc64-linux-gnu/{32/,}baseline_symbols.txt
5cc31e
  rm -rf libstdc++-v3/config/abi/post/powerpc64-linux-gnu/32
5cc31e
fi
5cc31e
%endif
5cc31e
%ifarch sparc
5cc31e
if [ -d libstdc++-v3/config/abi/post/sparc64-linux-gnu ]; then
5cc31e
  mkdir -p libstdc++-v3/config/abi/post/sparc64-linux-gnu/64
5cc31e
  mv libstdc++-v3/config/abi/post/sparc64-linux-gnu/{,64/}baseline_symbols.txt
5cc31e
  mv libstdc++-v3/config/abi/post/sparc64-linux-gnu/{32/,}baseline_symbols.txt
5cc31e
  rm -rf libstdc++-v3/config/abi/post/sparc64-linux-gnu/32
5cc31e
fi
5cc31e
%endif
5cc31e
5cc31e
%build
5cc31e
5cc31e
# Undo the broken autoconf change in recent Fedora versions
5cc31e
export CONFIG_SITE=NONE
5cc31e
5cc31e
rm -fr obj-%{gcc_target_platform}
5cc31e
mkdir obj-%{gcc_target_platform}
5cc31e
cd obj-%{gcc_target_platform}
5cc31e
5cc31e
%if 0%{?rhel} < 7
5cc31e
mkdir mpc mpc-install
5cc31e
cd mpc
5cc31e
../../mpc-%{mpc_version}/configure --disable-shared \
5cc31e
  CFLAGS="${CFLAGS:-%optflags} -fPIC" CXXFLAGS="${CXXFLAGS:-%optflags} -fPIC" \
5cc31e
  --prefix=`cd ..; pwd`/mpc-install
5cc31e
make %{?_smp_mflags}
5cc31e
make install
5cc31e
cd ..
5cc31e
%endif
5cc31e
5cc31e
%{?scl:PATH=%{_bindir}${PATH:+:${PATH}}}
5cc31e
5cc31e
CC=gcc
5cc31e
CXX=g++
5cc31e
OPT_FLAGS=`echo %{optflags}|sed -e 's/\(-Wp,\)\?-D_FORTIFY_SOURCE=[12]//g'`
5cc31e
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-m64//g;s/-m32//g;s/-m31//g'`
5cc31e
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-mfpmath=sse/-mfpmath=sse -msse2/g'`
5cc31e
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/ -pipe / /g'`
5cc31e
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-Werror=format-security/-Wformat-security/g'`
5cc31e
%ifarch sparc
5cc31e
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-mcpu=ultrasparc/-mtune=ultrasparc/g;s/-mcpu=v[78]//g'`
5cc31e
%endif
5cc31e
%ifarch %{ix86}
5cc31e
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-march=i.86//g'`
5cc31e
%endif
5cc31e
OPT_FLAGS=`echo "$OPT_FLAGS" | sed -e 's/[[:blank:]]\+/ /g'`
5cc31e
CONFIGURE_OPTS="\
5cc31e
	--prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir} \
5cc31e
	--with-bugurl=http://bugzilla.redhat.com/bugzilla \
5cc31e
	--enable-shared --enable-threads=posix --enable-checking=release \
5cc31e
%ifarch ppc64le
5cc31e
	--enable-targets=powerpcle-linux --disable-multilib \
5cc31e
%else
5cc31e
	--enable-multilib \
5cc31e
%endif
5cc31e
	--with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions \
5cc31e
	--enable-gnu-unique-object \
5cc31e
	--enable-linker-build-id --with-gcc-major-version-only \
5cc31e
	--enable-plugin --with-linker-hash-style=gnu \
5cc31e
	--enable-initfini-array \
5cc31e
	--with-default-libstdcxx-abi=gcc4-compatible \
5cc31e
	--disable-libquadmath \
5cc31e
	--disable-libsanitizer \
5cc31e
	--disable-libvtv \
5cc31e
	--disable-libgomp \
5cc31e
	--disable-libitm \
5cc31e
	--disable-libssp \
5cc31e
	--disable-libatomic \
5cc31e
	--disable-libcilkrts \
5cc31e
	--without-isl \
5cc31e
	--disable-libmpx \
5cc31e
%if 0%{?rhel} < 7
5cc31e
	--with-mpc=`pwd`/mpc-install \
5cc31e
%endif
5cc31e
%if 0%{?rhel} >= 7
5cc31e
%if %{attr_ifunc}
5cc31e
	--enable-gnu-indirect-function \
5cc31e
%endif
5cc31e
%endif
5cc31e
%ifarch ppc ppc64 ppc64le ppc64p7
5cc31e
	--enable-secureplt \
5cc31e
%endif
5cc31e
%ifarch ppc ppc64 ppc64p7
5cc31e
%if 0%{?rhel} >= 7
5cc31e
	--with-cpu-32=power7 --with-tune-32=power7 --with-cpu-64=power7 --with-tune-64=power7 \
5cc31e
%else
5cc31e
	--with-cpu-32=power4 --with-tune-32=power6 --with-cpu-64=power4 --with-tune-64=power6 \
5cc31e
%endif
5cc31e
%endif
5cc31e
%ifarch ppc64le
5cc31e
%if 0%{?rhel} >= 7
5cc31e
	--with-cpu-32=power8 --with-tune-32=power8 --with-cpu-64=power8 --with-tune-64=power8 \
5cc31e
%endif
5cc31e
%endif
5cc31e
%ifarch ppc
5cc31e
	--build=%{gcc_target_platform} --target=%{gcc_target_platform} --with-cpu=default32
5cc31e
%endif
5cc31e
%ifarch %{ix86} x86_64
5cc31e
	--with-tune=generic \
5cc31e
%endif
5cc31e
%ifarch %{ix86}
5cc31e
	--with-arch=i686 \
5cc31e
%endif
5cc31e
%ifarch x86_64
5cc31e
	--with-arch_32=i686 \
5cc31e
%endif
5cc31e
	--build=%{gcc_target_platform} \
5cc31e
	"
5cc31e
5cc31e
CC="$CC" CXX="$CXX" CFLAGS="$OPT_FLAGS" \
5cc31e
	CXXFLAGS="`echo " $OPT_FLAGS " | sed 's/ -Wall / /g;s/ -fexceptions / /g'`" \
5cc31e
	XCFLAGS="$OPT_FLAGS" TCFLAGS="$OPT_FLAGS" \
5cc31e
	../configure --enable-bootstrap \
5cc31e
	--enable-languages=c,c++,lto \
5cc31e
	$CONFIGURE_OPTS
5cc31e
5cc31e
5cc31e
make %{?_smp_mflags} BOOT_CFLAGS="$OPT_FLAGS"
5cc31e
5cc31e
%install
5cc31e
rm -fr %{buildroot}
5cc31e
5cc31e
%{?scl:PATH=%{_bindir}${PATH:+:${PATH}}}
5cc31e
mkdir -p %{buildroot}%{_root_prefix}/%{_lib}
5cc31e
cd obj-%{gcc_target_platform}
5cc31e
./gcc/xgcc -v 2> %{buildroot}%{_root_prefix}/%{_lib}/README8
5cc31e
5cc31e
cp %{gcc_target_platform}/libstdc++-v3/src/.libs/libstdc++.so.6.0.* %{buildroot}%{_root_prefix}/%{_lib}/compat-sap-c++-%{gcc_version}.so
5cc31e
cd %{buildroot}%{_root_prefix}/%{_lib}/
5cc31e
ln -sf compat-sap-c++-%{gcc_version}.so %{buildroot}%{_root_prefix}/%{_lib}/compat-sap-c++-8.so
5cc31e
5cc31e
%check
5cc31e
cd obj-%{gcc_target_platform}
5cc31e
5cc31e
%{?scl:PATH=%{_bindir}${PATH:+:${PATH}}}
5cc31e
5cc31e
# run the tests.
5cc31e
make %{?_smp_mflags} -k check RUNTESTFLAGS="--target_board=unix/'{,-fstack-protector}'" || :
5cc31e
( LC_ALL=C ../contrib/test_summary -t || : ) 2>&1 | sed -n '/^cat.*EOF/,/^EOF/{/^cat.*EOF/d;/^EOF/d;/^LAST_UPDATED:/d;p;}' > testresults
5cc31e
rm -rf gcc/testsuite.prev
5cc31e
mv gcc/testsuite{,.prev}
5cc31e
rm -f gcc/site.exp
5cc31e
make %{?_smp_mflags} -C gcc -k check-gcc check-g++ ALT_CC_UNDER_TEST=gcc ALT_CXX_UNDER_TEST=g++ RUNTESTFLAGS="--target_board=unix/'{,-fstack-protector}' compat.exp struct-layout-1.exp" || :
5cc31e
mv gcc/testsuite/gcc/gcc.sum{,.sent}
5cc31e
mv gcc/testsuite/g++/g++.sum{,.sent}
5cc31e
( LC_ALL=C ../contrib/test_summary -o -t || : ) 2>&1 | sed -n '/^cat.*EOF/,/^EOF/{/^cat.*EOF/d;/^EOF/d;/^LAST_UPDATED:/d;p;}' > testresults2
5cc31e
rm -rf gcc/testsuite.compat
5cc31e
mv gcc/testsuite{,.compat}
5cc31e
mv gcc/testsuite{.prev,}
5cc31e
echo ====================TESTING=========================
5cc31e
cat testresults
5cc31e
echo ===`gcc --version | head -1` compatibility tests====
5cc31e
cat testresults2
5cc31e
echo ====================TESTING END=====================
5cc31e
mkdir testlogs-%{_target_platform}-%{version}-%{release}
5cc31e
for i in `find . -name \*.log | grep -F testsuite/ | grep -v 'config.log\|acats.*/tests/'`; do
5cc31e
  ln $i testlogs-%{_target_platform}-%{version}-%{release}/ || :
5cc31e
done
5cc31e
for i in `find gcc/testsuite.compat -name \*.log | grep -v 'config.log\|acats.*/tests/'`; do
5cc31e
  ln $i testlogs-%{_target_platform}-%{version}-%{release}/`basename $i`.compat || :
5cc31e
done
5cc31e
tar cf - testlogs-%{_target_platform}-%{version}-%{release} | bzip2 -9c \
5cc31e
  | uuencode testlogs-%{_target_platform}.tar.bz2 || :
5cc31e
rm -rf testlogs-%{_target_platform}-%{version}-%{release}
5cc31e
5cc31e
%clean
5cc31e
rm -rf %{buildroot}
5cc31e
5cc31e
%files
5cc31e
%defattr(-,root,root,-)
5cc31e
%dir %{_root_prefix}
5cc31e
%dir %{_root_prefix}/%{_lib}
5cc31e
%{_root_prefix}/%{_lib}/compat-sap-c++-%{gcc_version}.so
5cc31e
%{_root_prefix}/%{_lib}/compat-sap-c++-8.so
5cc31e
%{_root_prefix}/%{_lib}/README8
5cc31e
5cc31e
%changelog
5cc31e
* Wed Apr 10 2019 Marek Polacek <polacek@redhat.com> 8.3.1-3.1
5cc31e
- rename README to README8
5cc31e
5cc31e
* Thu Mar 14 2019 Marek Polacek <polacek@redhat.com> 8.3.1-3
5cc31e
- update from DTS gcc 8.3.1-3
5cc31e
5cc31e
* Mon Feb 25 2019 Marek Polacek <polacek@redhat.com> 8.3.1-2
5cc31e
- update from DTS gcc 8.3.1-2
5cc31e
5cc31e
* Wed Feb 20 2019 Marek Polacek <polacek@redhat.com> 8.2.1-7.1
5cc31e
- update from DTS gcc 8.2.1-7.1
5cc31e
5cc31e
* Tue Nov 28 2017 Marek Polacek <polacek@redhat.com> 7.3.1-1
5cc31e
- update from DTS gcc 7.3.1
5cc31e
5cc31e
* Tue Nov 28 2017 Marek Polacek <polacek@redhat.com> 7.2.1-2
5cc31e
- clean up RPM dependencies (#1491573)
5cc31e
- include gcc -v output in the README file (#1491594)
5cc31e
5cc31e
* Wed Nov 22 2017 Marek Polacek <polacek@redhat.com> 7.2.1-1
5cc31e
- new package