Debian Bug report logs -
#950410
autogen: build varies on usrmerge system
Reported by: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sat, 1 Feb 2020 09:21:02 UTC
Severity: normal
Tags: patch
Fixed in version autogen/1:5.18.16-4
Done: Andreas Metzler <ametzler@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, vagrant@debian.org, Andreas Metzler <ametzler@debian.org>:
Bug#950410; Package src:autogen.
(Sat, 01 Feb 2020 09:21:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Vagrant Cascadian <vagrant@reproducible-builds.org>:
New Bug report received and forwarded. Copy sent to vagrant@debian.org, Andreas Metzler <ametzler@debian.org>.
(Sat, 01 Feb 2020 09:21:04 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Source: autogen
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: usrmerge environment
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org
The paths for various binaries (grep, bash, sh) differ on a merged /usr
system, and autogen embeds those paths in several included
files.
The value of the SHELL environment variable also gets embedded into the
build when set.
The attached patch works around this in debian/rules by passing GREP,
POSIX_SHELL and SHELL to configure to ensure reproducible builds
regardless of environment or when build on a usrmerge system.
Thanks for maintaining autogen!
live well,
vagrant
[0001-debian-rules-Pass-GREP-POSIX_SHELL-and-SHELL-to-conf.patch (text/x-diff, inline)]
From 498ba7f94521c93ac1703f3b2890ed3542d00d83 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sat, 1 Feb 2020 00:06:21 -0800
Subject: [PATCH] debian/rules: Pass GREP, POSIX_SHELL and SHELL to configure
to ensure reproducible builds regardless of environment or when build on a
usrmerge system.
---
debian/rules | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/debian/rules b/debian/rules
index 4b3bf41..6d0084c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -21,7 +21,8 @@ override_dh_auto_configure:
--disable-silent-rules \
--enable-timeout=78 \
--with-libxml2-libs="$(shell $(DEB_HOST_GNU_TYPE)-pkg-config --libs libxml-2.0)" \
- --with-libxml2-cflags="$(shell $(DEB_HOST_GNU_TYPE)-pkg-config --cflags libxml-2.0)"
+ --with-libxml2-cflags="$(shell $(DEB_HOST_GNU_TYPE)-pkg-config --cflags libxml-2.0)" \
+ GREP=/bin/grep POSIX_SHELL=/bin/bash SHELL=/bin/sh
override_dh_auto_build:
dh_auto_build --verbose
--
2.20.1
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, vagrant@reproducible-builds.org, Andreas Metzler <ametzler@debian.org>:
Bug#950410; Package src:autogen.
(Sun, 16 Feb 2020 12:45:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Andreas Metzler <ametzler@bebt.de>:
Extra info received and forwarded to list. Copy sent to vagrant@reproducible-builds.org, Andreas Metzler <ametzler@debian.org>.
(Sun, 16 Feb 2020 12:45:05 GMT) (full text, mbox, link).
Message #10 received at 950410@bugs.debian.org (full text, mbox, reply):
On 2020-02-01 Vagrant Cascadian <vagrant@reproducible-builds.org> wrote:
> Source: autogen
[...]
> The paths for various binaries (grep, bash, sh) differ on a merged /usr
> system, and autogen embeds those paths in several included
> files.
> The value of the SHELL environment variable also gets embedded into the
> build when set.
> The attached patch works around this in debian/rules by passing GREP,
> POSIX_SHELL and SHELL to configure to ensure reproducible builds
> regardless of environment or when build on a usrmerge system.
[...]
Hello Vagrant,
Thanks for the patch. Afaict it does not need bash but a posix shell:
---
config/libopts.m4
[while :
do
test -x "$POSIX_SHELL" && break
POSIX_SHELL=`which bash`
test -x "$POSIX_SHELL" && break
POSIX_SHELL=`which dash`
test -x "$POSIX_SHELL" && break
POSIX_SHELL=/usr/xpg4/bin/sh
test -x "$POSIX_SHELL" && break
POSIX_SHELL=`/bin/sh -c '
exec 2>/dev/null
if ! true ; then exit 1 ; fi
echo /bin/sh'`
test -x "$POSIX_SHELL" && br
---
I will therefore use /bin/sh instead of /bin/bash.
cu Andreas
Reply sent
to Andreas Metzler <ametzler@debian.org>:
You have taken responsibility.
(Sat, 25 Apr 2020 16:21:03 GMT) (full text, mbox, link).
Notification sent
to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer.
(Sat, 25 Apr 2020 16:21:03 GMT) (full text, mbox, link).
Message #15 received at 950410-close@bugs.debian.org (full text, mbox, reply):
Source: autogen
Source-Version: 1:5.18.16-4
Done: Andreas Metzler <ametzler@debian.org>
We believe that the bug you reported is fixed in the latest version of
autogen, 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 950410@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Andreas Metzler <ametzler@debian.org> (supplier of updated autogen 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: SHA512
Format: 1.8
Date: Sat, 25 Apr 2020 17:55:37 +0200
Source: autogen
Architecture: source
Version: 1:5.18.16-4
Distribution: unstable
Urgency: low
Maintainer: Andreas Metzler <ametzler@debian.org>
Changed-By: Andreas Metzler <ametzler@debian.org>
Closes: 950410
Changes:
autogen (1:5.18.16-4) unstable; urgency=low
.
* Improved reproducible build on merged /usr system, pass paths for shell
and grep as arguments to ./configure. (Thanks, Vagrant Cascadian)
Closes: #950410
* [lintian] Drop DEB_LDFLAGS_MAINT_APPEND -Wl,--as-needed, default behavior
in bullseye toolchain.
Checksums-Sha1:
41eed18a772ed974bb718873c78c458b6cb453f2 2400 autogen_5.18.16-4.dsc
d64740a0b0298a270af69b5a84118d163814ddd8 21184 autogen_5.18.16-4.debian.tar.xz
Checksums-Sha256:
07b1296b83424a932b5737adce9d1d1b267d5d8fdd8ceeedb4e1aa0c1474010c 2400 autogen_5.18.16-4.dsc
10580035a6a54a5d32f283a63a70d3c9a7fe7e6cd9ce8c7a12d8983805ba0f18 21184 autogen_5.18.16-4.debian.tar.xz
Files:
e5e29d7509762cc189054b3befbf8fe4 2400 devel optional autogen_5.18.16-4.dsc
580acaf7ea60d2e1dbaf01db1468e6f4 21184 devel optional autogen_5.18.16-4.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEE0uCSA5741Jbt9PpepU8BhUOCFIQFAl6kX28ACgkQpU8BhUOC
FITLvQ/+Pny/EUDbvEaXYqdfEJR3kgG06t4WCOc3OVeR8YEenqHKf2bwe6lXo7S6
2YbE9+MmEFXNjgO+dzJVQyzAGT+k14mXkZzmah8w+jpD35LN4kbQnsIaa/EiRa9/
3Y50Va87hnJ2S3i9p/OnU821TvV/ZXV8K7tpzILCRMENFiqt7qvZFzrqXoFMzpxn
vSXvK285Py2TPtGsQKT8IHRPc07Iwc9lVVeVV5e5vW7usKRH5Br33/awcDiBXrVK
uSZmC9oMafPaMSrgowgAeo9PnW7tIX10/In0QziNhYFlEW4a86mYVjY+4EMe9v4S
npMelCt/26lqJP8lqE13yIu1fTgp1ROvsNnGH1xDnPBFG6LDWoit+dj2Y7Kza4d+
8DymP7px/24xolTe8xZZ25JErrcwXKLWKAkjZ1Bl18FS4/7doBNp7r3RqwdMBOTE
rkx7J9o2LaB8OdevY5rwvCnpf+pdKB9vBA8VDxzgpLGGn89jvMlO2hOXgElZuDYn
zqayZTtI4+YteJIuLUZqn/Z3pDeclcrE6Iq1yvwtmgtQc0M3VsEEzpXGD592vyIC
eKlxoP+JJ661GVajsp3Hw+eCDGEVaTQCBcUMQuQE+IgCNUmI+YihlSKv/Os2G67t
vB1UWiDpusd8E5tao8BPWEpRb+56T7b1P8UfIXzHqGcTn1rLUNM=
=ln6m
-----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Wed, 03 Jun 2020 07:25:06 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:39:54 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.