[meta-networking][PATCH 102/109] tcpreplay: upgrade 4.5.5 -> 4.6.0

Khem Raj <[email protected]>
Newsgroups org.openembedded.lists.openembedded-devel
Message-ID <[email protected]>
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 <[email protected]>
---
 .../{tcpreplay_4.5.5.bb => tcpreplay_4.6.0.bb}         | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
 rename meta-networking/recipes-support/tcpreplay/{tcpreplay_4.5.5.bb => tcpreplay_4.6.0.bb} (54%)

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<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
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.