[Pkg-rust-maintainers] Bug#1092917: rust-xh: please make the build reproducible
Blair Noctis
ncts at debian.org
Mon Jan 20 14:32:59 GMT 2025
Control: forwarded -1 https://github.com/ducaale/xh/pull/402
On Mon, 13 Jan 2025 12:18:24 +0000 "Chris Lamb" <lamby at debian.org> wrote:
> Source: rust-xh
> Version: 0.23.1-2
> Severity: wishlist
> Tags: patch
> User: reproducible-builds at lists.alioth.debian.org
> Usertags: timestamps
> X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org
>
> Hi,
>
> Whilst working on the Reproducible Builds effort [0], we noticed that
> rust-xh could not be built reproducibly.
>
> This is because the manual page embeds the current build date.
>
> The patch attached mangles this date after the file has been generated
> to use SOURCE_DATE_EPOCH. There is an alternative solution that parses
> SOURCE_DATE_EPOCH within Rust itself, but I think that might require
> an additional Rust crate [1].
>
> [0] https://reproducible-builds.org/
> [1] https://reproducible-builds.org/docs/source-date-epoch/#rust
Thanks Chris, I've opened a pull request upstream. A few additional lines, no need for an additional crate ;)
Though the unfinished http stack uploads seem to have caused a bit trouble, so the fix will have to wait a bit.
--
Sdrager,
Blair Noctis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-rust-maintainers/attachments/20250120/14435737/attachment.sig>
More information about the Pkg-rust-maintainers
mailing list