Files
Khem Raj e61923ed72 sockperf: fix musl build (libexecinfo dependency, missing includes)
configure.ac's AC_SEARCH_LIBS([backtrace], [execinfo], ...) fails
with 'libexecinfo not found' on musl, which lacks glibc's
backtrace()/backtrace_symbols(); depend on the libexecinfo compat
library there.
Once configure succeeds, ticks.h's timeval2nsec() needs struct
timeval, which was only pulled in via <sys/time.h> under __FreeBSD__,
and vma-xlio-redirect.cpp calls sscanf()/sprintf() without including
<cstdio>; fix both for musl too.

AI-Generated: Uses Claude Code

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-09-29 15:35:17 -07:00

21 lines
856 B
BlitzBasic

SUMMARY = "Network benchmarking utility for measuring latency and throughput"
DESCRIPTION = "Tool for network performance measurement written in C++"
HOMEPAGE = "https://github.com/Mellanox/sockperf"
SECTION = "console/network"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://copying;md5=b4563b57c98bc23c8cecbc0b6d9546e9"
SRC_URI = "git://github.com/Mellanox/sockperf;branch=sockperf_v2;protocol=https \
file://0001-src-fix-missing-includes-for-musl-struct-timeval-ss.patch \
"
SRCREV = "3c65ad99cd385e18f8a2a655c19826e81a4d17e8"
UPSTREAM_CHECK_COMMITS = "1"
# musl lacks glibc's backtrace()/backtrace_symbols(); configure.ac uses
# AC_SEARCH_LIBS([backtrace], [execinfo], ...) which errors out with
# "libexecinfo not found" unless the compat library is available.
DEPENDS:append:libc-musl = " libexecinfo"
inherit autotools