[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#977747: nis: reproducible builds: Embeds BASH value in /usr/lib/yp/pwupdate



Source: nis
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: shell
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

The shell used for the #! in /usr/lib/yp/pwupdate depends upon the
running user's shell.

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

  #!/bin/bash
  vs.
  #!/bin/sh


The attached patch fixes this by passing BASH=/bin/bash to the
appropriate configure script.


live well,
  vagrant
From eaf81058ec8a715b4b162f115c13315118ad970d Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sun, 20 Dec 2020 03:55:40 +0000
Subject: [PATCH 2/2] debian/rules: Pass BASH=/bin/bash to the ypserv configure
 script.

In ypserv-2.19/configure, the BASH variable gets set to /bin/sh if
unset. This leads to reproducibility issues in the
/usr/lib/yp/pwupdate command which uses the value of BASH for the #!
line.
---
 debian/rules | 1 +
 1 file changed, 1 insertion(+)

diff --git a/debian/rules b/debian/rules
index 4c74d96..59dd4d4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -53,6 +53,7 @@ build:
 	rm -f $(YPSERV)/sedscript
 	-(cd $(YPSERV) && [ ! -f config.status ] && \
 		AWK=/usr/bin/awk CFLAGS=$(CFLAGS) ./configure \
+		BASH=/bin/bash \
 		--prefix=/usr --mandir=/usr/share/man \
 		--sysconfdir=/etc \
 		--libexecdir=/usr/lib/yp --enable-checkroot \
-- 
2.20.1

Attachment: signature.asc
Description: PGP signature


Reply to: