summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2008-09-03 22:48:11 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2008-09-03 22:48:11 +0000
commit9589c665125054e525dd0ebab87e05322c889ec0 (patch)
tree792c88ae1b174f377e07b42604077559e634e730 /contrib
parentSync with rtems-4.10. (diff)
downloadrtems-9589c665125054e525dd0ebab87e05322c889ec0.tar.bz2
Regenerate.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/crossrpms/rtems4.9/arm/rtems-4.9-arm-rtems4.9-binutils.spec25
-rw-r--r--contrib/crossrpms/rtems4.9/arm/rtems-4.9-arm-rtems4.9-cpukit.spec12
-rw-r--r--contrib/crossrpms/rtems4.9/arm/rtems-4.9-arm-rtems4.9-gcc.spec26
-rw-r--r--contrib/crossrpms/rtems4.9/arm/rtems-4.9-arm-rtems4.9-gdb.spec6
-rw-r--r--contrib/crossrpms/rtems4.9/avr/rtems-4.9-avr-rtems4.9-binutils.spec25
-rw-r--r--contrib/crossrpms/rtems4.9/avr/rtems-4.9-avr-rtems4.9-cpukit.spec12
-rw-r--r--contrib/crossrpms/rtems4.9/avr/rtems-4.9-avr-rtems4.9-gcc.spec20
-rw-r--r--contrib/crossrpms/rtems4.9/avr/rtems-4.9-avr-rtems4.9-gdb.spec6
-rw-r--r--contrib/crossrpms/rtems4.9/bfin/rtems-4.9-bfin-rtems4.9-binutils.spec25
-rw-r--r--contrib/crossrpms/rtems4.9/bfin/rtems-4.9-bfin-rtems4.9-gcc.spec20
-rw-r--r--contrib/crossrpms/rtems4.9/bfin/rtems-4.9-bfin-rtems4.9-gdb.spec6
-rw-r--r--contrib/crossrpms/rtems4.9/h8300/rtems-4.9-h8300-rtems4.9-binutils.spec25
-rw-r--r--contrib/crossrpms/rtems4.9/h8300/rtems-4.9-h8300-rtems4.9-cpukit.spec12
-rw-r--r--contrib/crossrpms/rtems4.9/h8300/rtems-4.9-h8300-rtems4.9-gcc.spec29
-rw-r--r--contrib/crossrpms/rtems4.9/h8300/rtems-4.9-h8300-rtems4.9-gdb.spec6
-rw-r--r--contrib/crossrpms/rtems4.9/i386/rtems-4.9-i386-rtems4.9-binutils.spec25
-rw-r--r--contrib/crossrpms/rtems4.9/i386/rtems-4.9-i386-rtems4.9-cpukit.spec12
-rw-r--r--contrib/crossrpms/rtems4.9/i386/rtems-4.9-i386-rtems4.9-gcc.spec26
-rw-r--r--contrib/crossrpms/rtems4.9/i386/rtems-4.9-i386-rtems4.9-gdb.spec6
-rw-r--r--contrib/crossrpms/rtems4.9/m68k/rtems-4.9-m68k-rtems4.9-binutils.spec5
-rw-r--r--contrib/crossrpms/rtems4.9/m68k/rtems-4.9-m68k-rtems4.9-gcc.spec22
-rw-r--r--contrib/crossrpms/rtems4.9/m68k/rtems-4.9-m68k-rtems4.9-gdb.spec2
-rw-r--r--contrib/crossrpms/rtems4.9/mips/rtems-4.9-mips-rtems4.9-binutils.spec25
-rw-r--r--contrib/crossrpms/rtems4.9/mips/rtems-4.9-mips-rtems4.9-cpukit.spec12
-rw-r--r--contrib/crossrpms/rtems4.9/mips/rtems-4.9-mips-rtems4.9-gcc.spec26
-rw-r--r--contrib/crossrpms/rtems4.9/mips/rtems-4.9-mips-rtems4.9-gdb.spec6
-rw-r--r--contrib/crossrpms/rtems4.9/mipstx39/rtems-4.9-mipstx39-rtems4.9-gdb.spec6
-rw-r--r--contrib/crossrpms/rtems4.9/powerpc/rtems-4.9-powerpc-rtems4.9-binutils.spec25
-rw-r--r--contrib/crossrpms/rtems4.9/powerpc/rtems-4.9-powerpc-rtems4.9-cpukit.spec12
-rw-r--r--contrib/crossrpms/rtems4.9/powerpc/rtems-4.9-powerpc-rtems4.9-gcc.spec26
-rw-r--r--contrib/crossrpms/rtems4.9/powerpc/rtems-4.9-powerpc-rtems4.9-gdb.spec6
-rw-r--r--contrib/crossrpms/rtems4.9/sh/rtems-4.9-sh-rtems4.9-binutils.spec25
-rw-r--r--contrib/crossrpms/rtems4.9/sh/rtems-4.9-sh-rtems4.9-cpukit.spec12
-rw-r--r--contrib/crossrpms/rtems4.9/sh/rtems-4.9-sh-rtems4.9-gcc.spec26
-rw-r--r--contrib/crossrpms/rtems4.9/sh/rtems-4.9-sh-rtems4.9-gdb.spec6
-rw-r--r--contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-binutils.spec25
-rw-r--r--contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-cpukit.spec12
-rw-r--r--contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-gcc.spec26
-rw-r--r--contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-gdb.spec6
39 files changed, 476 insertions, 159 deletions
diff --git a/contrib/crossrpms/rtems4.9/arm/rtems-4.9-arm-rtems4.9-binutils.spec b/contrib/crossrpms/rtems4.9/arm/rtems-4.9-arm-rtems4.9-binutils.spec
index 4ce2807940..940a6985a3 100644
--- a/contrib/crossrpms/rtems4.9/arm/rtems-4.9-arm-rtems4.9-binutils.spec
+++ b/contrib/crossrpms/rtems4.9/arm/rtems-4.9-arm-rtems4.9-binutils.spec
@@ -13,6 +13,18 @@
%define _exeext %{nil}
%endif
+%ifos cygwin cygwin32
+%define optflags -O3 -pipe -march=i486 -funroll-loops
+%define _libdir %{_exec_prefix}/lib
+%define debug_package %{nil}
+%endif
+
+%if "%{_build}" != "%{_host}"
+%define _host_rpmprefix rtems-4.9-%{_host}-
+%else
+%define _host_rpmprefix %{nil}
+%endif
+
%define binutils_pkgvers 2.18
%define binutils_version 2.18
%define binutils_rpmvers %{expand:%(echo "2.18" | tr - _ )}
@@ -26,6 +38,8 @@ License: GPL/LGPL
URL: http://sources.redhat.com/binutils
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires: %{_host_rpmprefix}gcc
+
%if "%{binutils_version}" >= "2.18"
# Bug in bfd: Doesn't build without texinfo installed
BuildRequires: texinfo >= 4.2
@@ -42,7 +56,7 @@ Requires: rtems-4.9-binutils-common
Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
%{?_without_sources:NoSource: 0}
%if "%{binutils_version}" == "2.18"
-Patch0: binutils-2.18-rtems4.9-20080211.diff
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/binutils-2.18-rtems4.9-20080211.diff
%endif
%description
@@ -56,12 +70,16 @@ cd binutils-%{binutils_pkgvers}
cd ..
%build
+ export PATH="%{_bindir}:${PATH}"
%if "arm-rtems4.9" == "i686-pc-cygwin"
# The cygwin sources are leaking memory
RPM_OPT_FLAGS="$(echo "$RPM_OPT_FLAGS"|sed -e 's; -Wp,-D_FORTIFY_SOURCE=2;;')"
%endif
mkdir -p build
cd build
+%if "%{_build}" != "%{_host}"
+ CFLAGS_FOR_BUILD="-g -O2 -Wall" \
+%endif
CFLAGS="$RPM_OPT_FLAGS" \
../binutils-%{binutils_pkgvers}/configure \
--build=%_build --host=%_host \
@@ -80,6 +98,7 @@ cd ..
cd ..
%install
+ export PATH="%{_bindir}:${PATH}"
rm -rf $RPM_BUILD_ROOT
cd build
@@ -116,6 +135,9 @@ cd ..
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/arm-rtems4.9-windres%{_exeext}; then
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/arm-rtems4.9-windres*
fi
+ if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/arm-rtems4.9-windmc%{_exeext}; then
+ rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/arm-rtems4.9-windmc*
+ fi
cd ..
@@ -161,7 +183,6 @@ sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
# %endif
%description -n rtems-4.9-arm-rtems4.9-binutils
-
GNU binutils targetting arm-rtems4.9.
%files -n rtems-4.9-arm-rtems4.9-binutils
diff --git a/contrib/crossrpms/rtems4.9/arm/rtems-4.9-arm-rtems4.9-cpukit.spec b/contrib/crossrpms/rtems4.9/arm/rtems-4.9-arm-rtems4.9-cpukit.spec
index 52aecbc278..abb5e6cd51 100644
--- a/contrib/crossrpms/rtems4.9/arm/rtems-4.9-arm-rtems4.9-cpukit.spec
+++ b/contrib/crossrpms/rtems4.9/arm/rtems-4.9-arm-rtems4.9-cpukit.spec
@@ -13,6 +13,18 @@
%define _exeext %{nil}
%endif
+%ifos cygwin cygwin32
+%define optflags -O3 -pipe -march=i486 -funroll-loops
+%define _libdir %{_exec_prefix}/lib
+%define debug_package %{nil}
+%endif
+
+%if "%{_build}" != "%{_host}"
+%define _host_rpmprefix rtems-4.9-%{_host}-
+%else
+%define _host_rpmprefix %{nil}
+%endif
+
%define cpukit_pkgvers 4.7.99.1-20070510
%define cpukit_version 4.7.99.1
diff --git a/contrib/crossrpms/rtems4.9/arm/rtems-4.9-arm-rtems4.9-gcc.spec b/contrib/crossrpms/rtems4.9/arm/rtems-4.9-arm-rtems4.9-gcc.spec
index c19b8fb003..f5e6fa8b8a 100644
--- a/contrib/crossrpms/rtems4.9/arm/rtems-4.9-arm-rtems4.9-gcc.spec
+++ b/contrib/crossrpms/rtems4.9/arm/rtems-4.9-arm-rtems4.9-gcc.spec
@@ -26,9 +26,9 @@
%endif
-%define gcc_pkgvers 4.3.0
-%define gcc_version 4.3.0
-%define gcc_rpmvers %{expand:%(echo "4.3.0" | tr - _ )}
+%define gcc_pkgvers 4.3.2
+%define gcc_version 4.3.2
+%define gcc_rpmvers %{expand:%(echo "4.3.2" | tr - _ )}
%define newlib_version 1.16.0
%define gccnewlib_version gcc%{gcc_version}newlib%{newlib_version}
@@ -40,7 +40,7 @@ Summary: arm-rtems4.9 gcc
Group: Development/Tools
Version: %{gcc_rpmvers}
-Release: 12%{?dist}
+Release: 15%{?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"
@@ -92,27 +92,27 @@ Requires: rtems-4.9-arm-rtems4.9-newlib = %{newlib_version}-%{release}
%define gccexec %{_libdir}/gcc-lib
%endif
-%if "%{gcc_version}" == "4.3.0"
+%if "%{gcc_version}" == "4.3.2"
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: gcc-core-%{gcc_pkgvers}-rtems4.9-20080501.diff
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gcc-core-4.3.2-rtems4.9-20080828.diff
%endif
-%if "%{gcc_version}" == "4.2.3"
+%if "%{gcc_version}" == "4.3.1"
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: gcc-core-4.2.3-rtems4.9-20080205.diff
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gcc-core-4.3.1-rtems4.9-20080628.diff
%endif
%{?_without_sources:NoSource: 0}
-%if "%{gcc_version}" == "4.3.0"
+%if "%{gcc_version}" == "4.3.2"
Source1: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
%endif
-%if "%{gcc_version}" == "4.2.3"
-Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
+%if "%{gcc_version}" == "4.3.1"
+Source1: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
%endif
%{?_without_sources:NoSource: 1}
Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
%if "%{newlib_version}" == "1.16.0"
-Patch50: newlib-1.16.0-rtems4.9-20080430.diff
+Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/newlib-1.16.0-rtems4.9-20080827.diff
%endif
%{?_without_sources:NoSource: 50}
diff --git a/contrib/crossrpms/rtems4.9/arm/rtems-4.9-arm-rtems4.9-gdb.spec b/contrib/crossrpms/rtems4.9/arm/rtems-4.9-arm-rtems4.9-gdb.spec
index 30eeaea5ef..6fea425bc7 100644
--- a/contrib/crossrpms/rtems4.9/arm/rtems-4.9-arm-rtems4.9-gdb.spec
+++ b/contrib/crossrpms/rtems4.9/arm/rtems-4.9-arm-rtems4.9-gdb.spec
@@ -71,7 +71,7 @@ Requires: rtems-4.9-gdb-common
Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2
%{?_without_sources:NoSource: 0}
%if "%{gdb_version}" == "6.8"
-Patch0: gdb-6.8-rtems4.9-20080429.diff
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gdb-6.8-rtems4.9-20080429.diff
%endif
%description
@@ -104,8 +104,10 @@ rm -f gdb-%{gdb_version}/readline/configure
--disable-win32-registry \
--disable-werror \
--enable-sim \
-%if "%{gdb_version}" >= "6.6"
+%if "%{gdb_version}" >= "6.7"
--with-system-readline \
+%endif
+%if "%{gdb_version}" >= "6.6"
--with-expat \
%endif
--prefix=%{_prefix} --bindir=%{_bindir} \
diff --git a/contrib/crossrpms/rtems4.9/avr/rtems-4.9-avr-rtems4.9-binutils.spec b/contrib/crossrpms/rtems4.9/avr/rtems-4.9-avr-rtems4.9-binutils.spec
index fecfe9357b..9c179a9b51 100644
--- a/contrib/crossrpms/rtems4.9/avr/rtems-4.9-avr-rtems4.9-binutils.spec
+++ b/contrib/crossrpms/rtems4.9/avr/rtems-4.9-avr-rtems4.9-binutils.spec
@@ -13,6 +13,18 @@
%define _exeext %{nil}
%endif
+%ifos cygwin cygwin32
+%define optflags -O3 -pipe -march=i486 -funroll-loops
+%define _libdir %{_exec_prefix}/lib
+%define debug_package %{nil}
+%endif
+
+%if "%{_build}" != "%{_host}"
+%define _host_rpmprefix rtems-4.9-%{_host}-
+%else
+%define _host_rpmprefix %{nil}
+%endif
+
%define binutils_pkgvers 2.18
%define binutils_version 2.18
%define binutils_rpmvers %{expand:%(echo "2.18" | tr - _ )}
@@ -26,6 +38,8 @@ License: GPL/LGPL
URL: http://sources.redhat.com/binutils
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires: %{_host_rpmprefix}gcc
+
%if "%{binutils_version}" >= "2.18"
# Bug in bfd: Doesn't build without texinfo installed
BuildRequires: texinfo >= 4.2
@@ -42,7 +56,7 @@ Requires: rtems-4.9-binutils-common
Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
%{?_without_sources:NoSource: 0}
%if "%{binutils_version}" == "2.18"
-Patch0: binutils-2.18-rtems4.9-20080211.diff
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/binutils-2.18-rtems4.9-20080211.diff
%endif
%description
@@ -56,12 +70,16 @@ cd binutils-%{binutils_pkgvers}
cd ..
%build
+ export PATH="%{_bindir}:${PATH}"
%if "avr-rtems4.9" == "i686-pc-cygwin"
# The cygwin sources are leaking memory
RPM_OPT_FLAGS="$(echo "$RPM_OPT_FLAGS"|sed -e 's; -Wp,-D_FORTIFY_SOURCE=2;;')"
%endif
mkdir -p build
cd build
+%if "%{_build}" != "%{_host}"
+ CFLAGS_FOR_BUILD="-g -O2 -Wall" \
+%endif
CFLAGS="$RPM_OPT_FLAGS" \
../binutils-%{binutils_pkgvers}/configure \
--build=%_build --host=%_host \
@@ -80,6 +98,7 @@ cd ..
cd ..
%install
+ export PATH="%{_bindir}:${PATH}"
rm -rf $RPM_BUILD_ROOT
cd build
@@ -116,6 +135,9 @@ cd ..
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/avr-rtems4.9-windres%{_exeext}; then
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/avr-rtems4.9-windres*
fi
+ if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/avr-rtems4.9-windmc%{_exeext}; then
+ rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/avr-rtems4.9-windmc*
+ fi
cd ..
@@ -161,7 +183,6 @@ sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
# %endif
%description -n rtems-4.9-avr-rtems4.9-binutils
-
GNU binutils targetting avr-rtems4.9.
%files -n rtems-4.9-avr-rtems4.9-binutils
diff --git a/contrib/crossrpms/rtems4.9/avr/rtems-4.9-avr-rtems4.9-cpukit.spec b/contrib/crossrpms/rtems4.9/avr/rtems-4.9-avr-rtems4.9-cpukit.spec
index 8b11fe7a0f..ac27c8d171 100644
--- a/contrib/crossrpms/rtems4.9/avr/rtems-4.9-avr-rtems4.9-cpukit.spec
+++ b/contrib/crossrpms/rtems4.9/avr/rtems-4.9-avr-rtems4.9-cpukit.spec
@@ -13,6 +13,18 @@
%define _exeext %{nil}
%endif
+%ifos cygwin cygwin32
+%define optflags -O3 -pipe -march=i486 -funroll-loops
+%define _libdir %{_exec_prefix}/lib
+%define debug_package %{nil}
+%endif
+
+%if "%{_build}" != "%{_host}"
+%define _host_rpmprefix rtems-4.9-%{_host}-
+%else
+%define _host_rpmprefix %{nil}
+%endif
+
%define cpukit_pkgvers 4.7.99.1-20070510
%define cpukit_version 4.7.99.1
diff --git a/contrib/crossrpms/rtems4.9/avr/rtems-4.9-avr-rtems4.9-gcc.spec b/contrib/crossrpms/rtems4.9/avr/rtems-4.9-avr-rtems4.9-gcc.spec
index f6507aa183..c3007b92e0 100644
--- a/contrib/crossrpms/rtems4.9/avr/rtems-4.9-avr-rtems4.9-gcc.spec
+++ b/contrib/crossrpms/rtems4.9/avr/rtems-4.9-avr-rtems4.9-gcc.spec
@@ -26,9 +26,9 @@
%endif
-%define gcc_pkgvers 4.3.0
-%define gcc_version 4.3.0
-%define gcc_rpmvers %{expand:%(echo "4.3.0" | tr - _ )}
+%define gcc_pkgvers 4.3.2
+%define gcc_version 4.3.2
+%define gcc_rpmvers %{expand:%(echo "4.3.2" | tr - _ )}
%define newlib_version 1.16.0
%define gccnewlib_version gcc%{gcc_version}newlib%{newlib_version}
@@ -40,7 +40,7 @@ Summary: avr-rtems4.9 gcc
Group: Development/Tools
Version: %{gcc_rpmvers}
-Release: 12%{?dist}
+Release: 15%{?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"
@@ -92,19 +92,19 @@ Requires: rtems-4.9-avr-rtems4.9-newlib = %{newlib_version}-%{release}
%define gccexec %{_libdir}/gcc-lib
%endif
-%if "%{gcc_version}" == "4.3.0"
+%if "%{gcc_version}" == "4.3.2"
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: gcc-core-%{gcc_pkgvers}-rtems4.9-20080501.diff
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gcc-core-4.3.2-rtems4.9-20080828.diff
%endif
-%if "%{gcc_version}" == "4.2.3"
+%if "%{gcc_version}" == "4.3.1"
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: gcc-core-4.2.3-rtems4.9-20080205.diff
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gcc-core-4.3.1-rtems4.9-20080628.diff
%endif
%{?_without_sources:NoSource: 0}
Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
%if "%{newlib_version}" == "1.16.0"
-Patch50: newlib-1.16.0-rtems4.9-20080430.diff
+Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/newlib-1.16.0-rtems4.9-20080827.diff
%endif
%{?_without_sources:NoSource: 50}
diff --git a/contrib/crossrpms/rtems4.9/avr/rtems-4.9-avr-rtems4.9-gdb.spec b/contrib/crossrpms/rtems4.9/avr/rtems-4.9-avr-rtems4.9-gdb.spec
index 4f7a2693c3..eea4f6f2fd 100644
--- a/contrib/crossrpms/rtems4.9/avr/rtems-4.9-avr-rtems4.9-gdb.spec
+++ b/contrib/crossrpms/rtems4.9/avr/rtems-4.9-avr-rtems4.9-gdb.spec
@@ -71,7 +71,7 @@ Requires: rtems-4.9-gdb-common
Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2
%{?_without_sources:NoSource: 0}
%if "%{gdb_version}" == "6.8"
-Patch0: gdb-6.8-rtems4.9-20080429.diff
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gdb-6.8-rtems4.9-20080429.diff
%endif
%description
@@ -104,8 +104,10 @@ rm -f gdb-%{gdb_version}/readline/configure
--disable-win32-registry \
--disable-werror \
--enable-sim \
-%if "%{gdb_version}" >= "6.6"
+%if "%{gdb_version}" >= "6.7"
--with-system-readline \
+%endif
+%if "%{gdb_version}" >= "6.6"
--with-expat \
%endif
--prefix=%{_prefix} --bindir=%{_bindir} \
diff --git a/contrib/crossrpms/rtems4.9/bfin/rtems-4.9-bfin-rtems4.9-binutils.spec b/contrib/crossrpms/rtems4.9/bfin/rtems-4.9-bfin-rtems4.9-binutils.spec
index ec990f75ed..de047054ad 100644
--- a/contrib/crossrpms/rtems4.9/bfin/rtems-4.9-bfin-rtems4.9-binutils.spec
+++ b/contrib/crossrpms/rtems4.9/bfin/rtems-4.9-bfin-rtems4.9-binutils.spec
@@ -13,6 +13,18 @@
%define _exeext %{nil}
%endif
+%ifos cygwin cygwin32
+%define optflags -O3 -pipe -march=i486 -funroll-loops
+%define _libdir %{_exec_prefix}/lib
+%define debug_package %{nil}
+%endif
+
+%if "%{_build}" != "%{_host}"
+%define _host_rpmprefix rtems-4.9-%{_host}-
+%else
+%define _host_rpmprefix %{nil}
+%endif
+
%define binutils_pkgvers 2.18
%define binutils_version 2.18
%define binutils_rpmvers %{expand:%(echo "2.18" | tr - _ )}
@@ -26,6 +38,8 @@ License: GPL/LGPL
URL: http://sources.redhat.com/binutils
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires: %{_host_rpmprefix}gcc
+
%if "%{binutils_version}" >= "2.18"
# Bug in bfd: Doesn't build without texinfo installed
BuildRequires: texinfo >= 4.2
@@ -42,7 +56,7 @@ Requires: rtems-4.9-binutils-common
Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
%{?_without_sources:NoSource: 0}
%if "%{binutils_version}" == "2.18"
-Patch0: binutils-2.18-rtems4.9-20080211.diff
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/binutils-2.18-rtems4.9-20080211.diff
%endif
%description
@@ -56,12 +70,16 @@ cd binutils-%{binutils_pkgvers}
cd ..
%build
+ export PATH="%{_bindir}:${PATH}"
%if "bfin-rtems4.9" == "i686-pc-cygwin"
# The cygwin sources are leaking memory
RPM_OPT_FLAGS="$(echo "$RPM_OPT_FLAGS"|sed -e 's; -Wp,-D_FORTIFY_SOURCE=2;;')"
%endif
mkdir -p build
cd build
+%if "%{_build}" != "%{_host}"
+ CFLAGS_FOR_BUILD="-g -O2 -Wall" \
+%endif
CFLAGS="$RPM_OPT_FLAGS" \
../binutils-%{binutils_pkgvers}/configure \
--build=%_build --host=%_host \
@@ -80,6 +98,7 @@ cd ..
cd ..
%install
+ export PATH="%{_bindir}:${PATH}"
rm -rf $RPM_BUILD_ROOT
cd build
@@ -116,6 +135,9 @@ cd ..
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/bfin-rtems4.9-windres%{_exeext}; then
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/bfin-rtems4.9-windres*
fi
+ if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/bfin-rtems4.9-windmc%{_exeext}; then
+ rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/bfin-rtems4.9-windmc*
+ fi
cd ..
@@ -161,7 +183,6 @@ sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
# %endif
%description -n rtems-4.9-bfin-rtems4.9-binutils
-
GNU binutils targetting bfin-rtems4.9.
%files -n rtems-4.9-bfin-rtems4.9-binutils
diff --git a/contrib/crossrpms/rtems4.9/bfin/rtems-4.9-bfin-rtems4.9-gcc.spec b/contrib/crossrpms/rtems4.9/bfin/rtems-4.9-bfin-rtems4.9-gcc.spec
index cabe863fb4..ed0c659c62 100644
--- a/contrib/crossrpms/rtems4.9/bfin/rtems-4.9-bfin-rtems4.9-gcc.spec
+++ b/contrib/crossrpms/rtems4.9/bfin/rtems-4.9-bfin-rtems4.9-gcc.spec
@@ -26,9 +26,9 @@
%endif
-%define gcc_pkgvers 4.3.0
-%define gcc_version 4.3.0
-%define gcc_rpmvers %{expand:%(echo "4.3.0" | tr - _ )}
+%define gcc_pkgvers 4.3.2
+%define gcc_version 4.3.2
+%define gcc_rpmvers %{expand:%(echo "4.3.2" | tr - _ )}
%define newlib_version 1.16.0
%define gccnewlib_version gcc%{gcc_version}newlib%{newlib_version}
@@ -40,7 +40,7 @@ Summary: bfin-rtems4.9 gcc
Group: Development/Tools
Version: %{gcc_rpmvers}
-Release: 12%{?dist}
+Release: 15%{?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"
@@ -92,19 +92,19 @@ Requires: rtems-4.9-bfin-rtems4.9-newlib = %{newlib_version}-%{release}
%define gccexec %{_libdir}/gcc-lib
%endif
-%if "%{gcc_version}" == "4.3.0"
+%if "%{gcc_version}" == "4.3.2"
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: gcc-core-%{gcc_pkgvers}-rtems4.9-20080501.diff
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gcc-core-4.3.2-rtems4.9-20080828.diff
%endif
-%if "%{gcc_version}" == "4.2.3"
+%if "%{gcc_version}" == "4.3.1"
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: gcc-core-4.2.3-rtems4.9-20080205.diff
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gcc-core-4.3.1-rtems4.9-20080628.diff
%endif
%{?_without_sources:NoSource: 0}
Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
%if "%{newlib_version}" == "1.16.0"
-Patch50: newlib-1.16.0-rtems4.9-20080430.diff
+Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/newlib-1.16.0-rtems4.9-20080827.diff
%endif
%{?_without_sources:NoSource: 50}
diff --git a/contrib/crossrpms/rtems4.9/bfin/rtems-4.9-bfin-rtems4.9-gdb.spec b/contrib/crossrpms/rtems4.9/bfin/rtems-4.9-bfin-rtems4.9-gdb.spec
index 53d4564f4b..f83c7221c4 100644
--- a/contrib/crossrpms/rtems4.9/bfin/rtems-4.9-bfin-rtems4.9-gdb.spec
+++ b/contrib/crossrpms/rtems4.9/bfin/rtems-4.9-bfin-rtems4.9-gdb.spec
@@ -70,7 +70,7 @@ Requires: rtems-4.9-gdb-common
Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2
%{?_without_sources:NoSource: 0}
-Patch0: gdb-6.5-bfinrtems-20071114.diff
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gdb-6.5-bfinrtems-20071114.diff
%description
GDB for target bfin-rtems4.9
@@ -102,8 +102,10 @@ rm -f gdb-%{gdb_version}/readline/configure
--disable-win32-registry \
--disable-werror \
--enable-sim \
-%if "%{gdb_version}" >= "6.6"
+%if "%{gdb_version}" >= "6.7"
--with-system-readline \
+%endif
+%if "%{gdb_version}" >= "6.6"
--with-expat \
%endif
--prefix=%{_prefix} --bindir=%{_bindir} \
diff --git a/contrib/crossrpms/rtems4.9/h8300/rtems-4.9-h8300-rtems4.9-binutils.spec b/contrib/crossrpms/rtems4.9/h8300/rtems-4.9-h8300-rtems4.9-binutils.spec
index e513c2e902..124e96552e 100644
--- a/contrib/crossrpms/rtems4.9/h8300/rtems-4.9-h8300-rtems4.9-binutils.spec
+++ b/contrib/crossrpms/rtems4.9/h8300/rtems-4.9-h8300-rtems4.9-binutils.spec
@@ -13,6 +13,18 @@
%define _exeext %{nil}
%endif
+%ifos cygwin cygwin32
+%define optflags -O3 -pipe -march=i486 -funroll-loops
+%define _libdir %{_exec_prefix}/lib
+%define debug_package %{nil}
+%endif
+
+%if "%{_build}" != "%{_host}"
+%define _host_rpmprefix rtems-4.9-%{_host}-
+%else
+%define _host_rpmprefix %{nil}
+%endif
+
%define binutils_pkgvers 2.18
%define binutils_version 2.18
%define binutils_rpmvers %{expand:%(echo "2.18" | tr - _ )}
@@ -26,6 +38,8 @@ License: GPL/LGPL
URL: http://sources.redhat.com/binutils
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires: %{_host_rpmprefix}gcc
+
%if "%{binutils_version}" >= "2.18"
# Bug in bfd: Doesn't build without texinfo installed
BuildRequires: texinfo >= 4.2
@@ -42,7 +56,7 @@ Requires: rtems-4.9-binutils-common
Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
%{?_without_sources:NoSource: 0}
%if "%{binutils_version}" == "2.18"
-Patch0: binutils-2.18-rtems4.9-20080211.diff
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/binutils-2.18-rtems4.9-20080211.diff
%endif
%description
@@ -56,12 +70,16 @@ cd binutils-%{binutils_pkgvers}
cd ..
%build
+ export PATH="%{_bindir}:${PATH}"
%if "h8300-rtems4.9" == "i686-pc-cygwin"
# The cygwin sources are leaking memory
RPM_OPT_FLAGS="$(echo "$RPM_OPT_FLAGS"|sed -e 's; -Wp,-D_FORTIFY_SOURCE=2;;')"
%endif
mkdir -p build
cd build
+%if "%{_build}" != "%{_host}"
+ CFLAGS_FOR_BUILD="-g -O2 -Wall" \
+%endif
CFLAGS="$RPM_OPT_FLAGS" \
../binutils-%{binutils_pkgvers}/configure \
--build=%_build --host=%_host \
@@ -80,6 +98,7 @@ cd ..
cd ..
%install
+ export PATH="%{_bindir}:${PATH}"
rm -rf $RPM_BUILD_ROOT
cd build
@@ -116,6 +135,9 @@ cd ..
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/h8300-rtems4.9-windres%{_exeext}; then
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/h8300-rtems4.9-windres*
fi
+ if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/h8300-rtems4.9-windmc%{_exeext}; then
+ rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/h8300-rtems4.9-windmc*
+ fi
cd ..
@@ -161,7 +183,6 @@ sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
# %endif
%description -n rtems-4.9-h8300-rtems4.9-binutils
-
GNU binutils targetting h8300-rtems4.9.
%files -n rtems-4.9-h8300-rtems4.9-binutils
diff --git a/contrib/crossrpms/rtems4.9/h8300/rtems-4.9-h8300-rtems4.9-cpukit.spec b/contrib/crossrpms/rtems4.9/h8300/rtems-4.9-h8300-rtems4.9-cpukit.spec
index b20421d478..775289501e 100644
--- a/contrib/crossrpms/rtems4.9/h8300/rtems-4.9-h8300-rtems4.9-cpukit.spec
+++ b/contrib/crossrpms/rtems4.9/h8300/rtems-4.9-h8300-rtems4.9-cpukit.spec
@@ -13,6 +13,18 @@
%define _exeext %{nil}
%endif
+%ifos cygwin cygwin32
+%define optflags -O3 -pipe -march=i486 -funroll-loops
+%define _libdir %{_exec_prefix}/lib
+%define debug_package %{nil}
+%endif
+
+%if "%{_build}" != "%{_host}"
+%define _host_rpmprefix rtems-4.9-%{_host}-
+%else
+%define _host_rpmprefix %{nil}
+%endif
+
%define cpukit_pkgvers 4.7.99.1-20070510
%define cpukit_version 4.7.99.1
diff --git a/contrib/crossrpms/rtems4.9/h8300/rtems-4.9-h8300-rtems4.9-gcc.spec b/contrib/crossrpms/rtems4.9/h8300/rtems-4.9-h8300-rtems4.9-gcc.spec
index af3ef3784d..caf9eb1c0b 100644
--- a/contrib/crossrpms/rtems4.9/h8300/rtems-4.9-h8300-rtems4.9-gcc.spec
+++ b/contrib/crossrpms/rtems4.9/h8300/rtems-4.9-h8300-rtems4.9-gcc.spec
@@ -26,9 +26,9 @@
%endif
-%define gcc_pkgvers 4.2.3
-%define gcc_version 4.2.3
-%define gcc_rpmvers %{expand:%(echo "4.2.3" | tr - _ )}
+%define gcc_pkgvers 4.3.2
+%define gcc_version 4.3.2
+%define gcc_rpmvers %{expand:%(echo "4.3.2" | tr - _ )}
%define newlib_version 1.16.0
%define gccnewlib_version gcc%{gcc_version}newlib%{newlib_version}
@@ -40,7 +40,7 @@ Summary: h8300-rtems4.9 gcc
Group: Development/Tools
Version: %{gcc_rpmvers}
-Release: 11%{?dist}
+Release: 15%{?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"
@@ -92,18 +92,27 @@ Requires: rtems-4.9-h8300-rtems4.9-newlib = %{newlib_version}-%{release}
%define gccexec %{_libdir}/gcc-lib
%endif
-%if "%{gcc_version}" == "4.2.3"
-Source0: ftp://gcc.gnu.org/pub/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: gcc-core-4.2.3-rtems4.9-20080205.diff
+%if "%{gcc_version}" == "4.3.2"
+Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gcc-core-4.3.2-rtems4.9-20080828.diff
+%endif
+%if "%{gcc_version}" == "4.3.1"
+Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gcc-core-4.3.1-rtems4.9-20080628.diff
%endif
%{?_without_sources:NoSource: 0}
-Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-g++-%{gcc_pkgvers}.tar.bz2
+%if "%{gcc_version}" == "4.3.2"
+Source1: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
+%endif
+%if "%{gcc_version}" == "4.3.1"
+Source1: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
+%endif
%{?_without_sources:NoSource: 1}
Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
%if "%{newlib_version}" == "1.16.0"
-Patch50: newlib-1.16.0-rtems4.9-20080430.diff
+Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/newlib-1.16.0-rtems4.9-20080827.diff
%endif
%{?_without_sources:NoSource: 50}
diff --git a/contrib/crossrpms/rtems4.9/h8300/rtems-4.9-h8300-rtems4.9-gdb.spec b/contrib/crossrpms/rtems4.9/h8300/rtems-4.9-h8300-rtems4.9-gdb.spec
index 632f9b32c3..47a6a1f5f3 100644
--- a/contrib/crossrpms/rtems4.9/h8300/rtems-4.9-h8300-rtems4.9-gdb.spec
+++ b/contrib/crossrpms/rtems4.9/h8300/rtems-4.9-h8300-rtems4.9-gdb.spec
@@ -71,7 +71,7 @@ Requires: rtems-4.9-gdb-common
Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2
%{?_without_sources:NoSource: 0}
%if "%{gdb_version}" == "6.8"
-Patch0: gdb-6.8-rtems4.9-20080429.diff
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gdb-6.8-rtems4.9-20080429.diff
%endif
%description
@@ -104,8 +104,10 @@ rm -f gdb-%{gdb_version}/readline/configure
--disable-win32-registry \
--disable-werror \
--enable-sim \
-%if "%{gdb_version}" >= "6.6"
+%if "%{gdb_version}" >= "6.7"
--with-system-readline \
+%endif
+%if "%{gdb_version}" >= "6.6"
--with-expat \
%endif
--prefix=%{_prefix} --bindir=%{_bindir} \
diff --git a/contrib/crossrpms/rtems4.9/i386/rtems-4.9-i386-rtems4.9-binutils.spec b/contrib/crossrpms/rtems4.9/i386/rtems-4.9-i386-rtems4.9-binutils.spec
index a7cff8ff34..026f5f782d 100644
--- a/contrib/crossrpms/rtems4.9/i386/rtems-4.9-i386-rtems4.9-binutils.spec
+++ b/contrib/crossrpms/rtems4.9/i386/rtems-4.9-i386-rtems4.9-binutils.spec
@@ -13,6 +13,18 @@
%define _exeext %{nil}
%endif
+%ifos cygwin cygwin32
+%define optflags -O3 -pipe -march=i486 -funroll-loops
+%define _libdir %{_exec_prefix}/lib
+%define debug_package %{nil}
+%endif
+
+%if "%{_build}" != "%{_host}"
+%define _host_rpmprefix rtems-4.9-%{_host}-
+%else
+%define _host_rpmprefix %{nil}
+%endif
+
%define binutils_pkgvers 2.18
%define binutils_version 2.18
%define binutils_rpmvers %{expand:%(echo "2.18" | tr - _ )}
@@ -26,6 +38,8 @@ License: GPL/LGPL
URL: http://sources.redhat.com/binutils
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires: %{_host_rpmprefix}gcc
+
%if "%{binutils_version}" >= "2.18"
# Bug in bfd: Doesn't build without texinfo installed
BuildRequires: texinfo >= 4.2
@@ -42,7 +56,7 @@ Requires: rtems-4.9-binutils-common
Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
%{?_without_sources:NoSource: 0}
%if "%{binutils_version}" == "2.18"
-Patch0: binutils-2.18-rtems4.9-20080211.diff
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/binutils-2.18-rtems4.9-20080211.diff
%endif
%description
@@ -56,12 +70,16 @@ cd binutils-%{binutils_pkgvers}
cd ..
%build
+ export PATH="%{_bindir}:${PATH}"
%if "i386-rtems4.9" == "i686-pc-cygwin"
# The cygwin sources are leaking memory
RPM_OPT_FLAGS="$(echo "$RPM_OPT_FLAGS"|sed -e 's; -Wp,-D_FORTIFY_SOURCE=2;;')"
%endif
mkdir -p build
cd build
+%if "%{_build}" != "%{_host}"
+ CFLAGS_FOR_BUILD="-g -O2 -Wall" \
+%endif
CFLAGS="$RPM_OPT_FLAGS" \
../binutils-%{binutils_pkgvers}/configure \
--build=%_build --host=%_host \
@@ -80,6 +98,7 @@ cd ..
cd ..
%install
+ export PATH="%{_bindir}:${PATH}"
rm -rf $RPM_BUILD_ROOT
cd build
@@ -116,6 +135,9 @@ cd ..
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/i386-rtems4.9-windres%{_exeext}; then
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/i386-rtems4.9-windres*
fi
+ if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/i386-rtems4.9-windmc%{_exeext}; then
+ rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/i386-rtems4.9-windmc*
+ fi
cd ..
@@ -161,7 +183,6 @@ sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
# %endif
%description -n rtems-4.9-i386-rtems4.9-binutils
-
GNU binutils targetting i386-rtems4.9.
%files -n rtems-4.9-i386-rtems4.9-binutils
diff --git a/contrib/crossrpms/rtems4.9/i386/rtems-4.9-i386-rtems4.9-cpukit.spec b/contrib/crossrpms/rtems4.9/i386/rtems-4.9-i386-rtems4.9-cpukit.spec
index 3592ad6940..885e2446cf 100644
--- a/contrib/crossrpms/rtems4.9/i386/rtems-4.9-i386-rtems4.9-cpukit.spec
+++ b/contrib/crossrpms/rtems4.9/i386/rtems-4.9-i386-rtems4.9-cpukit.spec
@@ -13,6 +13,18 @@
%define _exeext %{nil}
%endif
+%ifos cygwin cygwin32
+%define optflags -O3 -pipe -march=i486 -funroll-loops
+%define _libdir %{_exec_prefix}/lib
+%define debug_package %{nil}
+%endif
+
+%if "%{_build}" != "%{_host}"
+%define _host_rpmprefix rtems-4.9-%{_host}-
+%else
+%define _host_rpmprefix %{nil}
+%endif
+
%define cpukit_pkgvers 4.7.99.1-20070510
%define cpukit_version 4.7.99.1
diff --git a/contrib/crossrpms/rtems4.9/i386/rtems-4.9-i386-rtems4.9-gcc.spec b/contrib/crossrpms/rtems4.9/i386/rtems-4.9-i386-rtems4.9-gcc.spec
index dc51c3dc34..52e3d89b36 100644
--- a/contrib/crossrpms/rtems4.9/i386/rtems-4.9-i386-rtems4.9-gcc.spec
+++ b/contrib/crossrpms/rtems4.9/i386/rtems-4.9-i386-rtems4.9-gcc.spec
@@ -26,9 +26,9 @@
%endif
-%define gcc_pkgvers 4.3.0
-%define gcc_version 4.3.0
-%define gcc_rpmvers %{expand:%(echo "4.3.0" | tr - _ )}
+%define gcc_pkgvers 4.3.2
+%define gcc_version 4.3.2
+%define gcc_rpmvers %{expand:%(echo "4.3.2" | tr - _ )}
%define newlib_version 1.16.0
%define gccnewlib_version gcc%{gcc_version}newlib%{newlib_version}
@@ -40,7 +40,7 @@ Summary: i386-rtems4.9 gcc
Group: Development/Tools
Version: %{gcc_rpmvers}
-Release: 12%{?dist}
+Release: 15%{?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"
@@ -92,27 +92,27 @@ Requires: rtems-4.9-i386-rtems4.9-newlib = %{newlib_version}-%{release}
%define gccexec %{_libdir}/gcc-lib
%endif
-%if "%{gcc_version}" == "4.3.0"
+%if "%{gcc_version}" == "4.3.2"
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: gcc-core-%{gcc_pkgvers}-rtems4.9-20080501.diff
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gcc-core-4.3.2-rtems4.9-20080828.diff
%endif
-%if "%{gcc_version}" == "4.2.3"
+%if "%{gcc_version}" == "4.3.1"
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: gcc-core-4.2.3-rtems4.9-20080205.diff
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gcc-core-4.3.1-rtems4.9-20080628.diff
%endif
%{?_without_sources:NoSource: 0}
-%if "%{gcc_version}" == "4.3.0"
+%if "%{gcc_version}" == "4.3.2"
Source1: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
%endif
-%if "%{gcc_version}" == "4.2.3"
-Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
+%if "%{gcc_version}" == "4.3.1"
+Source1: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
%endif
%{?_without_sources:NoSource: 1}
Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
%if "%{newlib_version}" == "1.16.0"
-Patch50: newlib-1.16.0-rtems4.9-20080430.diff
+Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/newlib-1.16.0-rtems4.9-20080827.diff
%endif
%{?_without_sources:NoSource: 50}
diff --git a/contrib/crossrpms/rtems4.9/i386/rtems-4.9-i386-rtems4.9-gdb.spec b/contrib/crossrpms/rtems4.9/i386/rtems-4.9-i386-rtems4.9-gdb.spec
index 7d60669556..5ae40e073d 100644
--- a/contrib/crossrpms/rtems4.9/i386/rtems-4.9-i386-rtems4.9-gdb.spec
+++ b/contrib/crossrpms/rtems4.9/i386/rtems-4.9-i386-rtems4.9-gdb.spec
@@ -71,7 +71,7 @@ Requires: rtems-4.9-gdb-common
Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2
%{?_without_sources:NoSource: 0}
%if "%{gdb_version}" == "6.8"
-Patch0: gdb-6.8-rtems4.9-20080429.diff
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gdb-6.8-rtems4.9-20080429.diff
%endif
%description
@@ -104,8 +104,10 @@ rm -f gdb-%{gdb_version}/readline/configure
--disable-win32-registry \
--disable-werror \
--enable-sim \
-%if "%{gdb_version}" >= "6.6"
+%if "%{gdb_version}" >= "6.7"
--with-system-readline \
+%endif
+%if "%{gdb_version}" >= "6.6"
--with-expat \
%endif
--prefix=%{_prefix} --bindir=%{_bindir} \
diff --git a/contrib/crossrpms/rtems4.9/m68k/rtems-4.9-m68k-rtems4.9-binutils.spec b/contrib/crossrpms/rtems4.9/m68k/rtems-4.9-m68k-rtems4.9-binutils.spec
index 0f1a34ff67..3b8bafb8f9 100644
--- a/contrib/crossrpms/rtems4.9/m68k/rtems-4.9-m68k-rtems4.9-binutils.spec
+++ b/contrib/crossrpms/rtems4.9/m68k/rtems-4.9-m68k-rtems4.9-binutils.spec
@@ -56,7 +56,7 @@ Requires: rtems-4.9-binutils-common
Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
%{?_without_sources:NoSource: 0}
%if "%{binutils_version}" == "2.18"
-Patch0: binutils-2.18-rtems4.9-20080211.diff
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/binutils-2.18-rtems4.9-20080211.diff
%endif
%description
@@ -135,6 +135,9 @@ cd ..
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/m68k-rtems4.9-windres%{_exeext}; then
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/m68k-rtems4.9-windres*
fi
+ if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/m68k-rtems4.9-windmc%{_exeext}; then
+ rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/m68k-rtems4.9-windmc*
+ fi
cd ..
diff --git a/contrib/crossrpms/rtems4.9/m68k/rtems-4.9-m68k-rtems4.9-gcc.spec b/contrib/crossrpms/rtems4.9/m68k/rtems-4.9-m68k-rtems4.9-gcc.spec
index d7e579e890..f69b1331bd 100644
--- a/contrib/crossrpms/rtems4.9/m68k/rtems-4.9-m68k-rtems4.9-gcc.spec
+++ b/contrib/crossrpms/rtems4.9/m68k/rtems-4.9-m68k-rtems4.9-gcc.spec
@@ -26,9 +26,9 @@
%endif
-%define gcc_pkgvers 4.3.1
-%define gcc_version 4.3.1
-%define gcc_rpmvers %{expand:%(echo "4.3.1" | tr - _ )}
+%define gcc_pkgvers 4.3.2
+%define gcc_version 4.3.2
+%define gcc_rpmvers %{expand:%(echo "4.3.2" | tr - _ )}
%define newlib_version 1.16.0
%define gccnewlib_version gcc%{gcc_version}newlib%{newlib_version}
@@ -40,7 +40,7 @@ Summary: m68k-rtems4.9 gcc
Group: Development/Tools
Version: %{gcc_rpmvers}
-Release: 14%{?dist}
+Release: 15%{?dist}
License: GPL
URL: http://gcc.gnu.org
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -92,27 +92,27 @@ Requires: rtems-4.9-m68k-rtems4.9-newlib = %{newlib_version}-%{release}
%define gccexec %{_libdir}/gcc-lib
%endif
-%if "%{gcc_version}" == "4.3.1"
+%if "%{gcc_version}" == "4.3.2"
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: gcc-core-4.3.1-rtems4.9-20080628.diff
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gcc-core-4.3.2-rtems4.9-20080828.diff
%endif
-%if "%{gcc_version}" == "4.3.0"
+%if "%{gcc_version}" == "4.3.1"
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: gcc-core-4.3.0-rtems4.9-20080501.diff
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gcc-core-4.3.1-rtems4.9-20080628.diff
%endif
%{?_without_sources:NoSource: 0}
-%if "%{gcc_version}" == "4.3.1"
+%if "%{gcc_version}" == "4.3.2"
Source1: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
%endif
-%if "%{gcc_version}" == "4.3.0"
+%if "%{gcc_version}" == "4.3.1"
Source1: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
%endif
%{?_without_sources:NoSource: 1}
Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
%if "%{newlib_version}" == "1.16.0"
-Patch50: newlib-1.16.0-rtems4.9-20080430.diff
+Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/newlib-1.16.0-rtems4.9-20080827.diff
%endif
%{?_without_sources:NoSource: 50}
diff --git a/contrib/crossrpms/rtems4.9/m68k/rtems-4.9-m68k-rtems4.9-gdb.spec b/contrib/crossrpms/rtems4.9/m68k/rtems-4.9-m68k-rtems4.9-gdb.spec
index 6b1f4da4ed..051e740026 100644
--- a/contrib/crossrpms/rtems4.9/m68k/rtems-4.9-m68k-rtems4.9-gdb.spec
+++ b/contrib/crossrpms/rtems4.9/m68k/rtems-4.9-m68k-rtems4.9-gdb.spec
@@ -71,7 +71,7 @@ Requires: rtems-4.9-gdb-common
Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2
%{?_without_sources:NoSource: 0}
%if "%{gdb_version}" == "6.8"
-Patch0: gdb-6.8-rtems4.9-20080429.diff
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gdb-6.8-rtems4.9-20080429.diff
%endif
%description
diff --git a/contrib/crossrpms/rtems4.9/mips/rtems-4.9-mips-rtems4.9-binutils.spec b/contrib/crossrpms/rtems4.9/mips/rtems-4.9-mips-rtems4.9-binutils.spec
index 41a1181525..593e349f59 100644
--- a/contrib/crossrpms/rtems4.9/mips/rtems-4.9-mips-rtems4.9-binutils.spec
+++ b/contrib/crossrpms/rtems4.9/mips/rtems-4.9-mips-rtems4.9-binutils.spec
@@ -13,6 +13,18 @@
%define _exeext %{nil}
%endif
+%ifos cygwin cygwin32
+%define optflags -O3 -pipe -march=i486 -funroll-loops
+%define _libdir %{_exec_prefix}/lib
+%define debug_package %{nil}
+%endif
+
+%if "%{_build}" != "%{_host}"
+%define _host_rpmprefix rtems-4.9-%{_host}-
+%else
+%define _host_rpmprefix %{nil}
+%endif
+
%define binutils_pkgvers 2.18
%define binutils_version 2.18
%define binutils_rpmvers %{expand:%(echo "2.18" | tr - _ )}
@@ -26,6 +38,8 @@ License: GPL/LGPL
URL: http://sources.redhat.com/binutils
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires: %{_host_rpmprefix}gcc
+
%if "%{binutils_version}" >= "2.18"
# Bug in bfd: Doesn't build without texinfo installed
BuildRequires: texinfo >= 4.2
@@ -42,7 +56,7 @@ Requires: rtems-4.9-binutils-common
Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
%{?_without_sources:NoSource: 0}
%if "%{binutils_version}" == "2.18"
-Patch0: binutils-2.18-rtems4.9-20080211.diff
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/binutils-2.18-rtems4.9-20080211.diff
%endif
%description
@@ -56,12 +70,16 @@ cd binutils-%{binutils_pkgvers}
cd ..
%build
+ export PATH="%{_bindir}:${PATH}"
%if "mips-rtems4.9" == "i686-pc-cygwin"
# The cygwin sources are leaking memory
RPM_OPT_FLAGS="$(echo "$RPM_OPT_FLAGS"|sed -e 's; -Wp,-D_FORTIFY_SOURCE=2;;')"
%endif
mkdir -p build
cd build
+%if "%{_build}" != "%{_host}"
+ CFLAGS_FOR_BUILD="-g -O2 -Wall" \
+%endif
CFLAGS="$RPM_OPT_FLAGS" \
../binutils-%{binutils_pkgvers}/configure \
--build=%_build --host=%_host \
@@ -80,6 +98,7 @@ cd ..
cd ..
%install
+ export PATH="%{_bindir}:${PATH}"
rm -rf $RPM_BUILD_ROOT
cd build
@@ -116,6 +135,9 @@ cd ..
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/mips-rtems4.9-windres%{_exeext}; then
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/mips-rtems4.9-windres*
fi
+ if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/mips-rtems4.9-windmc%{_exeext}; then
+ rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/mips-rtems4.9-windmc*
+ fi
cd ..
@@ -161,7 +183,6 @@ sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
# %endif
%description -n rtems-4.9-mips-rtems4.9-binutils
-
GNU binutils targetting mips-rtems4.9.
%files -n rtems-4.9-mips-rtems4.9-binutils
diff --git a/contrib/crossrpms/rtems4.9/mips/rtems-4.9-mips-rtems4.9-cpukit.spec b/contrib/crossrpms/rtems4.9/mips/rtems-4.9-mips-rtems4.9-cpukit.spec
index f43c5ee968..79e1412a87 100644
--- a/contrib/crossrpms/rtems4.9/mips/rtems-4.9-mips-rtems4.9-cpukit.spec
+++ b/contrib/crossrpms/rtems4.9/mips/rtems-4.9-mips-rtems4.9-cpukit.spec
@@ -13,6 +13,18 @@
%define _exeext %{nil}
%endif
+%ifos cygwin cygwin32
+%define optflags -O3 -pipe -march=i486 -funroll-loops
+%define _libdir %{_exec_prefix}/lib
+%define debug_package %{nil}
+%endif
+
+%if "%{_build}" != "%{_host}"
+%define _host_rpmprefix rtems-4.9-%{_host}-
+%else
+%define _host_rpmprefix %{nil}
+%endif
+
%define cpukit_pkgvers 4.7.99.1-20070510
%define cpukit_version 4.7.99.1
diff --git a/contrib/crossrpms/rtems4.9/mips/rtems-4.9-mips-rtems4.9-gcc.spec b/contrib/crossrpms/rtems4.9/mips/rtems-4.9-mips-rtems4.9-gcc.spec
index c18cb04699..f332091452 100644
--- a/contrib/crossrpms/rtems4.9/mips/rtems-4.9-mips-rtems4.9-gcc.spec
+++ b/contrib/crossrpms/rtems4.9/mips/rtems-4.9-mips-rtems4.9-gcc.spec
@@ -26,9 +26,9 @@
%endif
-%define gcc_pkgvers 4.3.0
-%define gcc_version 4.3.0
-%define gcc_rpmvers %{expand:%(echo "4.3.0" | tr - _ )}
+%define gcc_pkgvers 4.3.2
+%define gcc_version 4.3.2
+%define gcc_rpmvers %{expand:%(echo "4.3.2" | tr - _ )}
%define newlib_version 1.16.0
%define gccnewlib_version gcc%{gcc_version}newlib%{newlib_version}
@@ -40,7 +40,7 @@ Summary: mips-rtems4.9 gcc
Group: Development/Tools
Version: %{gcc_rpmvers}
-Release: 12%{?dist}
+Release: 15%{?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"
@@ -92,27 +92,27 @@ Requires: rtems-4.9-mips-rtems4.9-newlib = %{newlib_version}-%{release}
%define gccexec %{_libdir}/gcc-lib
%endif
-%if "%{gcc_version}" == "4.3.0"
+%if "%{gcc_version}" == "4.3.2"
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: gcc-core-%{gcc_pkgvers}-rtems4.9-20080501.diff
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gcc-core-4.3.2-rtems4.9-20080828.diff
%endif
-%if "%{gcc_version}" == "4.2.3"
+%if "%{gcc_version}" == "4.3.1"
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: gcc-core-4.2.3-rtems4.9-20080205.diff
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gcc-core-4.3.1-rtems4.9-20080628.diff
%endif
%{?_without_sources:NoSource: 0}
-%if "%{gcc_version}" == "4.3.0"
+%if "%{gcc_version}" == "4.3.2"
Source1: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
%endif
-%if "%{gcc_version}" == "4.2.3"
-Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
+%if "%{gcc_version}" == "4.3.1"
+Source1: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
%endif
%{?_without_sources:NoSource: 1}
Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
%if "%{newlib_version}" == "1.16.0"
-Patch50: newlib-1.16.0-rtems4.9-20080430.diff
+Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/newlib-1.16.0-rtems4.9-20080827.diff
%endif
%{?_without_sources:NoSource: 50}
diff --git a/contrib/crossrpms/rtems4.9/mips/rtems-4.9-mips-rtems4.9-gdb.spec b/contrib/crossrpms/rtems4.9/mips/rtems-4.9-mips-rtems4.9-gdb.spec
index 77169af688..53a4b151a3 100644
--- a/contrib/crossrpms/rtems4.9/mips/rtems-4.9-mips-rtems4.9-gdb.spec
+++ b/contrib/crossrpms/rtems4.9/mips/rtems-4.9-mips-rtems4.9-gdb.spec
@@ -71,7 +71,7 @@ Requires: rtems-4.9-gdb-common
Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2
%{?_without_sources:NoSource: 0}
%if "%{gdb_version}" == "6.8"
-Patch0: gdb-6.8-rtems4.9-20080429.diff
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gdb-6.8-rtems4.9-20080429.diff
%endif
%description
@@ -104,8 +104,10 @@ rm -f gdb-%{gdb_version}/readline/configure
--disable-win32-registry \
--disable-werror \
--enable-sim \
-%if "%{gdb_version}" >= "6.6"
+%if "%{gdb_version}" >= "6.7"
--with-system-readline \
+%endif
+%if "%{gdb_version}" >= "6.6"
--with-expat \
%endif
--prefix=%{_prefix} --bindir=%{_bindir} \
diff --git a/contrib/crossrpms/rtems4.9/mipstx39/rtems-4.9-mipstx39-rtems4.9-gdb.spec b/contrib/crossrpms/rtems4.9/mipstx39/rtems-4.9-mipstx39-rtems4.9-gdb.spec
index 8872d5be9e..8c3363e207 100644
--- a/contrib/crossrpms/rtems4.9/mipstx39/rtems-4.9-mipstx39-rtems4.9-gdb.spec
+++ b/contrib/crossrpms/rtems4.9/mipstx39/rtems-4.9-mipstx39-rtems4.9-gdb.spec
@@ -71,7 +71,7 @@ Requires: rtems-4.9-gdb-common
Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2
%{?_without_sources:NoSource: 0}
%if "%{gdb_version}" == "6.8"
-Patch0: gdb-6.8-rtems4.9-20080429.diff
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gdb-6.8-rtems4.9-20080429.diff
%endif
%description
@@ -104,8 +104,10 @@ rm -f gdb-%{gdb_version}/readline/configure
--disable-win32-registry \
--disable-werror \
--enable-sim \
-%if "%{gdb_version}" >= "6.6"
+%if "%{gdb_version}" >= "6.7"
--with-system-readline \
+%endif
+%if "%{gdb_version}" >= "6.6"
--with-expat \
%endif
--prefix=%{_prefix} --bindir=%{_bindir} \
diff --git a/contrib/crossrpms/rtems4.9/powerpc/rtems-4.9-powerpc-rtems4.9-binutils.spec b/contrib/crossrpms/rtems4.9/powerpc/rtems-4.9-powerpc-rtems4.9-binutils.spec
index f2edf51a08..0762735cdb 100644
--- a/contrib/crossrpms/rtems4.9/powerpc/rtems-4.9-powerpc-rtems4.9-binutils.spec
+++ b/contrib/crossrpms/rtems4.9/powerpc/rtems-4.9-powerpc-rtems4.9-binutils.spec
@@ -13,6 +13,18 @@
%define _exeext %{nil}
%endif
+%ifos cygwin cygwin32
+%define optflags -O3 -pipe -march=i486 -funroll-loops
+%define _libdir %{_exec_prefix}/lib
+%define debug_package %{nil}
+%endif
+
+%if "%{_build}" != "%{_host}"
+%define _host_rpmprefix rtems-4.9-%{_host}-
+%else
+%define _host_rpmprefix %{nil}
+%endif
+
%define binutils_pkgvers 2.18
%define binutils_version 2.18
%define binutils_rpmvers %{expand:%(echo "2.18" | tr - _ )}
@@ -26,6 +38,8 @@ License: GPL/LGPL
URL: http://sources.redhat.com/binutils
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires: %{_host_rpmprefix}gcc
+
%if "%{binutils_version}" >= "2.18"
# Bug in bfd: Doesn't build without texinfo installed
BuildRequires: texinfo >= 4.2
@@ -42,7 +56,7 @@ Requires: rtems-4.9-binutils-common
Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
%{?_without_sources:NoSource: 0}
%if "%{binutils_version}" == "2.18"
-Patch0: binutils-2.18-rtems4.9-20080211.diff
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/binutils-2.18-rtems4.9-20080211.diff
%endif
%description
@@ -56,12 +70,16 @@ cd binutils-%{binutils_pkgvers}
cd ..
%build
+ export PATH="%{_bindir}:${PATH}"
%if "powerpc-rtems4.9" == "i686-pc-cygwin"
# The cygwin sources are leaking memory
RPM_OPT_FLAGS="$(echo "$RPM_OPT_FLAGS"|sed -e 's; -Wp,-D_FORTIFY_SOURCE=2;;')"
%endif
mkdir -p build
cd build
+%if "%{_build}" != "%{_host}"
+ CFLAGS_FOR_BUILD="-g -O2 -Wall" \
+%endif
CFLAGS="$RPM_OPT_FLAGS" \
../binutils-%{binutils_pkgvers}/configure \
--build=%_build --host=%_host \
@@ -80,6 +98,7 @@ cd ..
cd ..
%install
+ export PATH="%{_bindir}:${PATH}"
rm -rf $RPM_BUILD_ROOT
cd build
@@ -116,6 +135,9 @@ cd ..
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/powerpc-rtems4.9-windres%{_exeext}; then
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/powerpc-rtems4.9-windres*
fi
+ if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/powerpc-rtems4.9-windmc%{_exeext}; then
+ rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/powerpc-rtems4.9-windmc*
+ fi
cd ..
@@ -161,7 +183,6 @@ sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
# %endif
%description -n rtems-4.9-powerpc-rtems4.9-binutils
-
GNU binutils targetting powerpc-rtems4.9.
%files -n rtems-4.9-powerpc-rtems4.9-binutils
diff --git a/contrib/crossrpms/rtems4.9/powerpc/rtems-4.9-powerpc-rtems4.9-cpukit.spec b/contrib/crossrpms/rtems4.9/powerpc/rtems-4.9-powerpc-rtems4.9-cpukit.spec
index 8275ab7009..8c33dd2a25 100644
--- a/contrib/crossrpms/rtems4.9/powerpc/rtems-4.9-powerpc-rtems4.9-cpukit.spec
+++ b/contrib/crossrpms/rtems4.9/powerpc/rtems-4.9-powerpc-rtems4.9-cpukit.spec
@@ -13,6 +13,18 @@
%define _exeext %{nil}
%endif
+%ifos cygwin cygwin32
+%define optflags -O3 -pipe -march=i486 -funroll-loops
+%define _libdir %{_exec_prefix}/lib
+%define debug_package %{nil}
+%endif
+
+%if "%{_build}" != "%{_host}"
+%define _host_rpmprefix rtems-4.9-%{_host}-
+%else
+%define _host_rpmprefix %{nil}
+%endif
+
%define cpukit_pkgvers 4.7.99.1-20070510
%define cpukit_version 4.7.99.1
diff --git a/contrib/crossrpms/rtems4.9/powerpc/rtems-4.9-powerpc-rtems4.9-gcc.spec b/contrib/crossrpms/rtems4.9/powerpc/rtems-4.9-powerpc-rtems4.9-gcc.spec
index 1bacd99d48..072ebac350 100644
--- a/contrib/crossrpms/rtems4.9/powerpc/rtems-4.9-powerpc-rtems4.9-gcc.spec
+++ b/contrib/crossrpms/rtems4.9/powerpc/rtems-4.9-powerpc-rtems4.9-gcc.spec
@@ -26,9 +26,9 @@
%endif
-%define gcc_pkgvers 4.3.0
-%define gcc_version 4.3.0
-%define gcc_rpmvers %{expand:%(echo "4.3.0" | tr - _ )}
+%define gcc_pkgvers 4.3.2
+%define gcc_version 4.3.2
+%define gcc_rpmvers %{expand:%(echo "4.3.2" | tr - _ )}
%define newlib_version 1.16.0
%define gccnewlib_version gcc%{gcc_version}newlib%{newlib_version}
@@ -40,7 +40,7 @@ Summary: powerpc-rtems4.9 gcc
Group: Development/Tools
Version: %{gcc_rpmvers}
-Release: 12%{?dist}
+Release: 15%{?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"
@@ -92,27 +92,27 @@ Requires: rtems-4.9-powerpc-rtems4.9-newlib = %{newlib_version}-%{release}
%define gccexec %{_libdir}/gcc-lib
%endif
-%if "%{gcc_version}" == "4.3.0"
+%if "%{gcc_version}" == "4.3.2"
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: gcc-core-%{gcc_pkgvers}-rtems4.9-20080501.diff
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gcc-core-4.3.2-rtems4.9-20080828.diff
%endif
-%if "%{gcc_version}" == "4.2.3"
+%if "%{gcc_version}" == "4.3.1"
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: gcc-core-4.2.3-rtems4.9-20080205.diff
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gcc-core-4.3.1-rtems4.9-20080628.diff
%endif
%{?_without_sources:NoSource: 0}
-%if "%{gcc_version}" == "4.3.0"
+%if "%{gcc_version}" == "4.3.2"
Source1: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
%endif
-%if "%{gcc_version}" == "4.2.3"
-Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
+%if "%{gcc_version}" == "4.3.1"
+Source1: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
%endif
%{?_without_sources:NoSource: 1}
Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
%if "%{newlib_version}" == "1.16.0"
-Patch50: newlib-1.16.0-rtems4.9-20080430.diff
+Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/newlib-1.16.0-rtems4.9-20080827.diff
%endif
%{?_without_sources:NoSource: 50}
diff --git a/contrib/crossrpms/rtems4.9/powerpc/rtems-4.9-powerpc-rtems4.9-gdb.spec b/contrib/crossrpms/rtems4.9/powerpc/rtems-4.9-powerpc-rtems4.9-gdb.spec
index aaa990052b..62553743af 100644
--- a/contrib/crossrpms/rtems4.9/powerpc/rtems-4.9-powerpc-rtems4.9-gdb.spec
+++ b/contrib/crossrpms/rtems4.9/powerpc/rtems-4.9-powerpc-rtems4.9-gdb.spec
@@ -71,7 +71,7 @@ Requires: rtems-4.9-gdb-common
Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2
%{?_without_sources:NoSource: 0}
%if "%{gdb_version}" == "6.8"
-Patch0: gdb-6.8-rtems4.9-20080429.diff
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gdb-6.8-rtems4.9-20080429.diff
%endif
%description
@@ -104,8 +104,10 @@ rm -f gdb-%{gdb_version}/readline/configure
--disable-win32-registry \
--disable-werror \
--enable-sim \
-%if "%{gdb_version}" >= "6.6"
+%if "%{gdb_version}" >= "6.7"
--with-system-readline \
+%endif
+%if "%{gdb_version}" >= "6.6"
--with-expat \
%endif
--prefix=%{_prefix} --bindir=%{_bindir} \
diff --git a/contrib/crossrpms/rtems4.9/sh/rtems-4.9-sh-rtems4.9-binutils.spec b/contrib/crossrpms/rtems4.9/sh/rtems-4.9-sh-rtems4.9-binutils.spec
index e95c95594a..ef6f1de559 100644
--- a/contrib/crossrpms/rtems4.9/sh/rtems-4.9-sh-rtems4.9-binutils.spec
+++ b/contrib/crossrpms/rtems4.9/sh/rtems-4.9-sh-rtems4.9-binutils.spec
@@ -13,6 +13,18 @@
%define _exeext %{nil}
%endif
+%ifos cygwin cygwin32
+%define optflags -O3 -pipe -march=i486 -funroll-loops
+%define _libdir %{_exec_prefix}/lib
+%define debug_package %{nil}
+%endif
+
+%if "%{_build}" != "%{_host}"
+%define _host_rpmprefix rtems-4.9-%{_host}-
+%else
+%define _host_rpmprefix %{nil}
+%endif
+
%define binutils_pkgvers 2.18
%define binutils_version 2.18
%define binutils_rpmvers %{expand:%(echo "2.18" | tr - _ )}
@@ -26,6 +38,8 @@ License: GPL/LGPL
URL: http://sources.redhat.com/binutils
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires: %{_host_rpmprefix}gcc
+
%if "%{binutils_version}" >= "2.18"
# Bug in bfd: Doesn't build without texinfo installed
BuildRequires: texinfo >= 4.2
@@ -42,7 +56,7 @@ Requires: rtems-4.9-binutils-common
Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
%{?_without_sources:NoSource: 0}
%if "%{binutils_version}" == "2.18"
-Patch0: binutils-2.18-rtems4.9-20080211.diff
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/binutils-2.18-rtems4.9-20080211.diff
%endif
%description
@@ -56,12 +70,16 @@ cd binutils-%{binutils_pkgvers}
cd ..
%build
+ export PATH="%{_bindir}:${PATH}"
%if "sh-rtems4.9" == "i686-pc-cygwin"
# The cygwin sources are leaking memory
RPM_OPT_FLAGS="$(echo "$RPM_OPT_FLAGS"|sed -e 's; -Wp,-D_FORTIFY_SOURCE=2;;')"
%endif
mkdir -p build
cd build
+%if "%{_build}" != "%{_host}"
+ CFLAGS_FOR_BUILD="-g -O2 -Wall" \
+%endif
CFLAGS="$RPM_OPT_FLAGS" \
../binutils-%{binutils_pkgvers}/configure \
--build=%_build --host=%_host \
@@ -80,6 +98,7 @@ cd ..
cd ..
%install
+ export PATH="%{_bindir}:${PATH}"
rm -rf $RPM_BUILD_ROOT
cd build
@@ -116,6 +135,9 @@ cd ..
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/sh-rtems4.9-windres%{_exeext}; then
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/sh-rtems4.9-windres*
fi
+ if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/sh-rtems4.9-windmc%{_exeext}; then
+ rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/sh-rtems4.9-windmc*
+ fi
cd ..
@@ -161,7 +183,6 @@ sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
# %endif
%description -n rtems-4.9-sh-rtems4.9-binutils
-
GNU binutils targetting sh-rtems4.9.
%files -n rtems-4.9-sh-rtems4.9-binutils
diff --git a/contrib/crossrpms/rtems4.9/sh/rtems-4.9-sh-rtems4.9-cpukit.spec b/contrib/crossrpms/rtems4.9/sh/rtems-4.9-sh-rtems4.9-cpukit.spec
index cbbab7016f..8be7ffbbd4 100644
--- a/contrib/crossrpms/rtems4.9/sh/rtems-4.9-sh-rtems4.9-cpukit.spec
+++ b/contrib/crossrpms/rtems4.9/sh/rtems-4.9-sh-rtems4.9-cpukit.spec
@@ -13,6 +13,18 @@
%define _exeext %{nil}
%endif
+%ifos cygwin cygwin32
+%define optflags -O3 -pipe -march=i486 -funroll-loops
+%define _libdir %{_exec_prefix}/lib
+%define debug_package %{nil}
+%endif
+
+%if "%{_build}" != "%{_host}"
+%define _host_rpmprefix rtems-4.9-%{_host}-
+%else
+%define _host_rpmprefix %{nil}
+%endif
+
%define cpukit_pkgvers 4.7.99.1-20070510
%define cpukit_version 4.7.99.1
diff --git a/contrib/crossrpms/rtems4.9/sh/rtems-4.9-sh-rtems4.9-gcc.spec b/contrib/crossrpms/rtems4.9/sh/rtems-4.9-sh-rtems4.9-gcc.spec
index b18771299d..3370443b4d 100644
--- a/contrib/crossrpms/rtems4.9/sh/rtems-4.9-sh-rtems4.9-gcc.spec
+++ b/contrib/crossrpms/rtems4.9/sh/rtems-4.9-sh-rtems4.9-gcc.spec
@@ -26,9 +26,9 @@
%endif
-%define gcc_pkgvers 4.3.0
-%define gcc_version 4.3.0
-%define gcc_rpmvers %{expand:%(echo "4.3.0" | tr - _ )}
+%define gcc_pkgvers 4.3.2
+%define gcc_version 4.3.2
+%define gcc_rpmvers %{expand:%(echo "4.3.2" | tr - _ )}
%define newlib_version 1.16.0
%define gccnewlib_version gcc%{gcc_version}newlib%{newlib_version}
@@ -40,7 +40,7 @@ Summary: sh-rtems4.9 gcc
Group: Development/Tools
Version: %{gcc_rpmvers}
-Release: 12%{?dist}
+Release: 15%{?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"
@@ -92,27 +92,27 @@ Requires: rtems-4.9-sh-rtems4.9-newlib = %{newlib_version}-%{release}
%define gccexec %{_libdir}/gcc-lib
%endif
-%if "%{gcc_version}" == "4.3.0"
+%if "%{gcc_version}" == "4.3.2"
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: gcc-core-%{gcc_pkgvers}-rtems4.9-20080501.diff
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gcc-core-4.3.2-rtems4.9-20080828.diff
%endif
-%if "%{gcc_version}" == "4.2.3"
+%if "%{gcc_version}" == "4.3.1"
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: gcc-core-4.2.3-rtems4.9-20080205.diff
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gcc-core-4.3.1-rtems4.9-20080628.diff
%endif
%{?_without_sources:NoSource: 0}
-%if "%{gcc_version}" == "4.3.0"
+%if "%{gcc_version}" == "4.3.2"
Source1: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
%endif
-%if "%{gcc_version}" == "4.2.3"
-Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
+%if "%{gcc_version}" == "4.3.1"
+Source1: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
%endif
%{?_without_sources:NoSource: 1}
Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
%if "%{newlib_version}" == "1.16.0"
-Patch50: newlib-1.16.0-rtems4.9-20080430.diff
+Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/newlib-1.16.0-rtems4.9-20080827.diff
%endif
%{?_without_sources:NoSource: 50}
diff --git a/contrib/crossrpms/rtems4.9/sh/rtems-4.9-sh-rtems4.9-gdb.spec b/contrib/crossrpms/rtems4.9/sh/rtems-4.9-sh-rtems4.9-gdb.spec
index 97fd19fcbc..bf76f22ab2 100644
--- a/contrib/crossrpms/rtems4.9/sh/rtems-4.9-sh-rtems4.9-gdb.spec
+++ b/contrib/crossrpms/rtems4.9/sh/rtems-4.9-sh-rtems4.9-gdb.spec
@@ -71,7 +71,7 @@ Requires: rtems-4.9-gdb-common
Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2
%{?_without_sources:NoSource: 0}
%if "%{gdb_version}" == "6.8"
-Patch0: gdb-6.8-rtems4.9-20080429.diff
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gdb-6.8-rtems4.9-20080429.diff
%endif
%description
@@ -104,8 +104,10 @@ rm -f gdb-%{gdb_version}/readline/configure
--disable-win32-registry \
--disable-werror \
--enable-sim \
-%if "%{gdb_version}" >= "6.6"
+%if "%{gdb_version}" >= "6.7"
--with-system-readline \
+%endif
+%if "%{gdb_version}" >= "6.6"
--with-expat \
%endif
--prefix=%{_prefix} --bindir=%{_bindir} \
diff --git a/contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-binutils.spec b/contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-binutils.spec
index e5dd21b4e5..d48aa0307a 100644
--- a/contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-binutils.spec
+++ b/contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-binutils.spec
@@ -13,6 +13,18 @@
%define _exeext %{nil}
%endif
+%ifos cygwin cygwin32
+%define optflags -O3 -pipe -march=i486 -funroll-loops
+%define _libdir %{_exec_prefix}/lib
+%define debug_package %{nil}
+%endif
+
+%if "%{_build}" != "%{_host}"
+%define _host_rpmprefix rtems-4.9-%{_host}-
+%else
+%define _host_rpmprefix %{nil}
+%endif
+
%define binutils_pkgvers 2.18
%define binutils_version 2.18
%define binutils_rpmvers %{expand:%(echo "2.18" | tr - _ )}
@@ -26,6 +38,8 @@ License: GPL/LGPL
URL: http://sources.redhat.com/binutils
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires: %{_host_rpmprefix}gcc
+
%if "%{binutils_version}" >= "2.18"
# Bug in bfd: Doesn't build without texinfo installed
BuildRequires: texinfo >= 4.2
@@ -42,7 +56,7 @@ Requires: rtems-4.9-binutils-common
Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
%{?_without_sources:NoSource: 0}
%if "%{binutils_version}" == "2.18"
-Patch0: binutils-2.18-rtems4.9-20080211.diff
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/binutils-2.18-rtems4.9-20080211.diff
%endif
%description
@@ -56,12 +70,16 @@ cd binutils-%{binutils_pkgvers}
cd ..
%build
+ export PATH="%{_bindir}:${PATH}"
%if "sparc-rtems4.9" == "i686-pc-cygwin"
# The cygwin sources are leaking memory
RPM_OPT_FLAGS="$(echo "$RPM_OPT_FLAGS"|sed -e 's; -Wp,-D_FORTIFY_SOURCE=2;;')"
%endif
mkdir -p build
cd build
+%if "%{_build}" != "%{_host}"
+ CFLAGS_FOR_BUILD="-g -O2 -Wall" \
+%endif
CFLAGS="$RPM_OPT_FLAGS" \
../binutils-%{binutils_pkgvers}/configure \
--build=%_build --host=%_host \
@@ -80,6 +98,7 @@ cd ..
cd ..
%install
+ export PATH="%{_bindir}:${PATH}"
rm -rf $RPM_BUILD_ROOT
cd build
@@ -116,6 +135,9 @@ cd ..
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/sparc-rtems4.9-windres%{_exeext}; then
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/sparc-rtems4.9-windres*
fi
+ if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/sparc-rtems4.9-windmc%{_exeext}; then
+ rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/sparc-rtems4.9-windmc*
+ fi
cd ..
@@ -161,7 +183,6 @@ sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
# %endif
%description -n rtems-4.9-sparc-rtems4.9-binutils
-
GNU binutils targetting sparc-rtems4.9.
%files -n rtems-4.9-sparc-rtems4.9-binutils
diff --git a/contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-cpukit.spec b/contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-cpukit.spec
index b918964b78..70305a3c00 100644
--- a/contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-cpukit.spec
+++ b/contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-cpukit.spec
@@ -13,6 +13,18 @@
%define _exeext %{nil}
%endif
+%ifos cygwin cygwin32
+%define optflags -O3 -pipe -march=i486 -funroll-loops
+%define _libdir %{_exec_prefix}/lib
+%define debug_package %{nil}
+%endif
+
+%if "%{_build}" != "%{_host}"
+%define _host_rpmprefix rtems-4.9-%{_host}-
+%else
+%define _host_rpmprefix %{nil}
+%endif
+
%define cpukit_pkgvers 4.7.99.1-20070510
%define cpukit_version 4.7.99.1
diff --git a/contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-gcc.spec b/contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-gcc.spec
index 6b8e5cbc31..893b0d9c3e 100644
--- a/contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-gcc.spec
+++ b/contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-gcc.spec
@@ -26,9 +26,9 @@
%endif
-%define gcc_pkgvers 4.3.0
-%define gcc_version 4.3.0
-%define gcc_rpmvers %{expand:%(echo "4.3.0" | tr - _ )}
+%define gcc_pkgvers 4.3.2
+%define gcc_version 4.3.2
+%define gcc_rpmvers %{expand:%(echo "4.3.2" | tr - _ )}
%define newlib_version 1.16.0
%define gccnewlib_version gcc%{gcc_version}newlib%{newlib_version}
@@ -40,7 +40,7 @@ Summary: sparc-rtems4.9 gcc
Group: Development/Tools
Version: %{gcc_rpmvers}
-Release: 12%{?dist}
+Release: 15%{?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"
@@ -92,27 +92,27 @@ Requires: rtems-4.9-sparc-rtems4.9-newlib = %{newlib_version}-%{release}
%define gccexec %{_libdir}/gcc-lib
%endif
-%if "%{gcc_version}" == "4.3.0"
+%if "%{gcc_version}" == "4.3.2"
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: gcc-core-%{gcc_pkgvers}-rtems4.9-20080501.diff
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gcc-core-4.3.2-rtems4.9-20080828.diff
%endif
-%if "%{gcc_version}" == "4.2.3"
+%if "%{gcc_version}" == "4.3.1"
Source0: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
-Patch0: gcc-core-4.2.3-rtems4.9-20080205.diff
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gcc-core-4.3.1-rtems4.9-20080628.diff
%endif
%{?_without_sources:NoSource: 0}
-%if "%{gcc_version}" == "4.3.0"
+%if "%{gcc_version}" == "4.3.2"
Source1: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
%endif
-%if "%{gcc_version}" == "4.2.3"
-Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
+%if "%{gcc_version}" == "4.3.1"
+Source1: ftp://ftp.gnu.org/pub/gnu/gcc/%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
%endif
%{?_without_sources:NoSource: 1}
Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_version}.tar.gz
%if "%{newlib_version}" == "1.16.0"
-Patch50: newlib-1.16.0-rtems4.9-20080430.diff
+Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/newlib-1.16.0-rtems4.9-20080827.diff
%endif
%{?_without_sources:NoSource: 50}
diff --git a/contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-gdb.spec b/contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-gdb.spec
index bb15358527..dc038b2e0f 100644
--- a/contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-gdb.spec
+++ b/contrib/crossrpms/rtems4.9/sparc/rtems-4.9-sparc-rtems4.9-gdb.spec
@@ -71,7 +71,7 @@ Requires: rtems-4.9-gdb-common
Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2
%{?_without_sources:NoSource: 0}
%if "%{gdb_version}" == "6.8"
-Patch0: gdb-6.8-rtems4.9-20080429.diff
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.9/gdb-6.8-rtems4.9-20080429.diff
%endif
%description
@@ -104,8 +104,10 @@ rm -f gdb-%{gdb_version}/readline/configure
--disable-win32-registry \
--disable-werror \
--enable-sim \
-%if "%{gdb_version}" >= "6.6"
+%if "%{gdb_version}" >= "6.7"
--with-system-readline \
+%endif
+%if "%{gdb_version}" >= "6.6"
--with-expat \
%endif
--prefix=%{_prefix} --bindir=%{_bindir} \