mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 15:43:49 +02:00
cross-arm-none-eabi-gdb: update to 11.1 and clean up.
Co-authored-by: Evgeny Ermakov <evgeny.v.ermakov@gmail.com>
This commit is contained in:
parent
c2934f34bf
commit
beb3d4585f
2 changed files with 41 additions and 40 deletions
|
@ -0,0 +1,11 @@
|
||||||
|
--- a/gdb/mips-linux-nat.c
|
||||||
|
+++ b/gdb/mips-linux-nat.c
|
||||||
|
@@ -31,7 +31,7 @@
|
||||||
|
#include "gdb_proc_service.h"
|
||||||
|
#include "gregset.h"
|
||||||
|
|
||||||
|
-#include <sgidefs.h>
|
||||||
|
+#include <asm/sgidefs.h>
|
||||||
|
#include "nat/gdb_ptrace.h"
|
||||||
|
#include <asm/ptrace.h>
|
||||||
|
#include "inf-ptrace.h"
|
|
@ -1,48 +1,38 @@
|
||||||
# Template file for 'cross-${_triplet}-${_pkgname}'
|
# Template file for 'cross-arm-none-eabi-gdb'
|
||||||
_triplet=arm-none-eabi
|
pkgname=cross-arm-none-eabi-gdb
|
||||||
_pkgname=gdb
|
version=11.1
|
||||||
pkgname=cross-${_triplet}-${_pkgname}
|
|
||||||
version=8.3
|
|
||||||
revision=1
|
revision=1
|
||||||
wrksrc="${_pkgname}-${version}"
|
wrksrc=gdb-${version}
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
pycompile_dirs="/usr/share/${_pkgname}"
|
configure_args="--target=arm-none-eabi --disable-werror --disable-nls --with-system-readline
|
||||||
configure_args="
|
--with-system-gdbinit=/etc/gdb/gdbinit --with-system-zlib --without-isl
|
||||||
--disable-gdbserver
|
$(vopt_with guile) $(vopt_if python --with-python=/usr/bin/python3)"
|
||||||
--disable-nls
|
hostmakedepends="pkg-config texinfo $(vopt_if python python3-devel) $(vopt_if guile guile)"
|
||||||
--disable-werror
|
# mpfr is necessary to emulate target floating point behavior
|
||||||
--host=${XBPS_CROSS_TRIPLE}
|
# babeltrace is necessary for Common Trace Format support
|
||||||
--prefix=/usr
|
makedepends="expat-devel ncurses-devel readline-devel zlib-devel gmp-devel
|
||||||
--target=${_triplet}
|
babeltrace-devel mpfr-devel
|
||||||
--with-babeltrace
|
$(vopt_if guile guile-devel) $(vopt_if python 'gettext-devel python3-devel')"
|
||||||
--with-expat
|
depends="gdb-common"
|
||||||
--with-mpfr
|
short_desc="GNU Debugger for ARM"
|
||||||
--with-system-readline
|
|
||||||
--with-system-zlib
|
|
||||||
--without-isl
|
|
||||||
$(vopt_with guile)
|
|
||||||
$(vopt_with python)
|
|
||||||
"
|
|
||||||
hostmakedepends="autoconf automake bison flex pkg-config texinfo"
|
|
||||||
makedepends="babeltrace-devel expat-devel mpfr-devel ncurses-devel
|
|
||||||
readline-devel zlib-devel $(vopt_if guile guile-devel)
|
|
||||||
$(vopt_if python 'python3-devel gettext-devel')"
|
|
||||||
short_desc="GNU Debugger"
|
|
||||||
maintainer="Ivan Sokolov <ivan-p-sokolov@ya.ru>"
|
maintainer="Ivan Sokolov <ivan-p-sokolov@ya.ru>"
|
||||||
license="GPL-3.0-or-later"
|
license="GPL-3.0-or-later"
|
||||||
homepage="https://www.gnu.org/software/${_pkgname}"
|
homepage="https://www.gnu.org/software/gdb"
|
||||||
distfiles="${GNU_SITE}/${_pkgname}/${_pkgname}-${version}.tar.xz"
|
distfiles="${GNU_SITE}/gdb/gdb-${version}.tar.xz"
|
||||||
checksum=802f7ee309dcc547d65a68d61ebd6526762d26c3051f52caebe2189ac1ffd72e
|
checksum=cccfcc407b20d343fb320d4a9a2110776dd3165118ffd41f4b1b162340333f94
|
||||||
python_version=2 #unverified
|
make_check=no # See gdb/template.
|
||||||
build_options="guile python"
|
patch_args="-Np1"
|
||||||
# don't enable guile and python interfaces until they are moved into
|
|
||||||
# platform independent packages
|
|
||||||
build_options_default=" "
|
|
||||||
nocross=yes
|
|
||||||
|
|
||||||
CFLAGS="-fcommon"
|
if [ "${CROSS_BUILD}" ]; then
|
||||||
|
# Make python3.x detection work in cross builds
|
||||||
|
CPPFLAGS="-I${XBPS_CROSS_BASE}/${py3_inc}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Package build options
|
||||||
|
build_options="guile python"
|
||||||
|
build_options_default="python"
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
# resolve conflicts with binutils and native gdb
|
# resolve conflicts with gdb-common
|
||||||
rm -fr ${DESTDIR}/usr/{share/{locale,gdb,info},include}
|
rm -r ${DESTDIR}/usr/{share/{gdb,info},include}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue