Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 1 | SUMMARY = "System call tracing tool" |
| 2 | HOMEPAGE = "http://strace.sourceforge.net" |
| 3 | SECTION = "console/utils" |
| 4 | LICENSE = "BSD" |
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=124500c21e856f0912df29295ba104c7" |
| 6 | |
| 7 | SRC_URI = "${SOURCEFORGE_MIRROR}/strace/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://use-asm-sgidefs.h.patch \ |
| 12 | file://Makefile-ptest.patch \ |
| 13 | file://run-ptest \ |
| 14 | file://0001-Fix-build-when-using-non-glibc-libc-implementation-o.patch \ |
| 15 | file://mips-SIGEMT.patch \ |
| 16 | " |
| 17 | |
| 18 | SRC_URI[md5sum] = "4b78c7febdd24c79d5147824d1a080a3" |
| 19 | SRC_URI[sha256sum] = "d48f732576c91ece36a5843d63f9be054c40ef59f1e4773986042636861625d7" |
| 20 | |
| 21 | inherit autotools ptest bluetooth |
| 22 | |
| 23 | RDEPENDS_${PN}-ptest += "make coreutils grep gawk sed" |
| 24 | |
| 25 | PACKAGECONFIG_class-target ??= "\ |
| 26 | ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)} \ |
| 27 | " |
| 28 | |
| 29 | PACKAGECONFIG[bluez] = "ac_cv_header_bluetooth_bluetooth_h=yes,ac_cv_header_bluetooth_bluetooth_h=no,${BLUEZ}" |
| 30 | PACKAGECONFIG[libunwind] = "--with-libunwind,--without-libunwind,libunwind" |
| 31 | |
| 32 | TESTDIR = "tests" |
| 33 | |
| 34 | do_install_append() { |
| 35 | # We don't ship strace-graph here because it needs perl |
| 36 | rm ${D}${bindir}/strace-graph |
| 37 | } |
| 38 | |
| 39 | do_compile_ptest() { |
| 40 | oe_runmake -C ${TESTDIR} buildtest-TESTS |
| 41 | } |
| 42 | |
| 43 | do_install_ptest() { |
| 44 | oe_runmake -C ${TESTDIR} install-ptest BUILDDIR=${B} DESTDIR=${D}${PTEST_PATH} TESTDIR=${TESTDIR} |
| 45 | sed -i -e '/^src/s/strace.*[1-9]/ptest/' ${D}/${PTEST_PATH}/${TESTDIR}/Makefile |
| 46 | } |
| 47 | |
| 48 | BBCLASSEXTEND = "native" |
| 49 | TOOLCHAIN = "gcc" |