Source: ypserv Severity: normal Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: usrmerge shell X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
The configure script sets the BASH variable to /bin/sh when run on a usrmerge system, resulting in the pwupdate script differing between builds: https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/ypserv.html ./usr/lib/yp/pwupdate #!/bin/bash vs. #!/bin/sh Patch attached which passes BASH=/bin/bash to configure, to ensure a consistent build regardless of if it is built on a usrmerge system. Thanks for maintaining ypserv! live well, vagrant
From 4e0d9081842ed5b89c6be333ef0c14fce16503c4 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <vagr...@reproducible-builds.org> Date: Fri, 19 Feb 2021 22:28:16 +0000 Subject: [PATCH 2/2] debian/rules: Pass BASH variable to configure. The configure script records the path to "bash" as /bin/sh when built on a usrmerge system. Consistently use /bin/bash as this is the most compatible path and avoids assumptions about the shell. https://tests.reproducible-builds.org/debian/issues/paths_vary_due_to_usrmerge_issue.html --- debian/rules | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index 48637c1..ffe1fca 100755 --- a/debian/rules +++ b/debian/rules @@ -28,7 +28,8 @@ gen-manpages: dh $@ override_dh_auto_configure: - dh_auto_configure + # Ensure BASH variable consistently is /bin/bash + dh_auto_configure -- BASH=/bin/bash for f in `find $(CURDIR) -name '*.8.xml'`; \ do d=`dirname $$f`; n=`basename $$f .xml`; [ -f $(CURDIR)/$$d/$$n ] || cp -f $(CURDIR)/debian/man/$$n $$d/.; done -- 2.20.1
signature.asc
Description: PGP signature