2024-01-05 22:39:23 +01:00
|
|
|
%if "%{_target_cpu}" == "%{_build_cpu}"
|
2024-01-05 22:39:22 +01:00
|
|
|
%define name gcc
|
|
|
|
%else
|
|
|
|
%define name cross-%{_target_cpu}-gcc
|
|
|
|
%endif
|
|
|
|
|
|
|
|
Name: gdb
|
2024-01-05 22:39:23 +01:00
|
|
|
Version: 12.1
|
2024-01-05 22:39:24 +01:00
|
|
|
Release: 2mamba
|
2024-01-05 22:39:22 +01:00
|
|
|
Summary: A GNU source-level debugger for C, C++, Java and other languages
|
|
|
|
Group: Development/Tools
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-05 22:39:23 +01:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-05 22:39:23 +01:00
|
|
|
URL: https://www.gnu.org/savannah-checkouts/gnu/gdb/index.html
|
2024-01-05 22:39:22 +01:00
|
|
|
Source: http://ftp.gnu.org/gnu/gdb/gdb-%{version}.tar.xz
|
2024-01-05 22:39:22 +01:00
|
|
|
Patch0: %{name}-6.3-gentoo_bfd_malloc_wrap.patch
|
|
|
|
Patch1: %{name}-6.3-gdbinit_stat.patch
|
|
|
|
License: GPL
|
2024-01-05 22:39:22 +01:00
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
2024-01-05 22:39:22 +01:00
|
|
|
BuildRequires: libboost-devel
|
2024-01-05 22:39:23 +01:00
|
|
|
BuildRequires: libelf-devel
|
2024-01-05 22:39:22 +01:00
|
|
|
BuildRequires: libexpat-devel
|
2024-01-05 22:39:23 +01:00
|
|
|
BuildRequires: libgc-devel
|
|
|
|
BuildRequires: libgcc
|
2024-01-05 22:39:22 +01:00
|
|
|
BuildRequires: libgmp-devel
|
2024-01-05 22:39:23 +01:00
|
|
|
BuildRequires: libguile-devel
|
2024-01-05 22:39:22 +01:00
|
|
|
BuildRequires: liblzma-devel
|
2024-01-05 22:39:22 +01:00
|
|
|
BuildRequires: libmpfr-devel
|
2024-01-05 22:39:22 +01:00
|
|
|
BuildRequires: libncurses-devel
|
2024-01-05 22:39:24 +01:00
|
|
|
BuildRequires: libpython3-devel
|
2024-01-05 22:39:23 +01:00
|
|
|
BuildRequires: libstdc++6-devel
|
|
|
|
BuildRequires: libxxhash-devel
|
2024-01-05 22:39:22 +01:00
|
|
|
BuildRequires: source-highlight-devel
|
2024-01-05 22:39:22 +01:00
|
|
|
## AUTOBUILDREQ-END
|
2024-01-05 22:39:22 +01:00
|
|
|
BuildRequires: bash
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gcc-fortran
|
2024-01-05 22:39:23 +01:00
|
|
|
#%if "%{stage1}" != "1"
|
|
|
|
#BuildRequires: gcc-java
|
|
|
|
#%endif
|
2024-01-05 22:39:22 +01:00
|
|
|
BuildRequires: gettext-devel
|
|
|
|
BuildRequires: libobjc-devel
|
|
|
|
BuildRequires: libreadline-devel
|
|
|
|
BuildRequires: texinfo
|
|
|
|
Requires(post):%{__install_info}
|
|
|
|
Requires: glibc-debug
|
|
|
|
|
|
|
|
%description
|
|
|
|
GDB, the GNU Project debugger, allows you to see what is going on `inside' another program while it executes.
|
|
|
|
GDB can do four main kinds of things (plus other things in support of these) to help you catch bugs in the act:
|
|
|
|
* Start your program, specifying anything that might affect its behavior.
|
|
|
|
* Make your program stop on specified conditions.
|
|
|
|
* Examine what has happened, when your program has stopped.
|
|
|
|
* Change things in your program, so you can experiment with correcting the effects of one bug and go on to learn about another.
|
|
|
|
The program being debugged can be written in Ada, C, C++, Objective-C, Pascal (and many other languages).
|
|
|
|
Those programs might be executing on the same machine as GDB (native) or on another machine (remote).
|
|
|
|
|
|
|
|
If you are going to develop C and/or C++ programs and use the GNU gcc compiler, you may want to install gdb to help you debug your programs.
|
|
|
|
|
2024-01-05 22:39:22 +01:00
|
|
|
%debug_package
|
|
|
|
|
2024-01-05 22:39:22 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2024-01-05 22:39:22 +01:00
|
|
|
#-D -T
|
|
|
|
#:<< _EOF
|
2024-01-05 22:39:22 +01:00
|
|
|
#%patch0 -p0 -b .gentoo_bfd_malloc_wrap
|
|
|
|
#%patch1 -p0 -b .gdbinit_stat
|
|
|
|
#rm -rf ./gdb/gdbserver
|
|
|
|
|
|
|
|
cat > gdb/version.in << EOF
|
|
|
|
%{version}-%{release} (%{_target_vendor})
|
|
|
|
EOF
|
|
|
|
|
|
|
|
%build
|
2024-01-05 22:39:22 +01:00
|
|
|
#:<< _EOF
|
2024-01-05 22:39:22 +01:00
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
ln -s ../configure .
|
|
|
|
|
2024-01-05 22:39:22 +01:00
|
|
|
%configure \
|
|
|
|
--with-separate-debug-dir=%{_prefix}/lib/debug \
|
|
|
|
--host=%{_target_platform} \
|
|
|
|
--build=%{_target_platform} \
|
2024-01-05 22:39:24 +01:00
|
|
|
--with-python=%{__python3} \
|
2024-01-05 22:39:22 +01:00
|
|
|
--disable-rpath \
|
2024-01-05 22:39:23 +01:00
|
|
|
%ifarch arm aarch64
|
|
|
|
--disable-sim
|
|
|
|
%endif
|
|
|
|
|
2024-01-05 22:39:22 +01:00
|
|
|
# --with-system-readline \
|
|
|
|
|
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
2024-01-05 22:39:22 +01:00
|
|
|
%makeinstall -C build
|
2024-01-05 22:39:22 +01:00
|
|
|
|
|
|
|
## install the gcore script in /usr/bin
|
|
|
|
#install -m 755 gdb/gdb_gcore.sh %{buildroot}%{_bindir}/gcore
|
|
|
|
|
|
|
|
# these are part of binutils and libbinutils
|
|
|
|
rm -f %{buildroot}%{_datadir}/locale/*/LC_MESSAGES/{bfd,opcodes}.mo
|
|
|
|
rm -fr %{buildroot}%{_includedir}
|
2024-01-05 22:39:22 +01:00
|
|
|
rm -f %{buildroot}%{_infodir}/{bfd*,configure*,ctf*,standard*}
|
|
|
|
rm -f %{buildroot}%{_libdir}/lib{bfd*,iberty*,ctf*,opcodes*}
|
2024-01-05 22:39:22 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%post
|
|
|
|
%install_info annotate.info
|
|
|
|
%install_info gdb.info
|
|
|
|
%install_info stabs.info
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%uninstall_info annotate.info
|
|
|
|
%uninstall_info gdb.info
|
|
|
|
%uninstall_info stabs.info
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/gcore
|
|
|
|
%{_bindir}/gdb
|
2024-01-05 22:39:22 +01:00
|
|
|
%{_bindir}/gdb-add-index
|
2024-01-05 22:39:22 +01:00
|
|
|
%{_bindir}/gdbserver
|
|
|
|
#%{_bindir}/gdbtui
|
2024-01-05 22:39:23 +01:00
|
|
|
#%ifarch aarch64
|
|
|
|
#%{_bindir}/run
|
|
|
|
#%{_libdir}/lib%{_host}-sim.a
|
|
|
|
#%endif
|
2024-01-05 22:39:23 +01:00
|
|
|
%ifnarch arm
|
2024-01-05 22:39:22 +01:00
|
|
|
%{_libdir}/libinproctrace.so
|
|
|
|
%endif
|
|
|
|
%dir %{_datadir}/gdb
|
2024-01-05 22:39:23 +01:00
|
|
|
%dir %{_datadir}/gdb/guile
|
|
|
|
%{_datadir}/gdb/guile/*
|
2024-01-05 22:39:22 +01:00
|
|
|
%dir %{_datadir}/gdb/python
|
|
|
|
%dir %{_datadir}/gdb/python/gdb
|
|
|
|
%{_datadir}/gdb/python/gdb/*
|
|
|
|
%dir %{_datadir}/gdb/syscalls
|
2024-01-05 22:39:22 +01:00
|
|
|
%{_datadir}/gdb/syscalls/*.xml
|
2024-01-05 22:39:22 +01:00
|
|
|
%{_datadir}/gdb/syscalls/gdb-syscalls.dtd
|
|
|
|
%dir %{_datadir}/gdb/system-gdbinit
|
|
|
|
%{_datadir}/gdb/system-gdbinit/elinos.py
|
|
|
|
%{_datadir}/gdb/system-gdbinit/wrs-linux.py
|
|
|
|
%{_infodir}/annotate.info*
|
|
|
|
%{_infodir}/gdb.info*
|
|
|
|
#%{_infodir}/gdbint.info*
|
|
|
|
%{_infodir}/stabs.info*
|
|
|
|
%{_mandir}/man1/gcore.1*
|
|
|
|
%{_mandir}/man1/gdb.*
|
2024-01-05 22:39:22 +01:00
|
|
|
%{_mandir}/man1/gdb-add-index.1*
|
2024-01-05 22:39:22 +01:00
|
|
|
%{_mandir}/man1/gdbserver.*
|
|
|
|
%{_mandir}/man5/gdbinit.5*
|
|
|
|
%doc COPYING COPYING.LIB
|
|
|
|
#README gdb/NEWS
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 22:39:24 +01:00
|
|
|
* Tue Jan 10 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 12.1-2mamba
|
|
|
|
- rebuilt with python3
|
|
|
|
|
2024-01-05 22:39:23 +01:00
|
|
|
* Mon May 02 2022 Automatic Build System <autodist@mambasoft.it> 12.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:39:23 +01:00
|
|
|
* Sun Jan 16 2022 Automatic Build System <autodist@mambasoft.it> 11.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:39:23 +01:00
|
|
|
* Mon Sep 13 2021 Automatic Build System <autodist@mambasoft.it> 11.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:39:23 +01:00
|
|
|
* Wed Apr 28 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 10.2-1mamba
|
|
|
|
- update to 10.2
|
|
|
|
|
2024-01-05 22:39:23 +01:00
|
|
|
* Mon Nov 09 2020 Automatic Build System <autodist@mambasoft.it> 10.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:39:23 +01:00
|
|
|
* Fri May 29 2020 Automatic Build System <autodist@mambasoft.it> 9.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:39:22 +01:00
|
|
|
* Mon Feb 17 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 9.1-2mamba
|
|
|
|
- remove conflicting libctf* which provided by libbinutils-devel
|
|
|
|
|
2024-01-05 22:39:22 +01:00
|
|
|
* Fri Feb 14 2020 Automatic Build System <autodist@mambasoft.it> 9.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:39:22 +01:00
|
|
|
* Thu Oct 03 2019 Automatic Build System <autodist@mambasoft.it> 8.3.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:39:22 +01:00
|
|
|
* Thu Jul 18 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 8.3-2mamba
|
|
|
|
- rebuilt with source-highlight
|
|
|
|
|
|
|
|
* Wed May 22 2019 Automatic Build System <autodist@mambasoft.it> 8.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:39:22 +01:00
|
|
|
* Sat Jan 05 2019 Automatic Build System <autodist@mambasoft.it> 8.2.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:39:22 +01:00
|
|
|
* Wed Sep 12 2018 Automatic Build System <autodist@mambasoft.it> 8.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:39:22 +01:00
|
|
|
* Thu Aug 09 2018 Automatic Build System <autodist@mambasoft.it> 8.1.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:39:22 +01:00
|
|
|
* Sat Feb 03 2018 Automatic Build System <autodist@mambasoft.it> 8.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:39:22 +01:00
|
|
|
* Fri Sep 08 2017 Automatic Build System <autodist@mambasoft.it> 8.0.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:39:22 +01:00
|
|
|
* Thu Jun 08 2017 Automatic Build System <autodist@mambasoft.it> 8.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:39:22 +01:00
|
|
|
* Sat Jan 28 2017 Automatic Build System <autodist@mambasoft.it> 7.12.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:39:22 +01:00
|
|
|
* Thu Oct 13 2016 Automatic Build System <autodist@mambasoft.it> 7.12-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:39:22 +01:00
|
|
|
* Thu Jun 02 2016 Automatic Build System <autodist@mambasoft.it> 7.11.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:39:22 +01:00
|
|
|
* Sun Feb 28 2016 Automatic Build System <autodist@mambasoft.it> 7.11-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:39:22 +01:00
|
|
|
* Thu Dec 17 2015 Automatic Build System <autodist@mambasoft.it> 7.10.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:39:22 +01:00
|
|
|
* Mon Sep 14 2015 Automatic Build System <autodist@mambasoft.it> 7.10-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:39:22 +01:00
|
|
|
* Thu May 14 2015 Automatic Build System <autodist@mambasoft.it> 7.9.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:39:22 +01:00
|
|
|
* Sun Feb 22 2015 Automatic Build System <autodist@mambasoft.it> 7.9-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:39:22 +01:00
|
|
|
* Fri Jan 16 2015 Automatic Build System <autodist@mambasoft.it> 7.8.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:39:22 +01:00
|
|
|
* Wed Nov 05 2014 Automatic Build System <autodist@mambasoft.it> 7.8.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:39:22 +01:00
|
|
|
* Mon Aug 18 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 7.8-1mamba
|
|
|
|
- update to 7.8
|
|
|
|
|
2024-01-05 22:39:22 +01:00
|
|
|
* Fri May 09 2014 Automatic Build System <autodist@mambasoft.it> 7.7.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sat Feb 15 2014 Automatic Build System <autodist@mambasoft.it> 7.7-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Dec 15 2013 Automatic Build System <autodist@mambasoft.it> 7.6.2-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Sat Aug 31 2013 Automatic Build System <autodist@mambasoft.it> 7.6.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sat Jun 01 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 7.6-2mamba
|
|
|
|
- python 2.7 mass rebuild
|
|
|
|
|
|
|
|
* Mon Apr 29 2013 Automatic Build System <autodist@mambasoft.it> 7.6-1mamba
|
|
|
|
- update to 7.6
|
|
|
|
|
|
|
|
* Sat Dec 29 2012 Automatic Build System <autodist@mambasoft.it> 7.5.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Sep 09 2012 Automatic Build System <autodist@mambasoft.it> 7.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Fri Jun 15 2012 Automatic Build System <autodist@mambasoft.it> 7.4.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Oct 04 2011 Automatic Build System <autodist@mambasoft.it> 7.3.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sat Aug 13 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 7.3-2mamba
|
|
|
|
- added requirement for glibc-debug
|
|
|
|
|
|
|
|
* Sun Aug 07 2011 Automatic Build System <autodist@mambasoft.it> 7.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Jan 31 2011 Automatic Build System <autodist@mambasoft.it> 7.2-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Sat Apr 17 2010 Automatic Build System <autodist@mambasoft.it> 7.1-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Wed Jan 20 2010 Automatic Build System <autodist@mambasoft.it> 7.0.1-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Tue Oct 13 2009 Automatic Build System <autodist@mambasoft.it> 7.0-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Wed Apr 08 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 6.8-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Tue Jan 08 2008 Aleph0 <aleph0@openmamba.org> 6.7.1-1mamba
|
|
|
|
- update to 6.7.1
|
|
|
|
- new package maintainer
|
|
|
|
- do not remove gdbserver binary and related manpage
|
|
|
|
- install the gcore shell script
|
|
|
|
|
|
|
|
* Tue Mar 27 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 6.6-1qilnx
|
|
|
|
- update to version 6.6 by autospec
|
|
|
|
|
|
|
|
* Wed Jun 28 2006 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 6.5-1qilnx
|
|
|
|
- update to version 6.5 by autospec
|
|
|
|
|
|
|
|
* Wed Nov 09 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 6.3-4qilnx
|
|
|
|
- rebuilt with gcc4
|
|
|
|
|
|
|
|
* Thu Jul 14 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 6.3-3qilnx
|
|
|
|
- rebuilt with given host platform ( = target platform)
|
|
|
|
|
|
|
|
* Wed Jun 08 2005 Davide Madrisan <davide.madrisan@qilinux.it> 6.3-2qilnx
|
|
|
|
- security fixes QSA-2005-071 (CAN-2005-1704, CAN-2005-1705)
|
|
|
|
|
|
|
|
* Tue Nov 16 2004 Davide Madrisan <davide.madrisan@qilinux.it> 6.3-1qilnx
|
|
|
|
- update to version 6.3 by autospec
|
|
|
|
|
|
|
|
* Tue Oct 19 2004 Davide Madrisan <davide.madrisan@qilinux.it> 6.2.1-1qilnx
|
|
|
|
- package created by autospec
|