File: 0001-examples-Makefile.am-Patch-to-hard-code-path-to-bash.patch

package info (click to toggle)
xnee 3.19-9.4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 34,432 kB
  • sloc: ansic: 23,555; sh: 13,521; makefile: 600
file content (30 lines) | stat: -rw-r--r-- 1,120 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From 603e131203b5f06141920ee8931121c159dc02e7 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Tue, 5 Oct 2021 00:31:10 +0000
Subject: [PATCH] examples/Makefile.am: Patch to hard-code path to bash.

When /bin/sh is a symlink to bash, the value of the BASH variable gets
set to /bin/sh, but /bin/sh may not always point to bash on the
running system.

https://tests.reproducible-builds.org/debian/issues/unstable/bin_sh_is_bash_issue.html
---
 examples/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/Makefile.am b/examples/Makefile.am
index c08a110..7ea6bf8 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -6,7 +6,7 @@ pkgdatadir=$(datadir)/xnee/
 CLEAN_FILES=simple_bash.sh
 
 simple_bash.sh: simple_bash.sh.in1
-	echo "#!" "$(BASH)"                     > simple_bash.sh
+	echo "#!" "/bin/bash"                   > simple_bash.sh
 	echo " "                               >> simple_bash.sh 
 	echo " "                               >> simple_bash.sh 
 	echo "if [ -f ${bindir}/bin/cnee ]"    >> simple_bash.sh 
-- 
2.33.0