]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Explicitly use the versions present in `Cargo.lock` when building 15614/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 2 Jun 2025 10:36:23 +0000 (12:36 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 2 Jun 2025 10:38:10 +0000 (12:38 +0200)
The documentation states that only `cargo update` and `cargo install`
should update the dependencies present in the `Cargo.lock` file, but
it still seems safer to explictly ask `cargo build` to not update them.

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
pdns/dnsdistdist/dnsdist-rust-lib/rust/Makefile.am
pdns/dnsdistdist/dnsdist-rust-lib/rust/build_dnsdist_rust_library

index c30191a2c569e3902e407f946d95e2cc6dccce40..163d29e3d45ecbf6d10aeab723785d296e472345 100644 (file)
@@ -10,7 +10,7 @@ if HAVE_YAML_CONFIGURATION
 all install: libdnsdist_rust.a
 
 libdnsdist_rust.a: src/lib.rs src/helpers.rs Cargo.toml Cargo.lock
-       SYSCONFDIR=$(sysconfdir) $(CARGO) build --release $(RUST_TARGET) --target-dir=$(builddir)/target --manifest-path ${srcdir}/Cargo.toml
+       SYSCONFDIR=$(sysconfdir) $(CARGO) build --release $(RUST_TARGET) --target-dir=$(builddir)/target --manifest-path ${srcdir}/Cargo.toml --locked
        cp target/release/libdnsdist_rust.a libdnsdist_rust.a
        cp target/cxxbridge/dnsdist-rust/src/lib.rs.h lib.rs.h
        cp target/cxxbridge/rust/cxx.h cxx.h
index c1b2eda03bfd982ea03fecda61a8e659cc2e8ad0..6b6f4d1ffec1a60d7aec08dc64ec85e77b791c32 100644 (file)
@@ -9,7 +9,7 @@
 mytarget=${CARGO_TARGET_DIR-target}
 #echo "mytarget=${mytarget}"
 
-$CARGO build --release $RUST_TARGET --target-dir=$builddir/target --manifest-path $srcdir/Cargo.toml
+$CARGO build --release $RUST_TARGET --target-dir=$builddir/target --manifest-path $srcdir/Cargo.toml --locked
 
 cp -p target/$RUSTC_TARGET_ARCH/release/libdnsdist_rust.a $builddir/dnsdist-rust-lib/rust/libdnsdist_rust.a