]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
lua: update to newer lua crate 12049/head
authorJason Ish <jason.ish@oisf.net>
Thu, 24 Oct 2024 16:35:56 +0000 (10:35 -0600)
committerVictor Julien <victor@inliniac.net>
Mon, 28 Oct 2024 16:46:40 +0000 (17:46 +0100)
This crate lets us instruct it where to copy the header files instead
of our Makefile trying to find the correct ones and copying them into
place.

Can prevent the simultaneous copy errors sometimes seen on a make
without a clean.

rust/Cargo.lock.in
rust/Cargo.toml.in
rust/Makefile.am

index df3228dc0f82d33d61444ea6b633205348324a74..c9bc24964d4164131c14f5432d10ea51e9664be8 100644 (file)
@@ -1009,9 +1009,9 @@ dependencies = [
 
 [[package]]
 name = "suricata-lua-sys"
-version = "0.1.0-alpha.1"
+version = "0.1.0-alpha.3"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "27aba92b2bc53955440218aed3fa6e6f4cf6cba443deb8fed7e216e6b1d96af2"
+checksum = "aed3f46aa1b92feb15880f722bbce121e769bda1770f0090121cd6c920d89450"
 dependencies = [
  "fs_extra",
 ]
index c69db937708ebff740e4cfd9321386a016f10aff..a1b53e3b58ca84c583c8813c351e0bd5ecb73466 100644 (file)
@@ -67,7 +67,7 @@ time = "~0.3.36"
 
 suricata-derive = { path = "./derive", version = "@PACKAGE_VERSION@" }
 
-suricata-lua-sys = { version = "0.1.0-alpha.1" }
+suricata-lua-sys = { version = "0.1.0-alpha.3" }
 
 [dev-dependencies]
 test-case = "~3.3.1"
index 30e4803b3a30e3be8cc241bbb3ef9f23c948fe3e..be80a806f1aacf49ca1137d003df46cd2dd91fc3 100644 (file)
@@ -35,16 +35,19 @@ RUST_TARGET = --target $(host_triplet)
 endif
 
 all-local: Cargo.toml
+       mkdir -p $(abs_top_builddir)/rust/gen
 if HAVE_CYGPATH
        cd $(abs_top_srcdir)/rust && \
                @rustup_home@ CARGO_HOME="$(CARGO_HOME)" \
                CARGO_TARGET_DIR="$(e_rustdir)/target" \
+               SURICATA_LUA_SYS_HEADER_DST="$(e_rustdir)/gen" \
                $(CARGO) build $(RELEASE) \
                        --features "$(RUST_FEATURES)" $(RUST_TARGET)
 else
        cd $(abs_top_srcdir)/rust && \
                @rustup_home@ CARGO_HOME="$(CARGO_HOME)" \
                CARGO_TARGET_DIR="$(abs_top_builddir)/rust/target" \
+               SURICATA_LUA_SYS_HEADER_DST="$(abs_top_builddir)/rust/gen" \
                $(CARGO) build $(RELEASE) $(NIGHTLY_ARGS) \
                        --features "$(RUST_FEATURES)" $(RUST_TARGET)
 endif
@@ -57,9 +60,6 @@ endif
                        $(RUST_SURICATA_LIBDIR)/${RUST_SURICATA_LIBNAME}; \
        fi
        $(MAKE) gen/rust-bindings.h
-       mkdir -p $(abs_top_builddir)/rust/gen
-       cp -a $(RUST_SURICATA_LIBDIR)/build/suricata-lua-sys-*/out/lua/*.h \
-               $(abs_top_builddir)/rust/gen/
 
 install-library:
        $(MKDIR_P) "$(DESTDIR)$(libdir)"