Debian Bug report logs - #991002
automake1.11: reproducible builds: Embeds different shell depending on /bin/sh symlink

Package: src:automake1.11; Maintainer for src:automake1.11 is Eric Dorland <eric@debian.org>;

Reported by: Vagrant Cascadian <vagrant@reproducible-builds.org>

Date: Mon, 12 Jul 2021 17:24:02 UTC

Severity: normal

Tags: patch

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, Eric Dorland <eric@debian.org>:
Bug#991002; Package src:automake1.11. (Mon, 12 Jul 2021 17:24:04 GMT) (full text, mbox, link).


Acknowledgement sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
New Bug report received and forwarded. Copy sent to reproducible-bugs@lists.alioth.debian.org, Eric Dorland <eric@debian.org>. (Mon, 12 Jul 2021 17:24:04 GMT) (full text, mbox, link).


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

From: Vagrant Cascadian <vagrant@reproducible-builds.org>
To: submit@bugs.debian.org
Subject: automake1.11: reproducible builds: Embeds different shell depending on /bin/sh symlink
Date: Mon, 12 Jul 2021 10:21:09 -0700
[Message part 1 (text/plain, inline)]
Source: automake1.11
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: shell
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

Depending on which shell /bin/sh symlinks to, a different value is
embedded in automake-1.11:

  https://tests.reproducible-builds.org/debian/rb-pkg/bullseye/amd64/diffoscope-results/automake1.11.html

  /usr/bin/automake-1.11

  $ENV{'SHELL'}·=·'/bin/bash'·if·exists·$ENV{'DJDIR'};
  vs.
  $ENV{'SHELL'}·=·'/bin/sh'·if·exists·$ENV{'DJDIR'};


The attached patch fixes this in debian/rules by passing
CONFIG_SHELL=/bin/bash to configure.

With this patch applied (and another submitted patch for timestamps),
automake1.11 should become reproducible on the
tests.reproducible-builds.org infrastructure.


Thanks for maintaining automake1.11!


live well,
  vagrant
[0001-debian-rules-Run-configure-with-CONFIG_SHELL-bin-bas.patch (text/x-diff, inline)]
From fb24e9747fdafd4f4f1286ac581add202f1bdbf7 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Mon, 12 Jul 2021 17:01:53 +0000
Subject: [PATCH 1/2] debian/rules: Run configure with CONFIG_SHELL=/bin/bash.

Depending on weather /bin/sh symlinks to /bin/bash or /bin/dash,
/usr/bin/automake-1.11 embeds a different value for SHELL.
---
 debian/rules | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 1de340e..0823bd4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,7 +12,7 @@ infodir=doc
 # Explicitly call configure since old configure doesn't understand
 # --runstatedir.
 override_dh_auto_configure:
-	./configure --build=$(DEB_BUILD_GNU_TYPE) \
+	CONFIG_SHELL=/bin/bash ./configure --build=$(DEB_BUILD_GNU_TYPE) \
 		--prefix=/usr --includedir=\$${prefix}/include \
 		--mandir=\$${prefix}/share/man \
 		--infodir=\$${prefix}/share/info \
-- 
2.32.0

[signature.asc (application/pgp-signature, 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:27:01 2023; Machine Name: bembo

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.