2017-01-15 19:40:49 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://strace.io/
|
2018-07-11 10:35:45 +02:00
|
|
|
TERMUX_PKG_DESCRIPTION="Debugging utility to monitor system calls and signals received"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="BSD"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2021-09-02 14:45:46 +02:00
|
|
|
TERMUX_PKG_VERSION=5.14
|
2018-10-14 20:30:16 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/strace/strace/releases/download/v$TERMUX_PKG_VERSION/strace-$TERMUX_PKG_VERSION.tar.xz
|
2021-09-02 14:45:46 +02:00
|
|
|
TERMUX_PKG_SHA256=901bee6db5e17debad4530dd9ffb4dc9a96c4a656edbe1c3141b7cb307b11e73
|
2020-06-21 20:07:03 +02:00
|
|
|
TERMUX_PKG_DEPENDS="libdw"
|
|
|
|
|
2017-03-05 02:15:28 +01:00
|
|
|
# Without st_cv_m32_mpers=no the build fails if gawk is installed.
|
2018-05-19 02:57:29 +02:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
|
|
st_cv_m32_mpers=no
|
|
|
|
--enable-mpers=no
|
2020-06-21 20:07:03 +02:00
|
|
|
--with-libdw
|
2018-05-19 02:57:29 +02:00
|
|
|
"
|
2019-09-26 02:02:46 +02:00
|
|
|
|
2020-06-21 20:07:03 +02:00
|
|
|
# This is a perl script.
|
|
|
|
TERMUX_PKG_RM_AFTER_INSTALL="bin/strace-graph"
|
|
|
|
|
2019-09-26 02:02:46 +02:00
|
|
|
termux_step_pre_configure() {
|
2021-02-24 16:11:02 +01:00
|
|
|
autoreconf # for configure.ac in 5.11fix.patch
|
2021-08-05 03:25:37 +02:00
|
|
|
CPPFLAGS+=" -Dfputs_unlocked=fputs -DPR_SET_VMA=0x53564d41"
|
|
|
|
# remove the -DPR_SET_VMA for >5.13
|
2019-09-26 02:02:46 +02:00
|
|
|
}
|