]> git.proxmox.com Git - dh-cargo.git/commitdiff
Update previous command to make builds reproducible too
authorGianfranco Costamagna <costamagnagianfranco@yahoo.it>
Tue, 16 Jul 2019 09:08:09 +0000 (11:08 +0200)
committerGianfranco Costamagna <costamagnagianfranco@yahoo.it>
Tue, 16 Jul 2019 09:08:09 +0000 (11:08 +0200)
cargo.pm
debian/changelog

index aeba981c5bac874e5c2a6d304b945c185151ba2a..882c5cc7750050fd4d7a1bc531191da1a599a2fe 100644 (file)
--- a/cargo.pm
+++ b/cargo.pm
@@ -175,7 +175,7 @@ sub install {
 
 sub clean {
     my $this=shift;
-    doit("touch", "--no-create", ".cargo_vcs_info.json");
+    doit("touch", "--no-create", "-d@" . $ENV{SOURCE_DATE_EPOCH}, ".cargo_vcs_info.json");
     doit("/usr/share/cargo/bin/cargo", "clean", @_);
     doit("rm", "-rf", $this->get_sourcepath(".cargo-checksum.json"));
     doit("rm", "-rf", "debian/cargo_registry");
index 2c4362dffea1fc1318b4d53cf138332120b22788..cce3fa689c85fccc4a3ea8b08366bdbfae60d794 100644 (file)
@@ -2,6 +2,10 @@ dh-cargo (19) unstable; urgency=medium
 
   * Team upload
 
+  [ Gianfranco Costamagna ]
+  * Apply fix from Ximin Luo to use SOURCE_DATE_EPOCH for the touch command, to
+    avoid breaking reproducible builds
+
   [ Dimitri John Ledkov ]
   * Touch .cargo_vcs_info.json to update timestamp, as otherwise the file
     has unix creation time of 0 which is rejected by the archive in the