Subject: bug#50015: Rust packages are not reproducible

From: Maxim Cournoyer <[email-masked]>
Date: Tue, 03 Oct 2023 23:30:15 -0400

Hello,

Ludovic Courtès <[email-masked]> writes:

> Hello!
>
> Efraim Flashner <[email-masked]> skribis:
>
>> I tried patching this a couple of ways, but it looks like the best
>> option is going to be a 'patch-and-repack phase after 'install. the
>> .crate file is really a gzip tarball, and I suspect that each time we
>> run 'cargo <something>' the timestamp gets updated.
>
> So that ‘Cargo.toml’ file is not something taken from the build tree?
> In that case we could reset the timestamp before the tarball is
> created.  But otherwise yeah, patch’n’repack.

A better solution would be to have cargo honor SOURCE_DATE_EPOCH,
perhaps?  They'd probably accept such an improvement upstream.

-- 
Thanks,
Maxim