diff options
Diffstat (limited to 'testing/pipexec/dont-require-bash.patch')
| -rw-r--r-- | testing/pipexec/dont-require-bash.patch | 68 |
1 files changed, 56 insertions, 12 deletions
diff --git a/testing/pipexec/dont-require-bash.patch b/testing/pipexec/dont-require-bash.patch index 035d49cb95..ce8eb8f773 100644 --- a/testing/pipexec/dont-require-bash.patch +++ b/testing/pipexec/dont-require-bash.patch @@ -1,16 +1,49 @@ -diff --git a/Makefile.in b/Makefile.in -index 1a10a34..faa57ee 100644 ---- a/Makefile.in -+++ b/Makefile.in -@@ -1354,7 +1354,7 @@ uninstall-am: uninstall-binPROGRAMS uninstall-libLTLIBRARIES - - @USE_VERSION_FILE_FALSE@.FORCE: src/app_version.c - @USE_VERSION_FILE_FALSE@src/app_version.c: --@USE_VERSION_FILE_FALSE@ bash $(top_srcdir)/build/version-gen.sh ${top_srcdir} -+@USE_VERSION_FILE_FALSE@ sh $(top_srcdir)/build/version-gen.sh ${top_srcdir} +From 5aa236515f385befc3062b61d098082ab43e6f5a Mon Sep 17 00:00:00 2001 +From: Jakub Jirutka <jakub@jirutka.cz> +Date: Fri, 1 Dec 2017 01:50:44 +0100 +Subject: [PATCH] Replace /bin/bash with /bin/sh + +1. Not every system provides bash by default. +2. Many systems don't install bash into /bin (but /usr/bin, + /usr/local/bin, ...) +3. Your shell scripts are already POSIX-sh compatible, so it's not + needed to require one particular shell implementation. + +Upstream-Issue: https://github.com/flonatel/pipexec/pull/14 + +diff --git a/build/create_tar.sh b/build/create_tar.sh +index 7bf286f..4223014 100644 +--- a/build/create_tar.sh ++++ b/build/create_tar.sh +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/bin/sh + # + # Create release tarball + # +diff --git a/build/init_autotools.sh b/build/init_autotools.sh +index 1ad160d..3a42399 100755 +--- a/build/init_autotools.sh ++++ b/build/init_autotools.sh +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/bin/sh + # + # This must be called from within the top source dir. + # +diff --git a/src/Makefile.inc b/src/Makefile.inc +index 7792bd7..bc3614d 100644 +--- a/src/Makefile.inc ++++ b/src/Makefile.inc +@@ -2,7 +2,7 @@ + if !USE_VERSION_FILE + .FORCE: src/app_version.c + src/app_version.c: +- bash $(top_srcdir)/build/version-gen.sh ${top_srcdir} ++ /bin/sh $(top_srcdir)/build/version-gen.sh ${top_srcdir} + endif - # Local Variables: - # mode: makefile + # pipexec itself diff --git a/version.sh b/version.sh index 9f5ae2a..1150c91 100755 --- a/version.sh @@ -21,3 +54,14 @@ index 9f5ae2a..1150c91 100755 set -e TOPSRCDIR="" +--- a/Makefile.in ++++ b/Makefile.in +@@ -1354,7 +1354,7 @@ + + @USE_VERSION_FILE_FALSE@.FORCE: src/app_version.c + @USE_VERSION_FILE_FALSE@src/app_version.c: +-@USE_VERSION_FILE_FALSE@ bash $(top_srcdir)/build/version-gen.sh ${top_srcdir} ++@USE_VERSION_FILE_FALSE@ /bin/sh $(top_srcdir)/build/version-gen.sh ${top_srcdir} + + # Local Variables: + # mode: makefile |
