Debian Bug report logs - #992126
rust-coreutils: please make the build reproducible

version graph

Package: src:rust-coreutils; Maintainer for src:rust-coreutils is Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>;

Reported by: "Chris Lamb" <lamby@debian.org>

Date: Thu, 12 Aug 2021 10:57:01 UTC

Severity: wishlist

Tags: patch

Found in version rust-coreutils/0.0.6-1~exp1

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>:
Bug#992126; Package src:rust-coreutils. (Thu, 12 Aug 2021 10:57:03 GMT) (full text, mbox, link).


Acknowledgement sent to "Chris Lamb" <lamby@debian.org>:
New Bug report received and forwarded. Copy sent to reproducible-bugs@lists.alioth.debian.org, Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>. (Thu, 12 Aug 2021 10:57:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: "Chris Lamb" <lamby@debian.org>
To: submit@bugs.debian.org
Subject: rust-coreutils: please make the build reproducible
Date: Thu, 12 Aug 2021 11:52:38 +0100
[Message part 1 (text/plain, inline)]
Source: rust-coreutils
Version: 0.0.6-1~exp1
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0] we noticed that
rust-coreutils could not be built reproducibly.

This is because the "timeout" private binary includes the full
contents of argv[0] in its --help output (ie. including the absolute
build path).

The call to help2man in debian/rules then includes the build path in
the automatically-generated rust-timeout(1) manual page, making the
build not reproducible.

A patch is attached that uses the basename in the --help output
instead. This behaviour actually matches all of the other binaries in
that directory; curiously, only the rust-timeout binary is affected.

 [0] https://reproducible-builds.org/


Regards,

--
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby@debian.org / chris-lamb.co.uk
       `-
[rust-coreutils.diff.txt (text/plain, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>:
Bug#992126; Package src:rust-coreutils. (Thu, 12 Aug 2021 11:24:03 GMT) (full text, mbox, link).


Acknowledgement sent to Sylvestre Ledru <sylvestre@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>. (Thu, 12 Aug 2021 11:24:03 GMT) (full text, mbox, link).


Message #10 received at 992126@bugs.debian.org (full text, mbox, reply):

From: Sylvestre Ledru <sylvestre@debian.org>
To: Chris Lamb <lamby@debian.org>, 992126@bugs.debian.org
Subject: Re: [Pkg-rust-maintainers] Bug#992126: rust-coreutils: please make the build reproducible
Date: Thu, 12 Aug 2021 13:13:30 +0200
[Message part 1 (text/plain, inline)]
Hello

Many thanks! I think it is fixed upstream already (moved from getopts to
clap)

Cheers


Le 12/08/2021 à 12:52, Chris Lamb a écrit :
> Source: rust-coreutils
> Version: 0.0.6-1~exp1
> Severity: wishlist
> Tags: patch
> User: reproducible-builds@lists.alioth.debian.org
> Usertags: buildpath
> X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org
>
> Hi,
>
> Whilst working on the Reproducible Builds effort [0] we noticed that
> rust-coreutils could not be built reproducibly.
>
> This is because the "timeout" private binary includes the full
> contents of argv[0] in its --help output (ie. including the absolute
> build path).
>
> The call to help2man in debian/rules then includes the build path in
> the automatically-generated rust-timeout(1) manual page, making the
> build not reproducible.
>
> A patch is attached that uses the basename in the --help output
> instead. This behaviour actually matches all of the other binaries in
> that directory; curiously, only the rust-timeout binary is affected.
>
>  [0] https://reproducible-builds.org/
>
>
> Regards,
>
> --
>       ,''`.
>      : :'  :     Chris Lamb
>      `. `'`      lamby@debian.org / chris-lamb.co.uk
>        `-
>
> _______________________________________________
> Pkg-rust-maintainers mailing list
> Pkg-rust-maintainers@alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-rust-maintainers
[Message part 2 (text/html, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed May 17 12:04:21 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.