blob: b000afb30beee3e2b93ddd04520890b2eaca4ba8 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001SUMMARY = "System call tracing tool"
2HOMEPAGE = "http://strace.io"
3SECTION = "console/utils"
4LICENSE = "LGPL-2.1+ & GPL-2+"
Brad Bishop08902b02019-08-20 09:16:51 -04005LIC_FILES_CHKSUM = "file://COPYING;md5=0169a04810830e94f4b1cfb823c9f592"
Brad Bishop19323692019-04-05 15:28:33 -04006
7SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \
8 file://disable-git-version-gen.patch \
9 file://more-robust-test-for-m32-mx32-compile-support.patch \
10 file://update-gawk-paths.patch \
11 file://Makefile-ptest.patch \
12 file://run-ptest \
Brad Bishop19323692019-04-05 15:28:33 -040013 file://mips-SIGEMT.patch \
14 file://0001-caps-abbrev.awk-fix-gawk-s-path.patch \
15 file://0001-tests-sigaction-Check-for-mips-and-alpha-before-usin.patch \
Brad Bishop15ae2502019-06-18 21:44:24 -040016 file://ptest-spacesave.patch \
Brad Bishop1d80a2e2019-11-15 16:35:03 -050017 file://uintptr_t.patch \
18 file://sys_headers.patch \
Brad Bishop19323692019-04-05 15:28:33 -040019 "
Brad Bishop00e122a2019-10-05 11:10:57 -040020SRC_URI[md5sum] = "84f5e72de813c9b1bb6057ee8ab428d8"
21SRC_URI[sha256sum] = "6c131198749656401fe3efd6b4b16a07ea867e8f530867ceae8930bbc937a047"
Brad Bishop19323692019-04-05 15:28:33 -040022
Brad Bishop96ff1982019-08-19 13:50:42 -040023inherit autotools ptest
Brad Bishop19323692019-04-05 15:28:33 -040024
25PACKAGECONFIG_class-target ??= "\
26 ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)} \
27"
28
Brad Bishop96ff1982019-08-19 13:50:42 -040029PACKAGECONFIG[bluez] = "ac_cv_header_bluetooth_bluetooth_h=yes,ac_cv_header_bluetooth_bluetooth_h=no,bluez5"
Brad Bishop19323692019-04-05 15:28:33 -040030PACKAGECONFIG[libunwind] = "--with-libunwind,--without-libunwind,libunwind"
31
32EXTRA_OECONF += "--enable-mpers=no"
33
34CFLAGS_append_libc-musl = " -Dsigcontext_struct=sigcontext"
35
36TESTDIR = "tests"
37PTEST_BUILD_HOST_PATTERN = "^(DEB_CHANGELOGTIME|RPM_CHANGELOGTIME|WARN_CFLAGS_FOR_BUILD|LDFLAGS_FOR_BUILD)"
38
39do_install_append() {
40 # We don't ship strace-graph here because it needs perl
41 rm ${D}${bindir}/strace-graph
42}
43
44do_compile_ptest() {
45 oe_runmake -C ${TESTDIR} buildtest-TESTS
46}
47
48do_install_ptest() {
49 oe_runmake -C ${TESTDIR} install-ptest BUILDDIR=${B} DESTDIR=${D}${PTEST_PATH} TESTDIR=${TESTDIR}
50 install -m 755 ${S}/test-driver ${D}${PTEST_PATH}
51 install -m 644 ${B}/config.h ${D}${PTEST_PATH}
52 sed -i -e '/^src/s/strace.*[1-9]/ptest/' ${D}/${PTEST_PATH}/${TESTDIR}/Makefile
53}
54
55RDEPENDS_${PN}-ptest += "make coreutils grep gawk sed"
56
57BBCLASSEXTEND = "native"
58TOOLCHAIN = "gcc"