From 52a67b5fba1dab17a733e33d3d9e4f7fae8dcdd1 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Thu, 10 Dec 2020 18:38:58 +0100 Subject: [PATCH 1/2] gdb: Update version from 8.3.1 to 10.1 --- gdb.be0 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb.be0 b/gdb.be0 index ad7bb3726..f3bc72ec7 100755 --- a/gdb.be0 +++ b/gdb.be0 @@ -1,6 +1,6 @@ #!/usr/bin/env beesh -# BEE_VERSION gdb-8.3.1-1 +# BEE_VERSION gdb-10.1-0 SRCURL[0]="http://ftp.gnu.org/gnu/gdb/gdb-${PKGVERSION}.tar.xz" From 08cc4cbdbc9e0faba48d6c1016716ef9689419ee Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Thu, 10 Dec 2020 18:39:44 +0100 Subject: [PATCH 2/2] gdb: Update embedded Python to Python 3 Use Python 3.7 from /usr/local/system/python3. We can no longer use gdbs --with-pythons, because it is totaly broken. Instead of python-config.py from the package specified with --with-python, a copy of an old python-config.py script from Python-2.7 is embedded and used with the interpreter found via --with-python. In our case, the required "-L" option is not returned. However, if we add the needed CPPFLAGS and LDFLAGS, gdb/configure (run during the build phase of the top level directory!) will notice that Python just works. --- gdb.be0 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gdb.be0 b/gdb.be0 index f3bc72ec7..5c943c171 100755 --- a/gdb.be0 +++ b/gdb.be0 @@ -20,9 +20,10 @@ SRCURL[0]="http://ftp.gnu.org/gnu/gdb/gdb-${PKGVERSION}.tar.xz" #} mee_configure() { - bee_configure --with-python=/usr/local/system/python2 \ - CFLAGS="-L/usr/local/system/python2/lib -Wl,-rpath=/usr/local/system/python2/lib" \ - CXXFLAGS="-L/usr/local/system/python2/lib -Wl,-rpath=/usr/local/system/python2/lib" + + bee_configure \ + CPPFLAGS="-I/usr/local/system/python3/include/python3.7m" \ + LDFLAGS="-L/usr/local/system/python3/lib -Wl,-rpath=/usr/local/system/python3/lib -lpython3.7m" } #mee_build() {