File: bash-path.patch

package info (click to toggle)
pacman-package-manager 7.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,672 kB
  • sloc: ansic: 23,737; sh: 6,190; python: 6,046; perl: 149; makefile: 15
file content (20 lines) | stat: -rw-r--r-- 817 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Set bash path to /bin/bash for reproducibility
 The build system finds the path to bash and replaces script headers
 with it. This makes the build non-reproducible since some systems are
 merged-usr and some are not. This patch makes tells the build system
 to search specifically for /bin/bash instead of bash anywhere on PATH.
Author: Ben Westover <me@benthetechguy.net>
Forwarded: not-needed
Last-Update: 2022-09-16

--- a/meson.build
+++ b/meson.build
@@ -32,7 +32,7 @@
 LDCONFIG = get_option('ldconfig')
 MESON_MAKE_SYMLINK = join_paths(meson.project_source_root(), 'build-aux/meson-make-symlink.sh')
 
-BASH = find_program('bash4', 'bash')
+BASH = find_program('/bin/bash')
 if BASH.found()
   bash_version = run_command(BASH, '-c', 'IFS=.; echo "${BASH_VERSINFO[*]:0:3}"', check: true).stdout()