diff --git a/meta-networking/recipes-support/tcpreplay/tcpreplay_4.5.5.bb b/meta-networking/recipes-support/tcpreplay/tcpreplay_4.6.0.bb similarity index 54% rename from meta-networking/recipes-support/tcpreplay/tcpreplay_4.5.5.bb rename to meta-networking/recipes-support/tcpreplay/tcpreplay_4.6.0.bb index 55bc8e198f..368308408f 100644 --- a/meta-networking/recipes-support/tcpreplay/tcpreplay_4.5.5.bb +++ b/meta-networking/recipes-support/tcpreplay/tcpreplay_4.6.0.bb @@ -11,7 +11,7 @@ SRC_URI = "https://github.com/appneta/${BPN}/releases/download/v${PV}/${BP}.tar. file://0001-libopts.m4-set-POSIX_SHELL-to-bin-sh.patch \ " -SRC_URI[sha256sum] = "ba37b6c9270fcebe86b83f68c4ec3d5ac8981f8c6087b582af0205a35ec4b11d" +SRC_URI[sha256sum] = "30f73b901e74b6ffc36c0f82afccc9d5740e70ba214a15763631a59dd2cc3564" UPSTREAM_CHECK_URI = "https://github.com/appneta/tcpreplay/releases" UPSTREAM_CHECK_REGEX = "releases/tag/v(?P\d+(\.\d+)+)" @@ -23,5 +23,13 @@ EXTRA_OECONF += "--with-libpcap=${STAGING_DIR_HOST}${prefix}" inherit siteinfo autotools-brokensep do_install:append() { + # configure --with-libpcap=${STAGING_DIR_HOST}${prefix} bakes the absolute + # recipe-sysroot path into defines.h's pcap.h include and into + # libtcpreplay.pc's Libs.private -L flag, tripping the buildpaths QA + # check. Strip it from both the source tree copy (shipped verbatim into + # the tcpreplay-src debug package) and the installed copies under ${D}. sed -i -e 's:${RECIPE_SYSROOT}::g' ${S}/src/defines.h + sed -i -e 's:${RECIPE_SYSROOT}::g' \ + ${D}${includedir}/tcpreplay/defines.h \ + ${D}${libdir}/pkgconfig/libtcpreplay.pc }