mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
gdb-6.7
This commit is contained in:
@@ -17,11 +17,11 @@ NEWLIB_VERS = 1.15.0
|
|||||||
include ../gcc.am
|
include ../gcc.am
|
||||||
GCC_OPTS += --languages=cxx
|
GCC_OPTS += --languages=cxx
|
||||||
|
|
||||||
GDB_VERS = 6.6.90
|
GDB_VERS = 6.7
|
||||||
GDB_PKGVERS = $(GDB_VERS)
|
GDB_PKGVERS = $(GDB_VERS)
|
||||||
GDB_RPMREL = 1%{?dist}
|
GDB_RPMREL = 1%{?dist}
|
||||||
include ../gdb.am
|
include ../gdb.am
|
||||||
GDB_OPTS += --disable-infos
|
GDB_OPTS +=
|
||||||
|
|
||||||
CPUKIT_VERS = 4.7.99.1
|
CPUKIT_VERS = 4.7.99.1
|
||||||
CPUKIT_PKGVERS = $(CPUKIT_VERS)-20070510
|
CPUKIT_PKGVERS = $(CPUKIT_VERS)-20070510
|
||||||
|
|||||||
@@ -6,3 +6,6 @@ Patch0: gdb-6.5-rtems-20060713.diff
|
|||||||
%if "%{gdb_version}" == "6.6"
|
%if "%{gdb_version}" == "6.6"
|
||||||
Patch0: gdb-6.6-rtems4.8-20070306.diff
|
Patch0: gdb-6.6-rtems4.8-20070306.diff
|
||||||
%endif
|
%endif
|
||||||
|
%if "%{gdb_version}" == "6.7"
|
||||||
|
Patch0: gdb-6.7-rtems4.9-20071011.diff
|
||||||
|
%endif
|
||||||
|
|||||||
@@ -13,8 +13,8 @@
|
|||||||
%define _exeext %{nil}
|
%define _exeext %{nil}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%define gdb_version 6.6.90
|
%define gdb_version 6.7
|
||||||
%define gdb_rpmvers %{expand:%(echo 6.6.90 | tr - _)}
|
%define gdb_rpmvers %{expand:%(echo 6.7 | tr - _)}
|
||||||
|
|
||||||
Name: rtems-4.9-sparc-rtems4.9-gdb
|
Name: rtems-4.9-sparc-rtems4.9-gdb
|
||||||
Summary: Gdb for target sparc-rtems4.9
|
Summary: Gdb for target sparc-rtems4.9
|
||||||
@@ -32,11 +32,16 @@ BuildRequires: expat
|
|||||||
BuildRequires: expat-devel
|
BuildRequires: expat-devel
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
# Required for building the infos
|
||||||
|
BuildRequires: /sbin/install-info
|
||||||
|
BuildRequires: texinfo >= 4.2
|
||||||
%if "sparc-rtems4.9" == "sparc-rtems4.9"
|
%if "sparc-rtems4.9" == "sparc-rtems4.9"
|
||||||
BuildRequires: libtermcap-devel
|
BuildRequires: libtermcap-devel
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
|
|
||||||
|
Requires: rtems-4.9-gdb-common
|
||||||
|
|
||||||
Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2
|
Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2
|
||||||
%{?_without_sources:NoSource: 0}
|
%{?_without_sources:NoSource: 0}
|
||||||
%if "%{gdb_version}" == "6.5"
|
%if "%{gdb_version}" == "6.5"
|
||||||
@@ -45,6 +50,9 @@ Patch0: gdb-6.5-rtems-20060713.diff
|
|||||||
%if "%{gdb_version}" == "6.6"
|
%if "%{gdb_version}" == "6.6"
|
||||||
Patch0: gdb-6.6-rtems4.8-20070306.diff
|
Patch0: gdb-6.6-rtems4.8-20070306.diff
|
||||||
%endif
|
%endif
|
||||||
|
%if "%{gdb_version}" == "6.7"
|
||||||
|
Patch0: gdb-6.7-rtems4.9-20071011.diff
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
GDB for target sparc-rtems4.9
|
GDB for target sparc-rtems4.9
|
||||||
@@ -73,6 +81,7 @@ cd ..
|
|||||||
--mandir=%{_mandir} --infodir=%{_infodir}
|
--mandir=%{_mandir} --infodir=%{_infodir}
|
||||||
|
|
||||||
make all
|
make all
|
||||||
|
make info
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@@ -90,10 +99,22 @@ cd ..
|
|||||||
mandir=$RPM_BUILD_ROOT%{_mandir} \
|
mandir=$RPM_BUILD_ROOT%{_mandir} \
|
||||||
install
|
install
|
||||||
|
|
||||||
|
make prefix=$RPM_BUILD_ROOT%{_prefix} \
|
||||||
|
bindir=$RPM_BUILD_ROOT%{_bindir} \
|
||||||
|
includedir=$RPM_BUILD_ROOT%{_includedir} \
|
||||||
|
libdir=$RPM_BUILD_ROOT%{_libdir} \
|
||||||
|
infodir=$RPM_BUILD_ROOT%{_infodir} \
|
||||||
|
mandir=$RPM_BUILD_ROOT%{_mandir} \
|
||||||
|
install-info
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Conflict with a native gdb's infos
|
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||||
rm -rf $RPM_BUILD_ROOT%{_infodir}
|
touch $RPM_BUILD_ROOT%{_infodir}/dir
|
||||||
|
|
||||||
|
# These come from other packages
|
||||||
|
rm -rf $RPM_BUILD_ROOT%{_infodir}/bfd*
|
||||||
|
rm -rf $RPM_BUILD_ROOT%{_infodir}/configure*
|
||||||
|
rm -rf $RPM_BUILD_ROOT%{_infodir}/standards*
|
||||||
|
|
||||||
# We don't ship host files
|
# We don't ship host files
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
|
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
|
||||||
@@ -159,3 +180,50 @@ GNU gdb targetting sparc-rtems4.9.
|
|||||||
%dir %{_bindir}
|
%dir %{_bindir}
|
||||||
%{_bindir}/sparc-rtems4.9-*
|
%{_bindir}/sparc-rtems4.9-*
|
||||||
|
|
||||||
|
# ==============================================================
|
||||||
|
# rtems-4.9-gdb-common
|
||||||
|
# ==============================================================
|
||||||
|
%package -n rtems-4.9-gdb-common
|
||||||
|
Summary: Base package for RTEMS gdbs
|
||||||
|
Group: Development/Tools
|
||||||
|
Requires(post): /sbin/install-info
|
||||||
|
Requires(preun): /sbin/install-info
|
||||||
|
|
||||||
|
%description -n rtems-4.9-gdb-common
|
||||||
|
|
||||||
|
GDB files shared by all targets.
|
||||||
|
|
||||||
|
%post -n rtems-4.9-gdb-common
|
||||||
|
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
|
||||||
|
%if "%{gdb_version}" < "6.3"
|
||||||
|
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/mmalloc.info.gz || :
|
||||||
|
%endif
|
||||||
|
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
|
||||||
|
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
|
||||||
|
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
|
||||||
|
|
||||||
|
%preun -n rtems-4.9-gdb-common
|
||||||
|
if [ $1 -eq 0 ]; then
|
||||||
|
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
|
||||||
|
%if "%{gdb_version}" < "6.3"
|
||||||
|
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/mmalloc.info.gz || :
|
||||||
|
%endif
|
||||||
|
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
|
||||||
|
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
|
||||||
|
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
|
||||||
|
fi
|
||||||
|
|
||||||
|
%files -n rtems-4.9-gdb-common
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%dir %{_infodir}
|
||||||
|
%ghost %{_infodir}/dir
|
||||||
|
%{_infodir}/gdb.info*
|
||||||
|
|
||||||
|
# FIXME: When had mmalloc.info been removed?
|
||||||
|
%if "%{gdb_version}" < "6.3"
|
||||||
|
%{_infodir}/mmalloc.info*
|
||||||
|
%endif
|
||||||
|
%{_infodir}/gdbint.info*
|
||||||
|
%{_infodir}/stabs.info*
|
||||||
|
%{_infodir}/annotate.info*
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user