diff mbox series

[meta-security,wrynose,09/14] suricata: drop oe_cargo_build usage

Message ID 3a1f0ae15c1cd131fdded7bdf5c3c6cb4fbf11a5.1795883420.git.scott.murray@konsulko.com
State New
Headers show
Series Assorted updates 11/28 | expand

Commit Message

Scott Murray Nov. 28, 2026, 4:54 p.m. UTC
Accommodate removal of oe_cargo_build function in oe-core commit
a64ac03a61 by renaming our local override to cargo_do_compile to get
the same effect.  This allows building with the wrynose/rust mixin
layer.

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
---
 recipes-ids/suricata/suricata_8.0.6.bb | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/recipes-ids/suricata/suricata_8.0.6.bb b/recipes-ids/suricata/suricata_8.0.6.bb
index 2001cb4..29f259b 100644
--- a/recipes-ids/suricata/suricata_8.0.6.bb
+++ b/recipes-ids/suricata/suricata_8.0.6.bb
@@ -86,12 +86,17 @@  CFLAGS += "-Wno-error=incompatible-pointer-types \
 # breaks building this recipe. Providing a copy of the original function
 # Armin 2025/04/01
 #
-oe_cargo_build () {
+# 08/2026 note - oe_cargo_build function inlined into cargo_do_compile
+# upstream in openembedded-core commit a64ac03a61, handle by renaming
+# our forked function to cargo_do_compile to override it directly.
+# This still works since before a64ac03a61 cargo_do_compile did nothing
+# but call oe_cargo_build.
+cargo_do_compile () {
     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}"$@"
+    bbnote "${CARGO} build ${CARGO_BUILD_FLAGS} $@"
+    "${CARGO}" build ${CARGO_BUILD_FLAGS} "$@"
 }
 
 do_compile () {