summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2008-11-13 07:55:18 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2008-11-13 07:55:18 +0000
commit86b2da4fb7bec6162af76b899f8f321e02830b62 (patch)
tree93749e737deaa2ae4bbbc7841a68f346b6459fb8
parent13873d54e488ac404492dd89e467b12b030df25f (diff)
Regenerate.
-rw-r--r--contrib/crossrpms/rtems4.8/arm/rtems-4.8-arm-rtems4.8-gcc.spec35
-rw-r--r--contrib/crossrpms/rtems4.8/bfin/rtems-4.8-bfin-rtems4.8-gcc.spec35
-rw-r--r--contrib/crossrpms/rtems4.8/h8300/rtems-4.8-h8300-rtems4.8-gcc.spec35
-rw-r--r--contrib/crossrpms/rtems4.8/i386/rtems-4.8-i386-rtems4.8-gcc.spec35
-rw-r--r--contrib/crossrpms/rtems4.8/m68k/rtems-4.8-m68k-rtems4.8-gcc.spec35
-rw-r--r--contrib/crossrpms/rtems4.8/mips/rtems-4.8-mips-rtems4.8-gcc.spec35
-rw-r--r--contrib/crossrpms/rtems4.8/powerpc/rtems-4.8-powerpc-rtems4.8-gcc.spec35
-rw-r--r--contrib/crossrpms/rtems4.8/sh/rtems-4.8-sh-rtems4.8-gcc.spec35
-rw-r--r--contrib/crossrpms/rtems4.8/sparc/rtems-4.8-sparc-rtems4.8-gcc.spec35
9 files changed, 288 insertions, 27 deletions
diff --git a/contrib/crossrpms/rtems4.8/arm/rtems-4.8-arm-rtems4.8-gcc.spec b/contrib/crossrpms/rtems4.8/arm/rtems-4.8-arm-rtems4.8-gcc.spec
index c52ec35f07..a3c66b1418 100644
--- a/contrib/crossrpms/rtems4.8/arm/rtems-4.8-arm-rtems4.8-gcc.spec
+++ b/contrib/crossrpms/rtems4.8/arm/rtems-4.8-arm-rtems4.8-gcc.spec
@@ -40,7 +40,7 @@ Summary: arm-rtems4.8 gcc
Group: Development/Tools
Version: %{gcc_rpmvers}
-Release: 31%{?dist}
+Release: 32%{?dist}
License: GPL
URL: http://gcc.gnu.org
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -55,7 +55,7 @@ BuildRequires: gmp-devel >= 4.1
BuildRequires: %{_host_rpmprefix}gmp-devel
BuildRequires: %{_host_rpmprefix}mpfr-devel
%endif
-%if "%{?fedora}" >= "8"
+%if 0%{?fedora} >= 8
BuildRequires: mpfr-devel >= 2.3.0
%endif
%if "%{?suse}" > "10.3"
@@ -179,7 +179,8 @@ cd ..
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \
%else
- CC="%{__cc} ${RPM_OPT_FLAGS}" \
+# gcc is not ready to be compiled with -std=gnu99
+ CC=$(echo "%{__cc} ${RPM_OPT_FLAGS}" | sed -e 's,-std=gnu99 ,,') \
%endif
../gcc-%{gcc_pkgvers}/configure \
--prefix=%{_prefix} \
@@ -383,6 +384,30 @@ EOF
chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
%define __find_requires %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
+%ifnarch noarch
+# Extract %%__debug_install_post into debug_install_post~
+cat << \EOF > debug_install_post~
+%__debug_install_post
+EOF
+
+# Generate customized debug_install_post script
+cat debug_install_post~ | while read a x y; do
+case $a in
+# Prevent find-debuginfo.sh* from trying to handle foreign binaries
+*/find-debuginfo.sh)
+ b=$(basename $a)
+ sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
+ chmod a+x $b
+ ;;
+esac
+done
+
+sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
+< debug_install_post~ > debug_install_post
+%define __debug_install_post . ./debug_install_post
+
+%endif
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -432,6 +457,10 @@ GNU cc compiler for arm-rtems4.8.
%endif
%endif
+%if "%{gcc_version}" >= "4.3.0"
+%dir %{gcclib}/arm-rtems4.8/%{gcc_version}/include-fixed
+%endif
+
%dir %{gccexec}
%dir %{gccexec}/arm-rtems4.8
%dir %{gccexec}/arm-rtems4.8/%{gcc_version}
diff --git a/contrib/crossrpms/rtems4.8/bfin/rtems-4.8-bfin-rtems4.8-gcc.spec b/contrib/crossrpms/rtems4.8/bfin/rtems-4.8-bfin-rtems4.8-gcc.spec
index 32d3907980..aed9ec0bc5 100644
--- a/contrib/crossrpms/rtems4.8/bfin/rtems-4.8-bfin-rtems4.8-gcc.spec
+++ b/contrib/crossrpms/rtems4.8/bfin/rtems-4.8-bfin-rtems4.8-gcc.spec
@@ -40,7 +40,7 @@ Summary: bfin-rtems4.8 gcc
Group: Development/Tools
Version: %{gcc_rpmvers}
-Release: 31%{?dist}
+Release: 32%{?dist}
License: GPL
URL: http://gcc.gnu.org
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -55,7 +55,7 @@ BuildRequires: gmp-devel >= 4.1
BuildRequires: %{_host_rpmprefix}gmp-devel
BuildRequires: %{_host_rpmprefix}mpfr-devel
%endif
-%if "%{?fedora}" >= "8"
+%if 0%{?fedora} >= 8
BuildRequires: mpfr-devel >= 2.3.0
%endif
%if "%{?suse}" > "10.3"
@@ -173,7 +173,8 @@ cd ..
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \
%else
- CC="%{__cc} ${RPM_OPT_FLAGS}" \
+# gcc is not ready to be compiled with -std=gnu99
+ CC=$(echo "%{__cc} ${RPM_OPT_FLAGS}" | sed -e 's,-std=gnu99 ,,') \
%endif
../gcc-%{gcc_pkgvers}/configure \
--prefix=%{_prefix} \
@@ -377,6 +378,30 @@ EOF
chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
%define __find_requires %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
+%ifnarch noarch
+# Extract %%__debug_install_post into debug_install_post~
+cat << \EOF > debug_install_post~
+%__debug_install_post
+EOF
+
+# Generate customized debug_install_post script
+cat debug_install_post~ | while read a x y; do
+case $a in
+# Prevent find-debuginfo.sh* from trying to handle foreign binaries
+*/find-debuginfo.sh)
+ b=$(basename $a)
+ sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
+ chmod a+x $b
+ ;;
+esac
+done
+
+sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
+< debug_install_post~ > debug_install_post
+%define __debug_install_post . ./debug_install_post
+
+%endif
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -426,6 +451,10 @@ GNU cc compiler for bfin-rtems4.8.
%endif
%endif
+%if "%{gcc_version}" >= "4.3.0"
+%dir %{gcclib}/bfin-rtems4.8/%{gcc_version}/include-fixed
+%endif
+
%dir %{gccexec}
%dir %{gccexec}/bfin-rtems4.8
%dir %{gccexec}/bfin-rtems4.8/%{gcc_version}
diff --git a/contrib/crossrpms/rtems4.8/h8300/rtems-4.8-h8300-rtems4.8-gcc.spec b/contrib/crossrpms/rtems4.8/h8300/rtems-4.8-h8300-rtems4.8-gcc.spec
index bce11a50d9..97fed8b02b 100644
--- a/contrib/crossrpms/rtems4.8/h8300/rtems-4.8-h8300-rtems4.8-gcc.spec
+++ b/contrib/crossrpms/rtems4.8/h8300/rtems-4.8-h8300-rtems4.8-gcc.spec
@@ -40,7 +40,7 @@ Summary: h8300-rtems4.8 gcc
Group: Development/Tools
Version: %{gcc_rpmvers}
-Release: 31%{?dist}
+Release: 32%{?dist}
License: GPL
URL: http://gcc.gnu.org
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -55,7 +55,7 @@ BuildRequires: gmp-devel >= 4.1
BuildRequires: %{_host_rpmprefix}gmp-devel
BuildRequires: %{_host_rpmprefix}mpfr-devel
%endif
-%if "%{?fedora}" >= "8"
+%if 0%{?fedora} >= 8
BuildRequires: mpfr-devel >= 2.3.0
%endif
%if "%{?suse}" > "10.3"
@@ -179,7 +179,8 @@ cd ..
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \
%else
- CC="%{__cc} ${RPM_OPT_FLAGS}" \
+# gcc is not ready to be compiled with -std=gnu99
+ CC=$(echo "%{__cc} ${RPM_OPT_FLAGS}" | sed -e 's,-std=gnu99 ,,') \
%endif
../gcc-%{gcc_pkgvers}/configure \
--prefix=%{_prefix} \
@@ -383,6 +384,30 @@ EOF
chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
%define __find_requires %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
+%ifnarch noarch
+# Extract %%__debug_install_post into debug_install_post~
+cat << \EOF > debug_install_post~
+%__debug_install_post
+EOF
+
+# Generate customized debug_install_post script
+cat debug_install_post~ | while read a x y; do
+case $a in
+# Prevent find-debuginfo.sh* from trying to handle foreign binaries
+*/find-debuginfo.sh)
+ b=$(basename $a)
+ sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
+ chmod a+x $b
+ ;;
+esac
+done
+
+sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
+< debug_install_post~ > debug_install_post
+%define __debug_install_post . ./debug_install_post
+
+%endif
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -432,6 +457,10 @@ GNU cc compiler for h8300-rtems4.8.
%endif
%endif
+%if "%{gcc_version}" >= "4.3.0"
+%dir %{gcclib}/h8300-rtems4.8/%{gcc_version}/include-fixed
+%endif
+
%dir %{gccexec}
%dir %{gccexec}/h8300-rtems4.8
%dir %{gccexec}/h8300-rtems4.8/%{gcc_version}
diff --git a/contrib/crossrpms/rtems4.8/i386/rtems-4.8-i386-rtems4.8-gcc.spec b/contrib/crossrpms/rtems4.8/i386/rtems-4.8-i386-rtems4.8-gcc.spec
index 5428f06c6d..37354d9b12 100644
--- a/contrib/crossrpms/rtems4.8/i386/rtems-4.8-i386-rtems4.8-gcc.spec
+++ b/contrib/crossrpms/rtems4.8/i386/rtems-4.8-i386-rtems4.8-gcc.spec
@@ -40,7 +40,7 @@ Summary: i386-rtems4.8 gcc
Group: Development/Tools
Version: %{gcc_rpmvers}
-Release: 31%{?dist}
+Release: 32%{?dist}
License: GPL
URL: http://gcc.gnu.org
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -55,7 +55,7 @@ BuildRequires: gmp-devel >= 4.1
BuildRequires: %{_host_rpmprefix}gmp-devel
BuildRequires: %{_host_rpmprefix}mpfr-devel
%endif
-%if "%{?fedora}" >= "8"
+%if 0%{?fedora} >= 8
BuildRequires: mpfr-devel >= 2.3.0
%endif
%if "%{?suse}" > "10.3"
@@ -179,7 +179,8 @@ cd ..
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \
%else
- CC="%{__cc} ${RPM_OPT_FLAGS}" \
+# gcc is not ready to be compiled with -std=gnu99
+ CC=$(echo "%{__cc} ${RPM_OPT_FLAGS}" | sed -e 's,-std=gnu99 ,,') \
%endif
../gcc-%{gcc_pkgvers}/configure \
--prefix=%{_prefix} \
@@ -383,6 +384,30 @@ EOF
chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
%define __find_requires %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
+%ifnarch noarch
+# Extract %%__debug_install_post into debug_install_post~
+cat << \EOF > debug_install_post~
+%__debug_install_post
+EOF
+
+# Generate customized debug_install_post script
+cat debug_install_post~ | while read a x y; do
+case $a in
+# Prevent find-debuginfo.sh* from trying to handle foreign binaries
+*/find-debuginfo.sh)
+ b=$(basename $a)
+ sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
+ chmod a+x $b
+ ;;
+esac
+done
+
+sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
+< debug_install_post~ > debug_install_post
+%define __debug_install_post . ./debug_install_post
+
+%endif
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -432,6 +457,10 @@ GNU cc compiler for i386-rtems4.8.
%endif
%endif
+%if "%{gcc_version}" >= "4.3.0"
+%dir %{gcclib}/i386-rtems4.8/%{gcc_version}/include-fixed
+%endif
+
%dir %{gccexec}
%dir %{gccexec}/i386-rtems4.8
%dir %{gccexec}/i386-rtems4.8/%{gcc_version}
diff --git a/contrib/crossrpms/rtems4.8/m68k/rtems-4.8-m68k-rtems4.8-gcc.spec b/contrib/crossrpms/rtems4.8/m68k/rtems-4.8-m68k-rtems4.8-gcc.spec
index d5d8bb21ef..d1b784846c 100644
--- a/contrib/crossrpms/rtems4.8/m68k/rtems-4.8-m68k-rtems4.8-gcc.spec
+++ b/contrib/crossrpms/rtems4.8/m68k/rtems-4.8-m68k-rtems4.8-gcc.spec
@@ -40,7 +40,7 @@ Summary: m68k-rtems4.8 gcc
Group: Development/Tools
Version: %{gcc_rpmvers}
-Release: 31%{?dist}
+Release: 32%{?dist}
License: GPL
URL: http://gcc.gnu.org
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -55,7 +55,7 @@ BuildRequires: gmp-devel >= 4.1
BuildRequires: %{_host_rpmprefix}gmp-devel
BuildRequires: %{_host_rpmprefix}mpfr-devel
%endif
-%if "%{?fedora}" >= "8"
+%if 0%{?fedora} >= 8
BuildRequires: mpfr-devel >= 2.3.0
%endif
%if "%{?suse}" > "10.3"
@@ -179,7 +179,8 @@ cd ..
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \
%else
- CC="%{__cc} ${RPM_OPT_FLAGS}" \
+# gcc is not ready to be compiled with -std=gnu99
+ CC=$(echo "%{__cc} ${RPM_OPT_FLAGS}" | sed -e 's,-std=gnu99 ,,') \
%endif
../gcc-%{gcc_pkgvers}/configure \
--prefix=%{_prefix} \
@@ -383,6 +384,30 @@ EOF
chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
%define __find_requires %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
+%ifnarch noarch
+# Extract %%__debug_install_post into debug_install_post~
+cat << \EOF > debug_install_post~
+%__debug_install_post
+EOF
+
+# Generate customized debug_install_post script
+cat debug_install_post~ | while read a x y; do
+case $a in
+# Prevent find-debuginfo.sh* from trying to handle foreign binaries
+*/find-debuginfo.sh)
+ b=$(basename $a)
+ sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
+ chmod a+x $b
+ ;;
+esac
+done
+
+sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
+< debug_install_post~ > debug_install_post
+%define __debug_install_post . ./debug_install_post
+
+%endif
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -432,6 +457,10 @@ GNU cc compiler for m68k-rtems4.8.
%endif
%endif
+%if "%{gcc_version}" >= "4.3.0"
+%dir %{gcclib}/m68k-rtems4.8/%{gcc_version}/include-fixed
+%endif
+
%dir %{gccexec}
%dir %{gccexec}/m68k-rtems4.8
%dir %{gccexec}/m68k-rtems4.8/%{gcc_version}
diff --git a/contrib/crossrpms/rtems4.8/mips/rtems-4.8-mips-rtems4.8-gcc.spec b/contrib/crossrpms/rtems4.8/mips/rtems-4.8-mips-rtems4.8-gcc.spec
index dea696990e..63a9fac1f0 100644
--- a/contrib/crossrpms/rtems4.8/mips/rtems-4.8-mips-rtems4.8-gcc.spec
+++ b/contrib/crossrpms/rtems4.8/mips/rtems-4.8-mips-rtems4.8-gcc.spec
@@ -40,7 +40,7 @@ Summary: mips-rtems4.8 gcc
Group: Development/Tools
Version: %{gcc_rpmvers}
-Release: 31%{?dist}
+Release: 32%{?dist}
License: GPL
URL: http://gcc.gnu.org
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -55,7 +55,7 @@ BuildRequires: gmp-devel >= 4.1
BuildRequires: %{_host_rpmprefix}gmp-devel
BuildRequires: %{_host_rpmprefix}mpfr-devel
%endif
-%if "%{?fedora}" >= "8"
+%if 0%{?fedora} >= 8
BuildRequires: mpfr-devel >= 2.3.0
%endif
%if "%{?suse}" > "10.3"
@@ -179,7 +179,8 @@ cd ..
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \
%else
- CC="%{__cc} ${RPM_OPT_FLAGS}" \
+# gcc is not ready to be compiled with -std=gnu99
+ CC=$(echo "%{__cc} ${RPM_OPT_FLAGS}" | sed -e 's,-std=gnu99 ,,') \
%endif
../gcc-%{gcc_pkgvers}/configure \
--prefix=%{_prefix} \
@@ -383,6 +384,30 @@ EOF
chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
%define __find_requires %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
+%ifnarch noarch
+# Extract %%__debug_install_post into debug_install_post~
+cat << \EOF > debug_install_post~
+%__debug_install_post
+EOF
+
+# Generate customized debug_install_post script
+cat debug_install_post~ | while read a x y; do
+case $a in
+# Prevent find-debuginfo.sh* from trying to handle foreign binaries
+*/find-debuginfo.sh)
+ b=$(basename $a)
+ sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
+ chmod a+x $b
+ ;;
+esac
+done
+
+sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
+< debug_install_post~ > debug_install_post
+%define __debug_install_post . ./debug_install_post
+
+%endif
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -432,6 +457,10 @@ GNU cc compiler for mips-rtems4.8.
%endif
%endif
+%if "%{gcc_version}" >= "4.3.0"
+%dir %{gcclib}/mips-rtems4.8/%{gcc_version}/include-fixed
+%endif
+
%dir %{gccexec}
%dir %{gccexec}/mips-rtems4.8
%dir %{gccexec}/mips-rtems4.8/%{gcc_version}
diff --git a/contrib/crossrpms/rtems4.8/powerpc/rtems-4.8-powerpc-rtems4.8-gcc.spec b/contrib/crossrpms/rtems4.8/powerpc/rtems-4.8-powerpc-rtems4.8-gcc.spec
index e85c781c37..b041744ce9 100644
--- a/contrib/crossrpms/rtems4.8/powerpc/rtems-4.8-powerpc-rtems4.8-gcc.spec
+++ b/contrib/crossrpms/rtems4.8/powerpc/rtems-4.8-powerpc-rtems4.8-gcc.spec
@@ -40,7 +40,7 @@ Summary: powerpc-rtems4.8 gcc
Group: Development/Tools
Version: %{gcc_rpmvers}
-Release: 31%{?dist}
+Release: 32%{?dist}
License: GPL
URL: http://gcc.gnu.org
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -55,7 +55,7 @@ BuildRequires: gmp-devel >= 4.1
BuildRequires: %{_host_rpmprefix}gmp-devel
BuildRequires: %{_host_rpmprefix}mpfr-devel
%endif
-%if "%{?fedora}" >= "8"
+%if 0%{?fedora} >= 8
BuildRequires: mpfr-devel >= 2.3.0
%endif
%if "%{?suse}" > "10.3"
@@ -179,7 +179,8 @@ cd ..
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \
%else
- CC="%{__cc} ${RPM_OPT_FLAGS}" \
+# gcc is not ready to be compiled with -std=gnu99
+ CC=$(echo "%{__cc} ${RPM_OPT_FLAGS}" | sed -e 's,-std=gnu99 ,,') \
%endif
../gcc-%{gcc_pkgvers}/configure \
--prefix=%{_prefix} \
@@ -383,6 +384,30 @@ EOF
chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
%define __find_requires %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
+%ifnarch noarch
+# Extract %%__debug_install_post into debug_install_post~
+cat << \EOF > debug_install_post~
+%__debug_install_post
+EOF
+
+# Generate customized debug_install_post script
+cat debug_install_post~ | while read a x y; do
+case $a in
+# Prevent find-debuginfo.sh* from trying to handle foreign binaries
+*/find-debuginfo.sh)
+ b=$(basename $a)
+ sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
+ chmod a+x $b
+ ;;
+esac
+done
+
+sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
+< debug_install_post~ > debug_install_post
+%define __debug_install_post . ./debug_install_post
+
+%endif
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -432,6 +457,10 @@ GNU cc compiler for powerpc-rtems4.8.
%endif
%endif
+%if "%{gcc_version}" >= "4.3.0"
+%dir %{gcclib}/powerpc-rtems4.8/%{gcc_version}/include-fixed
+%endif
+
%dir %{gccexec}
%dir %{gccexec}/powerpc-rtems4.8
%dir %{gccexec}/powerpc-rtems4.8/%{gcc_version}
diff --git a/contrib/crossrpms/rtems4.8/sh/rtems-4.8-sh-rtems4.8-gcc.spec b/contrib/crossrpms/rtems4.8/sh/rtems-4.8-sh-rtems4.8-gcc.spec
index 36efc89aff..a7f6d71c98 100644
--- a/contrib/crossrpms/rtems4.8/sh/rtems-4.8-sh-rtems4.8-gcc.spec
+++ b/contrib/crossrpms/rtems4.8/sh/rtems-4.8-sh-rtems4.8-gcc.spec
@@ -40,7 +40,7 @@ Summary: sh-rtems4.8 gcc
Group: Development/Tools
Version: %{gcc_rpmvers}
-Release: 31%{?dist}
+Release: 32%{?dist}
License: GPL
URL: http://gcc.gnu.org
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -55,7 +55,7 @@ BuildRequires: gmp-devel >= 4.1
BuildRequires: %{_host_rpmprefix}gmp-devel
BuildRequires: %{_host_rpmprefix}mpfr-devel
%endif
-%if "%{?fedora}" >= "8"
+%if 0%{?fedora} >= 8
BuildRequires: mpfr-devel >= 2.3.0
%endif
%if "%{?suse}" > "10.3"
@@ -179,7 +179,8 @@ cd ..
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \
%else
- CC="%{__cc} ${RPM_OPT_FLAGS}" \
+# gcc is not ready to be compiled with -std=gnu99
+ CC=$(echo "%{__cc} ${RPM_OPT_FLAGS}" | sed -e 's,-std=gnu99 ,,') \
%endif
../gcc-%{gcc_pkgvers}/configure \
--prefix=%{_prefix} \
@@ -383,6 +384,30 @@ EOF
chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
%define __find_requires %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
+%ifnarch noarch
+# Extract %%__debug_install_post into debug_install_post~
+cat << \EOF > debug_install_post~
+%__debug_install_post
+EOF
+
+# Generate customized debug_install_post script
+cat debug_install_post~ | while read a x y; do
+case $a in
+# Prevent find-debuginfo.sh* from trying to handle foreign binaries
+*/find-debuginfo.sh)
+ b=$(basename $a)
+ sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
+ chmod a+x $b
+ ;;
+esac
+done
+
+sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
+< debug_install_post~ > debug_install_post
+%define __debug_install_post . ./debug_install_post
+
+%endif
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -432,6 +457,10 @@ GNU cc compiler for sh-rtems4.8.
%endif
%endif
+%if "%{gcc_version}" >= "4.3.0"
+%dir %{gcclib}/sh-rtems4.8/%{gcc_version}/include-fixed
+%endif
+
%dir %{gccexec}
%dir %{gccexec}/sh-rtems4.8
%dir %{gccexec}/sh-rtems4.8/%{gcc_version}
diff --git a/contrib/crossrpms/rtems4.8/sparc/rtems-4.8-sparc-rtems4.8-gcc.spec b/contrib/crossrpms/rtems4.8/sparc/rtems-4.8-sparc-rtems4.8-gcc.spec
index b3815931c3..a9c0946591 100644
--- a/contrib/crossrpms/rtems4.8/sparc/rtems-4.8-sparc-rtems4.8-gcc.spec
+++ b/contrib/crossrpms/rtems4.8/sparc/rtems-4.8-sparc-rtems4.8-gcc.spec
@@ -40,7 +40,7 @@ Summary: sparc-rtems4.8 gcc
Group: Development/Tools
Version: %{gcc_rpmvers}
-Release: 31%{?dist}
+Release: 32%{?dist}
License: GPL
URL: http://gcc.gnu.org
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -55,7 +55,7 @@ BuildRequires: gmp-devel >= 4.1
BuildRequires: %{_host_rpmprefix}gmp-devel
BuildRequires: %{_host_rpmprefix}mpfr-devel
%endif
-%if "%{?fedora}" >= "8"
+%if 0%{?fedora} >= 8
BuildRequires: mpfr-devel >= 2.3.0
%endif
%if "%{?suse}" > "10.3"
@@ -179,7 +179,8 @@ cd ..
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \
%else
- CC="%{__cc} ${RPM_OPT_FLAGS}" \
+# gcc is not ready to be compiled with -std=gnu99
+ CC=$(echo "%{__cc} ${RPM_OPT_FLAGS}" | sed -e 's,-std=gnu99 ,,') \
%endif
../gcc-%{gcc_pkgvers}/configure \
--prefix=%{_prefix} \
@@ -383,6 +384,30 @@ EOF
chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
%define __find_requires %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
+%ifnarch noarch
+# Extract %%__debug_install_post into debug_install_post~
+cat << \EOF > debug_install_post~
+%__debug_install_post
+EOF
+
+# Generate customized debug_install_post script
+cat debug_install_post~ | while read a x y; do
+case $a in
+# Prevent find-debuginfo.sh* from trying to handle foreign binaries
+*/find-debuginfo.sh)
+ b=$(basename $a)
+ sed -e 's,find "$RPM_BUILD_ROOT" !,find "$RPM_BUILD_ROOT"%_bindir "$RPM_BUILD_ROOT"%_libexecdir !,' $a > $b
+ chmod a+x $b
+ ;;
+esac
+done
+
+sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
+< debug_install_post~ > debug_install_post
+%define __debug_install_post . ./debug_install_post
+
+%endif
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -432,6 +457,10 @@ GNU cc compiler for sparc-rtems4.8.
%endif
%endif
+%if "%{gcc_version}" >= "4.3.0"
+%dir %{gcclib}/sparc-rtems4.8/%{gcc_version}/include-fixed
+%endif
+
%dir %{gccexec}
%dir %{gccexec}/sparc-rtems4.8
%dir %{gccexec}/sparc-rtems4.8/%{gcc_version}