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");
* 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