summaryrefslogtreecommitdiffstats
path: root/contrib/crossrpms/rtems4.10/powerpc
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-10-07 06:52:08 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-10-07 06:52:08 +0000
commit2cd6377acc1ab3e7f8c133e22eff017fd60e4453 (patch)
treefe8f63783b5b217078ff7a271f06d8e4872baca7 /contrib/crossrpms/rtems4.10/powerpc
parentSwitch back to gnu.org hosted sources. (diff)
downloadrtems-2cd6377acc1ab3e7f8c133e22eff017fd60e4453.tar.bz2
Regenerate.
Diffstat (limited to 'contrib/crossrpms/rtems4.10/powerpc')
-rw-r--r--contrib/crossrpms/rtems4.10/powerpc/rtems-4.10-powerpc-rtems4.10-gdb.spec24
1 files changed, 18 insertions, 6 deletions
diff --git a/contrib/crossrpms/rtems4.10/powerpc/rtems-4.10-powerpc-rtems4.10-gdb.spec b/contrib/crossrpms/rtems4.10/powerpc/rtems-4.10-powerpc-rtems4.10-gdb.spec
index 47b7ab2283..3bc4bc17ab 100644
--- a/contrib/crossrpms/rtems4.10/powerpc/rtems-4.10-powerpc-rtems4.10-gdb.spec
+++ b/contrib/crossrpms/rtems4.10/powerpc/rtems-4.10-powerpc-rtems4.10-gdb.spec
@@ -45,8 +45,8 @@
%define _host_rpmprefix %{nil}
%endif
-%define gdb_version 6.8.92
-%define gdb_rpmvers %{expand:%(echo 6.8.92 | tr - _)}
+%define gdb_version 7.0
+%define gdb_rpmvers %{expand:%(echo 7.0 | tr - _)}
Name: rtems-4.10-powerpc-rtems4.10-gdb
Summary: Gdb for target powerpc-rtems4.10
@@ -126,10 +126,8 @@ BuildRequires: texinfo >= 4.2
Requires: rtems-4.10-gdb-common
-# A copy of a gdb development snapshot having been retrieved from
-# ftp://sourceware.org/pub/gdb/snapshots/branch/gdb-%{gdb_version}.tar.bz2
-Source0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gdb-%{gdb_version}.tar.bz2
-Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gdb-%{gdb_version}-rtems4.10-20091001.diff
+Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-%{gdb_version}.tar.bz2
+Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gdb-%{gdb_version}-rtems4.10-20091007.diff
%description
GDB for target powerpc-rtems4.10
@@ -199,6 +197,20 @@ cd ..
# host library, installed to a bogus directory
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libpowerpc-rtems4.10-sim.a
+%if "%{gdb_version}" >= "7.0"
+# Bug in gdb-7.0, bogusly installs linux-only files
+ somethinguseful=0
+ for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
+ case $f in
+ *linux.xml) rm -f $f;;
+ *.xml) somethinguseful=1;;
+ esac
+ done
+ if test $somethinguseful -eq 0; then
+ rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
+ fi
+%endif
+
cd ..
# Extract %%__os_install_post into os_install_post~