tcpreplay: upgrade 4.5.5 -> 4.6.0

Bump to the 4.6.0 release tarball. As of 4.6.0 upstream introduces
CMake as the recommended build system, but the release tarball still
ships the Autotools build files (configure/Makefile.am) and Autotools
remains fully supported for building from release tarballs (only
deprecated for eventual removal in a future release), so the existing
autotools-brokensep-based recipe continues to work unchanged.

0001-libopts.m4-set-POSIX_SHELL-to-bin-sh.patch kept unchanged, still
needed, applies cleanly.

Build-verified: tcpreplay builds and packages successfully (existing
buildpaths QA warnings for libtcpreplay.pc/defines.h are pre-existing
and expected, WARN not ERROR on this distro).

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
Khem Raj committed 2026-08-14 09:06:33 -07:00
1 parent c3683a2d3e
commit 073acc4f58
1 file changed
+9 -1
@@ -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<pver>\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
}