suricata: fix build error introduced by upstream commit

7a2b9acef2 cargo: pass PACKAGECONFIG_CONFARGS to cargo build

 error: unexpected argument '--with-libcap_ng-includes' found
 |
 | Usage: cargo build --verbose... --target [<TRIPLE>] --release --manifest-path <PATH> --offline

Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
Armin Kuster
2025-04-01 12:56:37 -04:00
parent d31c2619da
commit e610e7c72e
+12
View File
@@ -73,6 +73,18 @@ do_configure:prepend () {
CFLAGS += "-Wno-error=incompatible-pointer-types"
# Commit 7a2b9acef2 cargo: pass PACKAGECONFIG_CONFARGS to cargo build
# breaks building this recipe. Providing a copy of the original function
# Armin 2025/04/01
#
oe_cargo_build () {
export RUSTFLAGS="${RUSTFLAGS}"
bbnote "Using rust targets from ${RUST_TARGET_PATH}"
bbnote "cargo = $(which ${CARGO})"
bbnote "${CARGO} build ${CARGO_BUILD_FLAGS}$@"
"${CARGO}" build ${CARGO_BUILD_FLAGS}"$@"
}
do_compile () {
# we do this to bypass the make provided by this pkg
# patches Makefile to skip the subdir