mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-29 11:38:52 +02:00
gdb: bump to 17.1
also add patch for master
This commit is contained in:
123
dev-util/gdb/gdb-17.1.recipe
Normal file
123
dev-util/gdb/gdb-17.1.recipe
Normal file
@@ -0,0 +1,123 @@
|
||||
SUMMARY="The GNU debugger"
|
||||
DESCRIPTION="GDB is the GNU debugger. It allows you to see what is going on \
|
||||
'inside' another program while it executes -- or what another program was \
|
||||
doing at the moment it crashed.
|
||||
|
||||
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). \
|
||||
GDB can run on most popular UNIX and Microsoft Windows variants."
|
||||
HOMEPAGE="https://sourceware.org/gdb/"
|
||||
COPYRIGHT="2024-2025 Free Software Foundation, Inc."
|
||||
LICENSE="GNU GPL v2
|
||||
GNU GPL v3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://ftp.gnu.org/gnu/gdb/gdb-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="14996f5f74c9f68f5a543fdc45bca7800207f91f92aeea6c2e791822c7c6d876"
|
||||
PATCHES="gdb-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="x86_64 ?x86 !x86_gcc2"
|
||||
|
||||
binutilsVersion="2.45"
|
||||
|
||||
PROVIDES="
|
||||
gdb = $portVersion
|
||||
cmd:gdb = $portVersion
|
||||
cmd:gdb_add_index = $portVersion
|
||||
cmd:gdbserver = $portVersion
|
||||
cmd:gstack = $portVersion
|
||||
devel:libbfd = $binutilsVersion
|
||||
devel:libctf = $binutilsVersion
|
||||
devel:libctf_nobfd = $binutilsVersion
|
||||
devel:libopcodes = $binutilsVersion
|
||||
devel:libsframe = $binutilsVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku
|
||||
lib:libexpat
|
||||
lib:libgmp
|
||||
lib:libiconv
|
||||
lib:libisl
|
||||
lib:libmpfr
|
||||
lib:libncurses
|
||||
lib:libpython3.10
|
||||
lib:libreadline
|
||||
lib:libxxhash
|
||||
lib:libz
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
devel:libexpat
|
||||
devel:libgmp
|
||||
devel:libiconv
|
||||
devel:libisl
|
||||
devel:libmpfr
|
||||
devel:libncurses
|
||||
devel:libpython3.10
|
||||
devel:libreadline
|
||||
devel:libxxhash
|
||||
devel:libz
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
haiku_devel
|
||||
cmd:awk
|
||||
cmd:bison
|
||||
cmd:cmp
|
||||
cmd:flex
|
||||
cmd:gcc
|
||||
cmd:ld
|
||||
cmd:m4
|
||||
cmd:make
|
||||
cmd:makeinfo
|
||||
cmd:python3
|
||||
cmd:yacc
|
||||
"
|
||||
|
||||
TEST_REQUIRES="
|
||||
cmd:runtest
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
export CPPFLAGS="-DB_USE_POSITIVE_POSIX_ERRORS"
|
||||
export HAIKU_USE_VENDOR_DIRECTORIES=1
|
||||
|
||||
runConfigure --omit-dirs "docDir dataRootDir" ./configure \
|
||||
--disable-nls --enable-gdb --enable-gdbserver \
|
||||
--with-system-zlib --with-system-readline \
|
||||
--with-python=python3
|
||||
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
# symlink so that GDB could look for library .debuginfo files
|
||||
ln -s $debugInfoDir $libDir/.debug
|
||||
|
||||
prepareInstalledDevelLibs \
|
||||
libbfd \
|
||||
libctf \
|
||||
libctf-nobfd \
|
||||
libopcodes \
|
||||
libsframe
|
||||
|
||||
rm $developLibDir/*.la
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
Reference in New Issue
Block a user