Debian Bug report logs -
#833340
mini-buildd: please make man page mini-buildd.8 reproducible
Reported by: Boyuan Yang <073plan@gmail.com>
Date: Wed, 3 Aug 2016 09:24:01 UTC
Severity: wishlist
Tags: patch
Found in version mini-buildd/1.0.16
Fixed in version mini-buildd/1.0.17
Done: Stephan Sürken <absurd@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, 073plan@gmail.com, reproducible-builds@lists.alioth.debian.org, Stephan Sürken <absurd@debian.org>:
Bug#833340; Package src:mini-buildd.
(Wed, 03 Aug 2016 09:24:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Boyuan Yang <073plan@gmail.com>:
New Bug report received and forwarded. Copy sent to 073plan@gmail.com, reproducible-builds@lists.alioth.debian.org, Stephan Sürken <absurd@debian.org>.
(Wed, 03 Aug 2016 09:24:05 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Source: mini-buildd
Version: 1.0.16
Severity: wishlist
Tags: patch
Hi,
The current unreproducible status is due to different env HOME value generated
by help2man.
An example patch is provided to fix make the package reproducible.
Thanks.
[mini-buildd.diff.txt (text/x-diff, attachment)]
Added tag(s) pending.
Request was from Stephan Sürken <absurd@olurdix.de>
to control@bugs.debian.org.
(Wed, 03 Aug 2016 10:21:10 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Stephan Sürken <absurd@debian.org>:
Bug#833340; Package src:mini-buildd.
(Wed, 03 Aug 2016 12:15:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Chris Lamb <lamby@debian.org>:
Extra info received and forwarded to list. Copy sent to Stephan Sürken <absurd@debian.org>.
(Wed, 03 Aug 2016 12:15:03 GMT) (full text, mbox, link).
Message #12 received at 833340@bugs.debian.org (full text, mbox, reply):
user reproducible-builds@lists.alioth.debian.org
usertags 833340 timestamps
thanks
Hi,
> mini-buildd: please make the build reproducible
- default=os.getenv("HOME"),
+ default="$HOME",
Unless I'm missing something, this won't work as $VARS are not expanded
in Python..
(What you probably want to do is set the default to ~/.mini-buildd and
patch the callsites to use os.path.expanduser at "real" runtime.)
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby@debian.org / chris-lamb.co.uk
`-
Message sent on
to Boyuan Yang <073plan@gmail.com>:
Bug#833340.
(Wed, 03 Aug 2016 12:15:07 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, reproducible-builds@lists.alioth.debian.org, Stephan Sürken <absurd@debian.org>:
Bug#833340; Package src:mini-buildd.
(Wed, 03 Aug 2016 12:39:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Boyuan Yang <073plan@gmail.com>:
Extra info received and forwarded to list. Copy sent to reproducible-builds@lists.alioth.debian.org, Stephan Sürken <absurd@debian.org>.
(Wed, 03 Aug 2016 12:39:04 GMT) (full text, mbox, link).
Message #20 received at 833340@bugs.debian.org (full text, mbox, reply):
Control: user reproducible-builds@lists.alioth.debian.org
Control: usertags -1 environment
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org
2016-08-03 20:14 GMT+08:00 Chris Lamb <lamby@debian.org>:
> - default=os.getenv("HOME"),
> + default="$HOME",
>
> Unless I'm missing something, this won't work as $VARS are not expanded
> in Python..
>
> (What you probably want to do is set the default to ~/.mini-buildd and
> patch the callsites to use os.path.expanduser at "real" runtime.)
I intended to use "$HOME" string literally since I did not come up
with a better solution. :-(
The original author used os.getenv() in python argparse, so the output
of `mini-buildd --help' really depend on $HOME env var. Unfortunately
the man page is generated using help2man (or similar tool) [1] during
building process and reproducible build website will alter $HOME env
var to test reproducibility. So in my opinion there is no better
option except fixed text string. Mini-buildd script won't and
shouldn't detect if itself is running for help2man or for end-user.
[1] https://tests.reproducible-builds.org/debian/rb-pkg/unstable/armhf/diffoscope-results/mini-buildd.html
Thanks,
Boyuan
Message sent on
to Boyuan Yang <073plan@gmail.com>:
Bug#833340.
(Wed, 03 Aug 2016 12:39:10 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Stephan Sürken <absurd@debian.org>:
Bug#833340; Package src:mini-buildd.
(Wed, 03 Aug 2016 13:15:15 GMT) (full text, mbox, link).
Acknowledgement sent
to Chris Lamb <lamby@debian.org>:
Extra info received and forwarded to list. Copy sent to Stephan Sürken <absurd@debian.org>.
(Wed, 03 Aug 2016 13:15:15 GMT) (full text, mbox, link).
Message #28 received at 833340@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
> The original author used os.getenv() in python argparse, so the output
> of `mini-buildd --help' really depend on $HOME env var
I agree that upstream are using an environment variable called HOME and
note that it ends up in the manpage.
However, this does not imply that the string "$HOME" will be interpolated,
so your patch breaks mini-buildd.
> Unfortunately in my opinion there is no better option except fixed text
> string.
A fixed text string is indeed required, but "$HOME" is not that string :)
What's wrong with my expanduser suggestion?
Patch attached.
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby@debian.org / chris-lamb.co.uk
`-
[mini-buildd.diff.txt (text/plain, attachment)]
Message sent on
to Boyuan Yang <073plan@gmail.com>:
Bug#833340.
(Wed, 03 Aug 2016 13:15:20 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Stephan Sürken <absurd@debian.org>:
Bug#833340; Package src:mini-buildd.
(Wed, 03 Aug 2016 13:33:07 GMT) (full text, mbox, link).
Acknowledgement sent
to Boyuan Yang <073plan@gmail.com>:
Extra info received and forwarded to list. Copy sent to Stephan Sürken <absurd@debian.org>.
(Wed, 03 Aug 2016 13:33:07 GMT) (full text, mbox, link).
Message #36 received at 833340@bugs.debian.org (full text, mbox, reply):
2016-08-03 21:11 GMT+08:00 Chris Lamb <lamby@debian.org>:
>> The original author used os.getenv() in python argparse, so the output
>> of `mini-buildd --help' really depend on $HOME env var
>
> I agree that upstream are using an environment variable called HOME and
> note that it ends up in the manpage.
>
> However, this does not imply that the string "$HOME" will be interpolated,
> so your patch breaks mini-buildd.
Sorry, it is indeed my mistake.
> What's wrong with my expanduser suggestion?
>
> Patch attached.
If we need to expand earlier or later, what is the difference between
current situation and patched version? Home directory will eventually
expand to difference strings due to different $HOME env var, and the
package will be unreproducible. Also, this patch should not be alone,
since we need to add os.path.expanduser() somewhere else.
> ... patch the callsites to use os.path.expanduser at "real" runtime
How do we know if the script is running at "real" runtime?
Thanks,
Boyuan
Message sent on
to Boyuan Yang <073plan@gmail.com>:
Bug#833340.
(Wed, 03 Aug 2016 13:33:09 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Stephan Sürken <absurd@debian.org>:
Bug#833340; Package src:mini-buildd.
(Wed, 03 Aug 2016 14:54:12 GMT) (full text, mbox, link).
Acknowledgement sent
to Chris Lamb <lamby@debian.org>:
Extra info received and forwarded to list. Copy sent to Stephan Sürken <absurd@debian.org>.
(Wed, 03 Aug 2016 14:54:12 GMT) (full text, mbox, link).
Message #44 received at 833340@bugs.debian.org (full text, mbox, reply):
> If we need to expand earlier or later, what is the difference between
> current situation and patched version?
With my patch, the manpage contains the string "~" instead of the
value of the HOME environment variable. ie. it is reproducible.
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby@debian.org / chris-lamb.co.uk
`-
Message sent on
to Boyuan Yang <073plan@gmail.com>:
Bug#833340.
(Wed, 03 Aug 2016 14:54:14 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Stephan Sürken <absurd@debian.org>:
Bug#833340; Package src:mini-buildd.
(Wed, 03 Aug 2016 15:12:17 GMT) (full text, mbox, link).
Acknowledgement sent
to Boyuan Yang <073plan@gmail.com>:
Extra info received and forwarded to list. Copy sent to Stephan Sürken <absurd@debian.org>.
(Wed, 03 Aug 2016 15:12:18 GMT) (full text, mbox, link).
Message #52 received at 833340@bugs.debian.org (full text, mbox, reply):
2016-08-03 22:50 GMT+08:00 Chris Lamb <lamby@debian.org>:
>> If we need to expand earlier or later, what is the difference between
>> current situation and patched version?
>
> With my patch, the manpage contains the string "~" instead of the
> value of the HOME environment variable. ie. it is reproducible.
OK now I got your idea. That should be a good solution, but we may
need to call os.path.expanduser() somewhere else.
Thanks,
Boyuan
Message sent on
to Boyuan Yang <073plan@gmail.com>:
Bug#833340.
(Wed, 03 Aug 2016 15:12:20 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Stephan Sürken <absurd@debian.org>:
Bug#833340; Package src:mini-buildd.
(Wed, 03 Aug 2016 15:39:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Chris Lamb <lamby@debian.org>:
Extra info received and forwarded to list. Copy sent to Stephan Sürken <absurd@debian.org>.
(Wed, 03 Aug 2016 15:39:03 GMT) (full text, mbox, link).
Message #60 received at 833340@bugs.debian.org (full text, mbox, reply):
> OK now I got your idea. That should be a good solution, but we may
> need to call os.path.expanduser() somewhere else.
I deliberately expand it immediately after command-line parsing to
avoid this.
(Did you see my patch?)
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby@debian.org / chris-lamb.co.uk
`-
Message sent on
to Boyuan Yang <073plan@gmail.com>:
Bug#833340.
(Wed, 03 Aug 2016 15:39:13 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Stephan Sürken <absurd@debian.org>:
Bug#833340; Package src:mini-buildd.
(Wed, 03 Aug 2016 15:51:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Boyuan Yang <073plan@gmail.com>:
Extra info received and forwarded to list. Copy sent to Stephan Sürken <absurd@debian.org>.
(Wed, 03 Aug 2016 15:51:06 GMT) (full text, mbox, link).
Message #68 received at 833340@bugs.debian.org (full text, mbox, reply):
2016-08-03 23:34 GMT+08:00 Chris Lamb <lamby@debian.org>:
> I deliberately expand it immediately after command-line parsing to
> avoid this.
>
> (Did you see my patch?)
Really sorry I overlook the last several lines. It is a good solution.
Thanks,
Boyuan
Message sent on
to Boyuan Yang <073plan@gmail.com>:
Bug#833340.
(Wed, 03 Aug 2016 15:51:13 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Stephan Sürken <absurd@debian.org>:
Bug#833340; Package src:mini-buildd.
(Fri, 05 Aug 2016 15:12:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Stephan Sürken <absurd@olurdix.de>:
Extra info received and forwarded to list. Copy sent to Stephan Sürken <absurd@debian.org>.
(Fri, 05 Aug 2016 15:12:06 GMT) (full text, mbox, link).
Message #76 received at 833340@bugs.debian.org (full text, mbox, reply):
Hi guys,
On Mi, 2016-08-03 at 23:46 +0800, Boyuan Yang wrote:
> 2016-08-03 23:34 GMT+08:00 Chris Lamb <lamby@debian.org>:
> >
> > I deliberately expand it immediately after command-line parsing to
> > avoid this.
> >
> > (Did you see my patch?)
> Really sorry I overlook the last several lines. It is a good
> solution.
hmm thanks ;). However, I already did a patch (actually before the bug
popped up). It's already pushed (1.0.x branch), so maybe someone may
check if that still has a flaw ;).
Thx!
S
Message sent on
to Boyuan Yang <073plan@gmail.com>:
Bug#833340.
(Fri, 05 Aug 2016 15:12:11 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Stephan Sürken <absurd@debian.org>:
Bug#833340; Package src:mini-buildd.
(Fri, 05 Aug 2016 19:06:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Stephan Sürken <absurd@olurdix.de>:
Extra info received and forwarded to list. Copy sent to Stephan Sürken <absurd@debian.org>.
(Fri, 05 Aug 2016 19:06:04 GMT) (full text, mbox, link).
Message #84 received at 833340@bugs.debian.org (full text, mbox, reply):
Chris, Boyang,
On Fr, 2016-08-05 at 17:09 +0200, Stephan Sürken wrote:
(...)
> > >
> > > (Did you see my patch?)
> > Really sorry I overlook the last several lines. It is a good
> > solution.
> hmm thanks ;). However, I already did a patch (actually before the
> bug
> popped up). It's already pushed (1.0.x branch), so maybe someone may
> check if that still has a flaw ;).
fwiw, which would have been
https://anonscm.debian.org/git/collab-maint/mini-buildd.git/commit/?h=1.0.x&id=b513a9e398f2c05ec9265a627171eb2281c4d974
This does work alright, but I actually like Chris' patch better, so I
have swapped them.
Still pending, so hopefully the next upload will actually be
reproducible ;).
Thx,
S
Information forwarded
to debian-bugs-dist@lists.debian.org, Stephan Sürken <absurd@debian.org>:
Bug#833340; Package src:mini-buildd.
(Fri, 05 Aug 2016 19:21:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Chris Lamb <lamby@debian.org>:
Extra info received and forwarded to list. Copy sent to Stephan Sürken <absurd@debian.org>.
(Fri, 05 Aug 2016 19:21:04 GMT) (full text, mbox, link).
Message #89 received at 833340@bugs.debian.org (full text, mbox, reply):
> This does work alright, but I actually like Chris' patch better, so I
> have swapped them.
:)
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby@debian.org / chris-lamb.co.uk
`-
Reply sent
to Stephan Sürken <absurd@debian.org>:
You have taken responsibility.
(Sun, 04 Sep 2016 19:36:16 GMT) (full text, mbox, link).
Notification sent
to Boyuan Yang <073plan@gmail.com>:
Bug acknowledged by developer.
(Sun, 04 Sep 2016 19:36:17 GMT) (full text, mbox, link).
Message #94 received at 833340-close@bugs.debian.org (full text, mbox, reply):
Source: mini-buildd
Source-Version: 1.0.17
We believe that the bug you reported is fixed in the latest version of
mini-buildd, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 833340@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Stephan Sürken <absurd@debian.org> (supplier of updated mini-buildd package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Sun, 04 Sep 2016 18:06:18 +0000
Source: mini-buildd
Binary: python-mini-buildd mini-buildd mini-buildd-common
Architecture: source
Version: 1.0.17
Distribution: unstable
Urgency: medium
Maintainer: Stephan Sürken <absurd@debian.org>
Changed-By: Stephan Sürken <absurd@debian.org>
Description:
mini-buildd - minimal build daemon - daemon
mini-buildd-common - minimal build daemon - 08x upgrade dummy package
python-mini-buildd - minimal build daemon - python library and user tool
Closes: 797585 833338 833340 834321 834329 834683
Changes:
mini-buildd (1.0.17) unstable; urgency=medium
.
gnupg 1.4/2.1 compatibility release. This also adds the new 'hotfix'
suite to the default layout (see docs) and various fixes...
.
* [b513a9e] mini-buildd: Generate reproducible mini-buildd man page.
(Closes: 833340)
* [c3969de] control: Vcs-*: Update to anonscm.debian.org. Thanks to
Boyuan Yang (Closes: 833338)
* [fd99541] Revert "mini-buildd: Generate reproducible mini-buildd man
page."
* [2194991] mini-buildd: man page/reproducible builds: Use Chris' patch
(which is nicer than my previous patch).
* [460a6e1] wizards: Add "hotfix" suite to default layout.
* [7ab128f] gnupg.py: Add flavor() method (compute 'gpg flavor'). Not
used currently.
* [88fc314] gnupg.py: Use extra methods to get key and fingerprint form
1st secret key.
* [2b6cb38] gnupg.py: Simplify internal impl.
* [9daee35] gnupg.py: Add flavor class variable (and fail-proof flavor
getter).
* [e993dc5] gnupg.py: GPG 2.1: Add '%no-protection' to key generator
template.
* [8ee94bc] gnupg.py: Add extra method to get sec user id. Fixes doctest
for GPG 2.1. Thanks to Santiago Vila (Closes: 834683)
* [2b29745] misc.py, builder.py: Try to log calls more suitable for cut-
and-paste debugging. Thanks to Marc Haber (Closes: 797585)
* [3320484] control: Add dirmngr depends for mini-buildd (needed for GPG
2.1 'recv-keys' functionality).
* [61302c6] gnupg.py: Add newline for (2.1) template flavor option
(needed for 'gen-key' from within mini-buildd).
* [3047d2f] control: Depend on sbuild >= 0.71. Fixes (1) builds in
chroots >= stretch (where gpg is gpg 2.1)) and (2) mini-buildd's
sbuild key workaround (via gpg 2.1 fixup in sbuild, and revertion of
ascii keyrings in sbuild 0.71). Thanks to Marc Haber (Closes: 834321,
834329)
* [969b12a] misc.py: Add compat for urlopen with python versions < 2.7.9
(relevant for wheezy installations only).
* [e149d03] gnupg.py: For '--with-colons' calls, use arguments that
deliver the same result for GPG 1.4 and 2.1.
* [a0c941d] models/gnupg.py: Fix for slightly changed GPG 2.1-style
colons output.
* [c058f99] builder.py: Cleanup subprocess sequence code for sbuild
call.
Checksums-Sha1:
818386e578e3c46d7b1c2a17f2a5da0bc94c587c 2154 mini-buildd_1.0.17.dsc
d107b7cc67f71b0f72c875c739030ca58dbcafca 860276 mini-buildd_1.0.17.tar.xz
Checksums-Sha256:
2e67a7ac60af6d9976f026da27a20ebcd8ff2a429b71e3dfb36d37ddd7deb9e2 2154 mini-buildd_1.0.17.dsc
9eb0e80935e6e7cfad288853346102f8e0905211365eef6653c27f590e538711 860276 mini-buildd_1.0.17.tar.xz
Files:
f461822b7e415981b656308cd0f31492 2154 devel extra mini-buildd_1.0.17.dsc
0c7c33e7a27320a3553982a03868e8e0 860276 devel extra mini-buildd_1.0.17.tar.xz
-----BEGIN PGP SIGNATURE-----
iQIvBAEBCAAZBQJXzGdNEhxhYnN1cmRAZGViaWFuLm9yZwAKCRAGbegBfith2QyX
EACjnWISllzTpnYrqKSuqW0fzY35k6epDm7vb1zu2Wvhv3zdOXWiVOvBbIl2x9yr
6BPHY72WbxZtslruZsL3vEA+13Qfuurj0zNzhAz+gMJFgVZIo2NOMRmq2OSGnqrC
qfrGpW82VbJF7qvvj5r1mZJyXZc5aXGEF/NyeDWQkNsBorpTkpnIYey6wdcVt6TK
J6xkopc5zh1mq+EpcPrWBEB0cUDkbDNIjVZlxqsd2mMxLzKIck5DPiimZGj+Dhpa
z23yENMDDqGE/NHFBaIaEzRdZp8yE+JgN9pq8qFQFl0YisLXBCBvRLIvZAX+G/6H
WM3SA81IlZTCmfulY30d96AJBS+CO/Ark1PC5HKXwbYl9TZfpcR4eQs1yUV6+pNn
JTzH5uS0MglAYOTFUdtWwsoJeSfSirPTz38/yb1gFsEBKgB6Qd6sbPy8iHNai9NX
MFBKMTp8SH8OmF7t7Q6pTAuQTkqr7EIPexEqfBprtJcTkquYjnev4Fg0yXirrCZF
CDe2woMnyV7TUp42D/d7WZJnrHdVKJtq9KOeDv2obaQw8uFhCv9skO1h8c0n/WhG
RfPn4YK5EJu8E/6NaWa3TTYS3EsB8/Xl8vEArgoyey23ylMKLciDueGAQfalWxEz
Ei6gny3wbmxItPpPUYGk9/xRkxbrFKDfWpy/1mB7JGiL5w==
=F5V9
-----END PGP SIGNATURE-----
Changed Bug title to 'mini-buildd: please make man page mini-buildd.8 reproducible' from 'mini-buildd: please make the build reproducible'.
Request was from Stephan Sürken <absurd@debian.org>
to control@bugs.debian.org.
(Fri, 09 Sep 2016 12:51:12 GMT) (full text, mbox, link).
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Mon, 05 Dec 2016 09:10:21 GMT) (full text, mbox, link).
Bug unarchived.
Request was from Don Armstrong <don@debian.org>
to control@bugs.debian.org.
(Wed, 07 Dec 2016 01:52:33 GMT) (full text, mbox, link).
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Sat, 25 Feb 2017 07:30:38 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Wed May 17 13:51:35 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.