gdb: Enable Guile support

This commit is contained in:
Tee KOBAYASHI 2023-04-18 12:36:42 +09:00 committed by xtkoba
parent 8b92fb6e8f
commit 351966bb8f
2 changed files with 10 additions and 1 deletions

View File

@ -5,9 +5,10 @@ TERMUX_PKG_MAINTAINER="@termux"
# This package depends on libpython${TERMUX_PYTHON_VERSION}.so.
# Please revbump and rebuild when bumping TERMUX_PYTHON_VERSION.
TERMUX_PKG_VERSION=13.1
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/gdb/gdb-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=115ad5c18d69a6be2ab15882d365dda2a2211c14f480b3502c6eba576e2e95a0
TERMUX_PKG_DEPENDS="libc++, libexpat, libiconv, liblzma, libmpfr, libthread-db, ncurses, python, readline, zlib, zstd"
TERMUX_PKG_DEPENDS="guile, libc++, libexpat, libgmp, libiconv, liblzma, libmpfr, libthread-db, ncurses, python, readline, zlib, zstd"
TERMUX_PKG_BREAKS="gdb-dev"
TERMUX_PKG_REPLACES="gdb-dev"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
@ -15,6 +16,7 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--disable-werror
--with-system-readline
--with-curses
--with-guile
--with-python=$TERMUX_PREFIX/bin/python
ac_cv_func_getpwent=no
ac_cv_func_getpwnam=no
@ -23,6 +25,10 @@ TERMUX_PKG_RM_AFTER_INSTALL="share/gdb/syscalls share/gdb/system-gdbinit"
TERMUX_PKG_MAKE_INSTALL_TARGET="-C gdb install"
termux_step_pre_configure() {
if [ "$TERMUX_ON_DEVICE_BUILD" = "false" ]; then
export ac_cv_guild_program_name=/usr/bin/guild-3.0
fi
# Fix "undefined reference to 'rpl_gettimeofday'" when building:
export gl_cv_func_gettimeofday_clobber=no
export gl_cv_func_gettimeofday_posix_signature=yes

View File

@ -247,6 +247,9 @@ PACKAGES+=" triehash"
# Needed by aspell dictionaries.
PACKAGES+=" aspell"
# Needed by package gdb.
PACKAGES+=" guile-3.0-dev"
# Needed by package kphp.
PACKAGES+=" python3-jsonschema"