Blame SPECS/compat-gcc-32.spec

727081
%define LIBSTDCXXDATE 20040818
727081
%define DATE 20040701
727081
%define gcc_version 3.2.3
727081
%define gcc_release 72
727081
%define _unpackaged_files_terminate_build 0
727081
%define multilib_64_archs sparc64 ppc64 s390x x86_64
727081
%define build_java 0
727081
%define _default_patch_fuzz 2
727081
%ifarch s390x
727081
%define multilib_32_arch s390
727081
%endif
727081
%ifarch sparc64
727081
%define multilib_32_arch sparc
727081
%endif
727081
%ifarch ppc64
727081
%define multilib_32_arch ppc
727081
%endif
727081
%ifarch x86_64
727081
%define multilib_32_arch i386
727081
%endif
727081
Summary: The compatibility GNU Compiler Collection
727081
Name: compat-gcc-32
727081
Version: %{gcc_version}
727081
Release: %{gcc_release}%{?dist}
727081
License: GPLv2+ with exceptions
727081
Group: Development/Languages
727081
Source0: gcc-%{gcc_version}-%{DATE}.tar.bz2
727081
Source2: libstdc++-3.3.4-%{LIBSTDCXXDATE}.tar.bz2
727081
Source3: dummylib.sh
727081
URL: http://gcc.gnu.org
727081
BuildRoot: /var/tmp/gcc-root
727081
# Need .eh_frame ld optimizations
727081
# Need proper visibility support
727081
# Need -pie support
727081
# Need --as-needed/--no-as-needed support
727081
# Need .weakref support
727081
BuildRequires: binutils >= 2.16.91.0.5-1
727081
BuildRequires: zlib-devel, gettext, dejagnu, bison, flex, texinfo
727081
# Make sure pthread.h doesn't contain __thread tokens
727081
BuildRequires: glibc-devel >= 2.2.90-12, glibc-static
727081
# Need .eh_frame ld optimizations
727081
# Need proper visibility support
727081
# Need -pie support
727081
# Need .weakref support
727081
Requires: binutils >= 2.16.91.0.5-1
727081
# Make sure gdb will understand DW_FORM_strp
727081
Conflicts: gdb < 5.1-2
727081
Requires: glibc-devel >= 2.2.90-12
727081
Requires: libgcc >= 3.4.0
727081
%ifarch %{multilib_64_archs} sparc sparcv9 ppc
727081
# Ensure glibc{,-devel} is installed for both multilib arches
727081
BuildRequires: /lib/libc.so.6 /usr/lib/libc.so /lib64/libc.so.6 /usr/lib64/libc.so
727081
%endif
727081
Provides: bundled(libiberty)
727081
727081
Patch1: gcc32-multi32-hack.patch
727081
Patch2: gcc32-ice-hack.patch
727081
Patch3: gcc32-ppc64-m32-m64-multilib-only.patch
727081
Patch4: gcc32-bison-1.875c.patch
727081
Patch5: gcc32-i386-prefetch-sse.patch
727081
Patch6: gcc32-convert-move.patch
727081
Patch7: gcc32-libjava-jar-timestamps.patch
727081
Patch8: gcc32-c++-friend-templ-member.patch
727081
Patch9: gcc32-c++-scope-nesting.patch
727081
Patch10: gcc32-libstdc++-symver.patch
727081
Patch11: gcc32-java-intlex.patch
727081
Patch12: gcc32-java-nan.patch
727081
Patch13: gcc32-dwarf2-pruning-keep-spec.patch
727081
Patch14: gcc32-java-bytecode.patch
727081
Patch15: gcc32-pr3581.patch
727081
Patch16: gcc32-libstdc++-limits.patch
727081
Patch17: gcc32-ppc64-crtsavres.patch
727081
Patch18: gcc32-s390-reload-dup.patch
727081
Patch19: gcc32-ppc-altivec-ap.patch
727081
Patch20: gcc32-ppc-mpowerpc64.patch
727081
Patch21: gcc32-null-pointer-check-noncc0.patch
727081
Patch22: gcc32-ppc-movdi_internal64.patch
727081
Patch23: gcc32-c++-reregister-specialization.patch
727081
Patch24: gcc32-c++-pr7566.patch
727081
Patch25: gcc32-c++-pass-by-invisible-ref.patch
727081
Patch26: gcc32-c++-unitialized-self-ref.patch
727081
Patch27: gcc32-tablejump-cleanup.patch
727081
Patch28: gcc32-libstdc++-fully-dynamic-strings.patch
727081
Patch29: gcc32-Winline-doc.patch
727081
Patch30: gcc32-ia64-expand_load_address.patch
727081
Patch31: gcc32-demangle-pr16240.patch
727081
Patch32: gcc32-debug-cdtor.patch
727081
Patch33: gcc32-cxa_demangle-ambiguity.patch
727081
Patch34: gcc32-c++-pr10558.patch
727081
Patch35: gcc32-libstdc++-pr9659.patch
727081
Patch36: gcc32-libstdc++-symver2.patch
727081
Patch37: gcc32-pr19005.patch
727081
Patch38: gcc32-rh149250.patch
727081
Patch39: gcc32-rh156185.patch
727081
Patch40: gcc32-rh156291.patch
727081
Patch41: gcc32-pr18300.patch
727081
Patch42: gcc32-gnuc-rh-release.patch
727081
Patch43: gcc32-weakref.patch
727081
Patch44: gcc32-pr13106.patch
727081
Patch45: gcc32-ppc64-stack-boundary.patch
727081
Patch46: gcc32-pr12799.patch
727081
Patch47: gcc32-pr13041.patch
727081
Patch48: gcc32-pr26208.patch
727081
Patch49: gcc32-rh173224.patch
727081
Patch50: gcc32-rh180778.patch
727081
Patch51: gcc32-rh181894.patch
727081
Patch52: gcc32-rh186252.patch
727081
Patch53: gcc32-pr26208-workaround.patch
727081
Patch54: gcc32-libgcc_eh-hidden.patch
727081
Patch55: gcc32-java-zoneinfo.patch
727081
Patch56: gcc32-CVE-2006-3619.patch
727081
Patch57: gcc32-rh226706.patch
727081
727081
Patch60: gcc32-obstack-lvalues.patch
727081
Patch61: gcc32-fc4-compile.patch
727081
Patch62: gcc32-s390x-compile.patch
727081
Patch63: gcc32-bison.patch
727081
727081
Patch100: compat-libstdc++33-incdir.patch
727081
Patch101: compat-libstdc++33-limits.patch
727081
Patch102: compat-libstdc++33-symver.patch
727081
Patch103: compat-libstdc++33-v3.patch
727081
Patch104: compat-libstdc++33++-fully-dynamic-strings.patch
727081
Patch105: compat-libstdc++33++-symver2.patch
727081
Patch106: compat-libstdc++33-cxa_demangle-ambiguity.patch
727081
Patch107: compat-libstdc++33-ldbl.patch
727081
727081
%define _gnu %{nil}
727081
727081
%ifarch sparc sparcv9
727081
%define gcc_target_platform sparc64-%{_vendor}-linux
727081
%endif
727081
%ifarch ppc
727081
%define gcc_target_platform ppc64-%{_vendor}-linux
727081
%endif
727081
%ifnarch sparc sparcv9 ppc
727081
%define gcc_target_platform %{_target_cpu}-%{_vendor}-linux
727081
%endif
727081
727081
%description
727081
This package includes a GCC 3.2.3-RH compatibility compiler.
727081
727081
%package -n compat-libstdc++-33
727081
Summary: Compatibility standard C++ libraries
727081
Group: System Environment/Libraries
727081
Obsoletes: compat-libstdc++
727081
Obsoletes: compat-gcc-32, compat-gcc-32-c++, compat-gcc-32-g77
727081
727081
%description -n compat-libstdc++-33
727081
The compat-libstdc++ package contains compatibility standard C++ library
727081
from GCC 3.3.4.
727081
727081
%prep
727081
%setup -q -n gcc-%{gcc_version}-%{DATE} -a2
727081
mv gcc-3.3.4-%{LIBSTDCXXDATE}/libstdc++-v3 libstdc++33-v3
727081
%ifarch sparc ppc
727081
#%patch1 -p0 -b .multi32-hack~
727081
%endif
727081
%patch2 -p0 -b .ice-hack~
727081
%patch3 -p0 -b .ppc64-m32-m64-multilib-only~
727081
%patch4 -p0 -b .bison-1.875c~
727081
%patch5 -p0 -b .i386-prefetch-sse~
727081
%patch6 -p0 -b .convert-move~
727081
%patch7 -p0 -b .libjava-jar-timestamps~
727081
%patch8 -p0 -b .c++-friend-templ-member~
727081
#%patch9 -p0 -b .c++-scope-nesting~
727081
%patch10 -p0 -b .libstdc++-symver~
727081
%patch11 -p0 -b .java-intlex~
727081
%patch12 -p0 -b .java-nan~
727081
%patch13 -p0 -b .dwarf2-pruning-keep-spec~
727081
%patch14 -p0 -b .java-bytecode~
727081
%patch15 -p0 -b .pr3581~
727081
%patch16 -p0 -b .libstdc++-limits~
727081
%patch17 -p0 -b .ppc64-crtsavres~
727081
%patch18 -p0 -b .s390-reload-dup~
727081
%patch19 -p0 -b .ppc-altivec-ap~
727081
%patch20 -p0 -b .ppc-mpowerpc64~
727081
%patch21 -p0 -b .null-pointer-check-noncc0~
727081
%patch22 -p0 -b .ppc-movdi_internal64~
727081
%patch23 -p0 -b .c++-reregister-specialization~
727081
%patch24 -p0 -b .c++-pr7566~
727081
%patch25 -p0 -b .c++-pass-by-invisible-ref~
727081
%patch26 -p0 -b .c++-unitialized-self-ref~
727081
%patch27 -p0 -b .tablejump-cleanup~
727081
%patch28 -p0 -b .libstdc++-fully-dynamic-strings~
727081
%patch29 -p0 -b .Winline-doc~
727081
%patch30 -p0 -b .ia64-expand_load_address~
727081
%patch31 -p0 -b .demangle-pr16240~
727081
%patch32 -p0 -b .debug-cdtor~
727081
%patch33 -p0 -b .cxa_demangle-ambiguity~
727081
%patch34 -p0 -b .c++-pr10558~
727081
%patch35 -p0 -b .libstdc++-pr9659~
727081
%patch36 -p0 -b .libstdc++-symver2~
727081
%patch37 -p0 -b .pr19005~
727081
%patch38 -p0 -b .rh149250~
727081
%patch39 -p0 -b .rh156185~
727081
%patch40 -p0 -b .rh156291~
727081
%patch41 -p0 -b .pr18300~
727081
%patch42 -p0 -b .gnuc-rh-release~
727081
%patch43 -p0 -b .weakref~
727081
%patch44 -p0 -b .pr13106~
727081
%patch45 -p0 -b .ppc64-stack-boundary~
727081
%patch46 -p0 -b .pr12799~
727081
%patch47 -p0 -b .pr13041~
727081
%patch48 -p0 -b .pr26208~
727081
%patch49 -p0 -b .rh173224~
727081
%patch50 -p0 -b .rh180778~
727081
%patch51 -p0 -b .rh181894~
727081
%patch52 -p0 -b .rh186252~
727081
%patch53 -p0 -b .pr26208-workaround~
727081
%patch54 -p0 -b .libgcc_eh-hidden~
727081
%patch55 -p0 -b .java-zoneinfo~
727081
%patch56 -p0 -b .CVE-2006-3619~
727081
%patch57 -p0 -b .rh226706~
727081
727081
%patch60 -p0 -b .obstack-lvalues~
727081
%patch61 -p0 -b .fc4-compile~
727081
%patch62 -p0 -b .s390x-compile~
727081
%patch63 -p0 -b .bison~
727081
727081
%patch100 -p0 -b .compat-libstdc++33-incdir~
727081
%patch101 -p0 -b .compat-libstdc++33-limits~
727081
%patch102 -p0 -b .compat-libstdc++33-symver~
727081
%patch103 -p0 -b .compat-libstdc++33-v3~
727081
%patch104 -p0 -b .compat-libstdc++33++-fully-dynamic-strings~
727081
%patch105 -p0 -b .compat-libstdc++33++-symver2~
727081
%patch106 -p0 -b .compat-libstdc++33-cxa_demangle-ambiguity~
727081
%patch107 -p0 -b .compat-libstdc++33-ldbl.patch~
727081
727081
sed -i -e 's/struct siginfo/siginfo_t/' gcc/config/*/linux*.h
727081
727081
%ifarch ppc ppc64 s390 s390x
727081
sed -i -e 's/-lm @LIBUNWIND_FLAG@/-lm @LIBUNWIND_FLAG@ -lnldbl_nonshared/' \
727081
  libstdc++33-v3/src/Makefile.{am,in}
727081
%endif
727081
# Don't need to test C, only check-g++ and libstdc++-v33's make check
727081
sed -i -e 's/\$(RUNTEST) --tool gcc/: $(RUNTEST) --tool gcc/' \
727081
  gcc/Makefile.in
727081
sed -i -e 's/\$\$runtest \$(RUNTESTDEFAULTFLAGS)/: $$runtest $(RUNTESTDEFAULTFLAGS)/' \
727081
  libstdc++-v3/testsuite/Makefile.in
727081
perl -pi -e 's/3\.2\.4/3.2.3/' gcc/version.c
727081
perl -pi -e 's/"%{gcc_version}"/"%{gcc_version} \(release\)"/' gcc/version.c
727081
perl -pi -e 's/\((prerelease|experimental|release|Red Hat[^)]*)\)/\(Red Hat Linux %{gcc_version}-%{gcc_release}\)/' gcc/version.c
727081
727081
cp -a libstdc++33-v3/config/cpu/i{4,3}86/atomicity.h
727081
727081
./contrib/gcc_update --touch
727081
727081
%build
727081
727081
rm -fr obj-%{gcc_target_platform}
727081
mkdir obj-%{gcc_target_platform}
727081
cd obj-%{gcc_target_platform}
727081
727081
mkdir -p ld_hack
727081
cat > ld_hack/ld <<\EOF
727081
#!/bin/sh
727081
case " $* " in *\ -r\ *) exec /usr/bin/ld "$@";; esac
727081
exec /usr/bin/ld --build-id "$@"
727081
EOF
727081
chmod 755 ld_hack/ld
727081
export PATH=`pwd`/ld_hack/${PATH:+:$PATH}
727081
727081
if [ ! -f /usr/lib/locale/de_DE/LC_CTYPE ]; then
727081
  mkdir locale
727081
  localedef -f ISO-8859-1 -i de_DE locale/de_DE
727081
  export LOCPATH=`pwd`/locale:/usr/lib/locale
727081
fi
727081
727081
CC=gcc
727081
OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-fno-rtti//g' -e 's/-fno-exceptions//g'`
727081
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-m64//g;s/-m32//g;s/-m31//g'`
727081
%ifarch %{ix86}
727081
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-mtune=pentium4/-mcpu=i686/g'`
727081
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-mtune=generic/-mcpu=i686/g'`
727081
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-mtune=atom/-mcpu=i686/g'`
727081
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-mtune=atom/-mcpu=i686/g'`
727081
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-march=x86-64//g'`
727081
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-mfpmath=sse//g'`
727081
%endif
727081
%ifarch x86_64
727081
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-mtune=nocona//g'`
727081
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-mtune=generic//g'`
727081
%endif
727081
%ifarch sparc sparcv9 sparc64
727081
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-mcpu=ultrasparc/-mtune=ultrasparc/g'`
727081
%endif
727081
%ifarch s390 s390x
727081
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-march=z9-109//g;s/-march=z10//g;s/-march=z196//g;s/-mtune=z10//g;s/-mtune=zEC12//g'`
727081
%endif
727081
%ifarch ppc ppc64
727081
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-march=power[678]//g;s/-mcpu=power[678]//g;s/-mtune=power[678]//g'`
727081
%endif
727081
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-Wall//g' -e 's/-Wp,-D_FORTIFY_SOURCE=2//g'`
727081
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-fexceptions//g' -e 's/-fasynchronous-unwind-tables//g'`
727081
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-grecord-gcc-switches//g' -e 's/-fstack-protector-strong//g'`
727081
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-fstack-protector//g' -e 's/--param=ssp-buffer-size=[0-9]*//g'`
727081
%ifarch sparc64
727081
cat > gcc64 <<"EOF"
727081
#!/bin/sh
727081
exec /usr/bin/gcc -m64 "$@"
727081
EOF
727081
chmod +x gcc64
727081
CC=`pwd`/gcc64
727081
%endif
727081
%ifarch ppc64
727081
if gcc -m64 -xc -S /dev/null -o - > /dev/null 2>&1; then
727081
  cat > gcc64 <<"EOF"
727081
#!/bin/sh
727081
exec /usr/bin/gcc -m64 "$@"
727081
EOF
727081
  chmod +x gcc64
727081
  CC=`pwd`/gcc64
727081
fi
727081
%endif
727081
CC="$CC" CFLAGS="$OPT_FLAGS" CXXFLAGS="$OPT_FLAGS" XCFLAGS="$OPT_FLAGS" TCFLAGS="$OPT_FLAGS" \
727081
	GCJFLAGS="$OPT_FLAGS" \
727081
	../configure --prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir} \
727081
	--enable-shared --enable-threads=posix --disable-checking \
727081
	--with-system-zlib --enable-__cxa_atexit \
727081
	--enable-languages=c,c++ --disable-libgcj \
727081
%ifarch sparc sparcv9
727081
	--host=%{gcc_target_platform} --build=%{gcc_target_platform} --target=%{gcc_target_platform} --with-cpu=v7
727081
%endif
727081
%ifarch ppc
727081
	--host=%{gcc_target_platform} --build=%{gcc_target_platform} --target=%{gcc_target_platform} --with-cpu=default32
727081
%endif
727081
%ifnarch sparc sparcv9 ppc
727081
	--host=%{gcc_target_platform}
727081
%endif
727081
727081
make %{?_smp_mflags} BOOT_CFLAGS="$OPT_FLAGS" bootstrap-lean
727081
#make %{?_smp_mflags} BOOT_CFLAGS="$OPT_FLAGS" bootstrap
727081
727081
# Fix up libstdc++.so's
727081
for d in `pwd`/%{gcc_target_platform}/libstdc++-v3 `pwd`/%{gcc_target_platform}/*/libstdc++-v3; do
727081
  test -d $d || continue
727081
  d33=`dirname $d`/libstdc++33-v3
727081
  pushd $d/src
727081
    sh %{SOURCE3} .libs/libstdc++.so .libs/ll.so linker.map
727081
    rm .libs/libstdc++.so; mv .libs/ll.so .libs/libstdc++.so
727081
    f=`basename .libs/libstdc++.so.5.0.*`
727081
    f33=`basename $d33/src/.libs/libstdc++.so.5.0.*`
727081
    cp -a $d33/src/.libs/libstdc++.so.5.0.* .libs/
727081
    if [ "$f" != "$f33" ]; then
727081
      ln -sf $f33 .libs/libstdc++.so.5
727081
      ln -sf $f33 .libs/$f
727081
    fi
727081
  popd
727081
  pushd $d33/src
727081
    sh %{SOURCE3} .libs/libstdc++.so .libs/ll.so libstdc++*.ver
727081
    rm .libs/libstdc++.so; mv .libs/ll.so .libs/libstdc++.so
727081
  popd
727081
done
727081
727081
# Make sure we are using system libgcc_s, as system libc might
727081
# use unwinding features that require it.
727081
mv gcc/libgcc_s.so.1{,.bak}
727081
ln -sf /%{_lib}/libgcc_s.so.1 gcc/libgcc_s.so.1
727081
727081
# run the tests.
727081
make %{?_smp_mflags} -k check || :
727081
sed -ie s/libstdc++-v3/libstdc++33-v3/g `find $(find %{gcc_target_platform} -type d -a -name libstdc++33-v3) -name \*.sum`
727081
echo ====================TESTING=========================
727081
( ../contrib/test_summary || : ) 2>&1 | sed -n '/^cat.*EOF/,/^EOF/{/^cat.*EOF/d;/^EOF/d;/^LAST_UPDATED:/d;p;}'
727081
echo ====================TESTING END=====================
727081
727081
%install
727081
rm -fr $RPM_BUILD_ROOT
727081
727081
export PATH=`pwd`/obj-%{gcc_target_platform}/ld_hack/${PATH:+:$PATH}
727081
727081
perl -pi -e \
727081
  's~href="l(ibstdc|atest)~href="http://gcc.gnu.org/onlinedocs/libstdc++/l\1~' \
727081
  libstdc++-v3/docs/html/documentation.html
727081
ln -sf documentation.html libstdc++-v3/docs/html/index.html
727081
find libstdc++-v3/docs/html -name CVS | xargs rm -rf
727081
727081
cd obj-%{gcc_target_platform}
727081
727081
if [ ! -f /usr/lib/locale/de_DE/LC_CTYPE ]; then
727081
  export LOCPATH=`pwd`/locale:/usr/lib/locale
727081
fi
727081
727081
TARGET_PLATFORM=%{gcc_target_platform}
727081
727081
# There are some MP bugs in libstdc++ and libjava Makefiles
727081
# make -C %{gcc_target_platform}/libstdc++-v3
727081
727081
make prefix=$RPM_BUILD_ROOT%{_prefix} mandir=$RPM_BUILD_ROOT%{_mandir} \
727081
  infodir=$RPM_BUILD_ROOT%{_infodir} install
727081
727081
FULLPATH=$RPM_BUILD_ROOT%{_prefix}/lib/gcc-lib/%{gcc_target_platform}/%{gcc_version}
727081
FULLPATH33=$RPM_BUILD_ROOT%{_prefix}/lib/gcc-lib/%{gcc_target_platform}/3.3.4
727081
727081
rm -f $RPM_BUILD_ROOT%{_prefix}/%{_lib}/libstdc++.*a
727081
rm -f $RPM_BUILD_ROOT%{_prefix}/%{_lib}/libsupc++.*a
727081
rm -f $RPM_BUILD_ROOT%{_prefix}/%{_lib}/libstdc++.so*
727081
727081
for d in %{gcc_target_platform}/libstdc++-v3 %{gcc_target_platform}/*/libstdc++-v3; do
727081
  test -d $d || continue
727081
  d33=`dirname $d`/libstdc++33-v3
727081
  b=""
727081
  test x"$d" != x%{gcc_target_platform}/libstdc++-v3 && b=/`basename $(dirname $d)`
727081
  install -m 644 $d/libsupc++/.libs/libsupc++.a $FULLPATH$b/
727081
  install -m 644 $d/src/.libs/libstdc++.a $FULLPATH$b/
727081
  strip -g $FULLPATH$b/*.a
727081
  install -m 644 $d/src/.libs/libstdc++.so $FULLPATH$b/
727081
727081
  mkdir -p $FULLPATH33$b
727081
  install -m 644 $d33/libsupc++/.libs/libsupc++.a $FULLPATH33$b/
727081
  install -m 644 $d33/src/.libs/libstdc++.a $FULLPATH33$b/
727081
  strip -g $FULLPATH33$b/*.a
727081
  install -m 644 $d33/src/.libs/libstdc++.so $FULLPATH33$b/
727081
done
727081
727081
mkdir -p $RPM_BUILD_ROOT/%{_lib}
727081
install -m755 %{gcc_target_platform}/libstdc++33-v3/src/.libs/libstdc++.so.5.0* \
727081
  $RPM_BUILD_ROOT%{_prefix}/%{_lib}/
727081
/sbin/ldconfig -n $RPM_BUILD_ROOT%{_prefix}/%{_lib}/
727081
727081
rm -f $RPM_BUILD_ROOT%{_prefix}/%{_lib}/libgcc_s*
727081
727081
cd ..
727081
727081
for i in $RPM_BUILD_ROOT%{_prefix}/bin/{*gcc,*++,gcov}; do
727081
  mv -f $i ${i}32
727081
done
727081
727081
rm -f $RPM_BUILD_ROOT%{_prefix}/lib*/{libiberty.a,*/libiberty.a}
727081
rm -f $RPM_BUILD_ROOT/lib*/libgcc_s*
727081
727081
%ifarch %{multilib_64_archs}
727081
# Remove libraries for the other arch on multilib arches
727081
rm -f $RPM_BUILD_ROOT%{_prefix}/lib/lib*.so*
727081
rm -f $RPM_BUILD_ROOT%{_prefix}/lib/lib*.a
727081
%else
727081
%ifarch sparc sparcv9 ppc
727081
rm -f $RPM_BUILD_ROOT%{_prefix}/lib64/lib*.so*
727081
rm -f $RPM_BUILD_ROOT%{_prefix}/lib64/lib*.a
727081
%endif
727081
%endif
727081
727081
rm -rf $RPM_BUILD_ROOT%{_prefix}/{lib/gcc-lib,bin,include}
727081
727081
%clean
727081
rm -rf $RPM_BUILD_ROOT
727081
727081
%post -n compat-libstdc++-33 -p /sbin/ldconfig
727081
727081
%postun -n compat-libstdc++-33 -p /sbin/ldconfig
727081
727081
%files -n compat-libstdc++-33
727081
%defattr(-,root,root)
727081
%{_prefix}/%{_lib}/libstdc++.so.5*
727081
727081
%changelog
727081
* Tue Nov  4 2014 Jakub Jelinek  <jakub@redhat.com> 3.2.3-72
727081
- rebuilt against fixed glibc to avoid infinite recursion in btowc (#1159772)
727081
727081
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 3.2.3-71
727081
- Mass rebuild 2014-01-24
727081
727081
* Tue Jan  7 2014 Jakub Jelinek  <jakub@redhat.com> 3.2.3-70
727081
- filter out -fstack-protector-strong, -grecord-gcc-switches and new
727081
  i686, ppc and s390 tunings (#1048850)
727081
727081
* Wed Aug 28 2013 Jakub Jelinek  <jakub@redhat.com> 3.2.3-69
727081
- add %%{?dist} to release (#874993)
727081
727081
* Wed Feb 20 2013 Jakub Jelinek  <jakub@redhat.com> 3.2.3-68.7
727081
- use siginfo_t instead of struct siginfo
727081
727081
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.3-68.6
727081
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
727081
727081
* Mon Oct 15 2012 Jon Ciesla <limburgher@gmail.com> - 3.2.3-68.5
727081
- Provides: bundled(libiberty)
727081
727081
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.3-68.4
727081
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
727081
727081
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.3-68.3
727081
- Rebuilt for c++ ABI breakage
727081
727081
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.3-68.2
727081
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
727081
727081
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.3-68.1
727081
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
727081
727081
* Thu Sep 17 2009 Jakub Jelinek  <jakub@redhat.com> 3.2.3-68
727081
- strip -march=z9-109 and -mtune=z10 from OPT_FLAGS on s390, s390x
727081
  (#523209)
727081
- make sure to use system libgcc_s.so.1 instead of gcc32 one during
727081
  testing
727081
727081
* Tue Jul 28 2009 Jakub Jelinek  <jakub@redhat.com> 3.2.3-67
727081
- replace -mtune=generic in $RPM_OPT_FLAGS with something that
727081
  GCC 3.2.3 groks
727081
727081
* Mon Mar  9 2009 Jakub Jelinek  <jakub@redhat.com> 3.2.3-66
727081
- fix up for latest bison
727081
727081
* Sat Feb 14 2009 Dennis Gilmore <dennis@ausil.us> - 3.2.3-65
727081
- fix to build 32 bit sparc sparcv9
727081
727081
* Tue Jul 15 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 3.2.3-64
727081
- fix license tag
727081
- apply patches with fuzz=2
727081
727081
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 3.2.3-63
727081
- Autorebuild for GCC 4.3
727081
727081
* Tue Oct  9 2007 Jakub Jelinek  <jakub@redhat.com> 3.2.3-62
727081
- rebuilt
727081
727081
* Mon Aug 21 2006 Jakub Jelinek  <jakub@redhat.com> 3.2.3-61
727081
- fix the ppc*/s390* math *l stub changes
727081
727081
* Fri Aug 18 2006 Jakub Jelinek  <jakub@redhat.com> 3.2.3-60
727081
- on ppc*/s390* make sure all needed math *l stubs are included
727081
727081
* Thu Aug 10 2006 Jakub Jelinek  <jakub@redhat.com> 3.2.3-59
727081
- fix cleaning up the buildroot before debuginfo generation
727081
727081
* Thu Aug 10 2006 Jakub Jelinek  <jakub@redhat.com> 3.2.3-58
727081
- include only compat-libstdc++-33 subpackage
727081
727081
* Thu Aug  3 2006 Jakub Jelinek  <jakub@redhat.com> 3.2.3-57
727081
- in 64-bit builds remove 32-bit /usr/lib/lib* libraries from the
727081
  buildroots (and similarly on 32-bit builds remove 64-bit /usr/lib64/lib*)
727081
  before AutoReq generation
727081
727081
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 3.2.3-55.fc5.1
727081
- rebuild
727081
727081
* Sat Feb 11 2006 Jakub Jelinek  <jakub@redhat.com> 3.2.3-55.fc5
727081
- replace -mtune=generic in $RPM_OPT_FLAGS with something that
727081
  GCC 3.2.3 groks
727081
727081
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 3.2.3-54.fc5.2
727081
- bump again for double-long bug on ppc(64)
727081
727081
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 3.2.3-54.fc5.1
727081
- rebuilt for new gcc4.1 snapshot and glibc changes
727081
727081
* Wed Jan  4 2006 Jakub Jelinek  <jakub@redhat.com> 3.2.3-54.fc5
727081
- rebuilt with new gcc, massage $RPM_OPT_FLAGS, as GCC 3.2.3-RH doesn't
727081
  grok -fstack-protector etc.
727081
- make sure glibc and glibc-devel for all multilib arches is installed
727081
  for building (#170601)
727081
- fix compat-libstdc++-33 %%description (#171684)
727081
- disable os_defines.h changes introduced in 3.2.3-45 also for
727081
  IBM xlC compiler (#146196, IT#75174)
727081
- fix pushdecl_class_level for OVERLOADs (Mark Mitchell,
727081
  Alexandre Oliva, #156185)
727081
- reword diagnostics about unresolved overloaded type
727081
  (Alexandre Oliva, #156291, IT#70101)
727081
- fix x86_64 compiler hang when passing object with 3+ base classes by value
727081
  (Zak Kipling, PR target/18300, #164421, #171940, IT#76454)
727081
- predefine __GNUC_RH_RELEASE__ macro to rpm's %%{release} (Alexandre Oliva)
727081
- weakref attribute support, use it in <bits/gthr.h> various C++ headers
727081
  are using (Alexandre Oliva, #165728, IT#73356)
727081
- don't warn in templates about missing return if return type is dependent
727081
  on template parameters (Alexandre Oliva, PR c++/13106, #169044, IT#77857)
727081
- ensure ppc64 keeps stack 16 byte aligned even with dynamic allocation
727081
  (alloca, VLAs), but don't rely on it in the generated code
727081
  (Alexandre Oliva, #169111, IT#76136)
727081
- fix invalid CC clobberation on i?86/x86_64 (Eric Botcazou,
727081
  PR optimization/12799, #169654)
727081
- don't assume hard frame pointer register is STACK_BOUNDARY aligned
727081
  if frame pointer isn't used and the register has been reused
727081
  for something else (Eric Botcazou, PR optimization/13041, #169845)
727081
- fix libstdc++ seekoff bug (Scott Snyder, #151692, IT#66065,
727081
  PR libstdc++/9659)
727081
- don't use .symver directives in libstdc++.a, instead
727081
  provide hidden aliases for the obsolete symbols (#151732, IT#64710)
727081
- fix a strength reduction bug (Jan Hubicka, #149250, IT#66328)
727081
- fix xchgb constraints on i386 (#156104, IT#69633, PR target/19005)
727081
- change __cxa_demangle to match cxx-abi change
727081
  http://www.codesourcery.com/archives/cxx-abi-dev/msg01877.html
727081
  (Jason Merrill, #133406)
727081
- fix ICE on invalid use of template without arguments as primary
727081
  expression (Mark Mitchell, #149492, PR c++/10558)
727081
- fix c++filt/__cxa_demangle segfault on invalidly mangled names
727081
  generated by G++ 3.4 (Ian Lance Taylor, #145781, PR c++/16240)
727081
- disable os_defines.h changes introduced in 3.2.3-45 for non-GCC
727081
  compilers (#144725, #146196)
727081
- fix debugging information in in-charge constructors and
727081
  destructors (Mark Mitchell, #146416, PR debug/11098)
727081
- fix delete_null_pointer_checks on non-cc0 targets (Alan Modra, #141694,
727081
  IT#54408, PR rtl-optimization/14279)
727081
- fix some reload related issues on ppc64 (David Edelsohn, #139099,
727081
  IT#45622, PRs target/16239, target/8480, optimization/8328)
727081
- fix ICE in regenerate_decl_from_template (Mark Mitchell, #142418,
727081
  PR c++/7053)
727081
- fix ICE when printing jump to case label... crosses initialization
727081
  warning (Gabriel Dos Reis, #140830, PR c++/7566)
727081
- fix corner case in passing by invisible reference (Alexandre Oliva,
727081
  IT#54891, #141270)
727081
- fix ICE on code that uses value of reference in reference's initializer
727081
  (Alexandre Oliva, #141274, IT#36304)
727081
- avoid moving jumptable away from corresponding jump even if there is an
727081
  intervening barrier (Josef Zlomek, #131378)
727081
- with -D_GLIBCXX_FULLY_DYNAMIC_STRING, STL should now avoid
727081
  _S_empty_rep_storage (Paolo Carlini, #131030, IT#45103, PR libstdc++/16612)
727081
- document -Winline only works for languages that use RTL inliner (Java,
727081
  Ada, #141272, IT#28331)
727081
727081
* Tue Mar  8 2005 Jakub Jelinek  <jakub@redhat.com> 3.2.3-47.fc4
727081
- new compatibility package