From 4778c6f362702384594a8a05e419bf0b7eace1f6 Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Thu, 13 Nov 2025 21:36:08 -0600 Subject: [PATCH] Add a cargo-checksum.json, remove its fake See "https://wiki.debian.org/Teams/RustPackaging/Policy" In section "Library package structure", the policy manual explains that this file is meant to exist in the Debian package (i.e.: it's not generated during the build) and should contain the SHA256 checksum of the upstream crate. The crate's internal arrangement can change depending on which version of Cargo was used to create it. This checksum is from Rust 1.93, the current stable at time of writing. Debian 13's Rust 1.85 produces a different file with a different sum. I'm not sure what to do about that right now. --- debian/cargo-checksum.json | 1 + debian/rules | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) create mode 100644 debian/cargo-checksum.json diff --git a/debian/cargo-checksum.json b/debian/cargo-checksum.json new file mode 100644 index 0000000..e7b5028 --- /dev/null +++ b/debian/cargo-checksum.json @@ -0,0 +1 @@ +{"package":"62e0ece55a4e0150ab3a3f7f5299e6eb113134975100cddde5a68dfcbb5e1a5c","files":{}} diff --git a/debian/rules b/debian/rules index 591d09d..b66daf9 100755 --- a/debian/rules +++ b/debian/rules @@ -18,9 +18,7 @@ execute_after_dh_auto_clean: $(CARGO) clean rm -rf $(CARGO_HOME) rm -rf $(CARGO_REGISTRY) - rm -f debian/cargo-checksum.json execute_before_dh_auto_configure: $(CARGO) prepare-debian $(CARGO_REGISTRY) --link-from-system rm -f Cargo.lock - touch debian/cargo-checksum.json