From f5f556228e149559f2c17c03a3c5537767c5252b Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Thu, 20 Dec 2018 19:33:32 -0500 Subject: Use sh as the shell for rcm MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit rcm only requires a POSIX-compliant shell – not Bash. The various sh options in Debian are POSIX-compliant, and many of them are substantially faster than Bash. Force rcm to run under /bin/sh. --- debian/patches/series | 1 + debian/patches/shebang.patch | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 debian/patches/shebang.patch diff --git a/debian/patches/series b/debian/patches/series index f3a1eda..d606c4a 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1,3 @@ contributors.patch macos.patch +shebang.patch diff --git a/debian/patches/shebang.patch b/debian/patches/shebang.patch new file mode 100644 index 0000000..9366b9b --- /dev/null +++ b/debian/patches/shebang.patch @@ -0,0 +1,40 @@ +From: Benjamin Barenblat +Subject: Always use /bin/sh to run rcm +Forwarded: not-needed + +rcm only requires a POSIX-compliant shell – not Bash. The various sh +options in Debian are POSIX-compliant, and many of them are +substantially faster than Bash. Force rcm to run under /bin/sh, +regardless of what shell’s interpreting the configure script. +--- a/bin/lsrc.in ++++ b/bin/lsrc.in +@@ -1,4 +1,4 @@ +-#!@SHELL@ ++#!/bin/sh + + : ${RCM_LIB:=$(dirname "$0")/../share/rcm} + . "$RCM_LIB/rcm.sh" +--- a/bin/mkrc.in ++++ b/bin/mkrc.in +@@ -1,4 +1,4 @@ +-#!@SHELL@ ++#!/bin/sh + + : ${RCM_LIB:=$(dirname "$0")/../share/rcm} + . "$RCM_LIB/rcm.sh" +--- a/bin/rcdn.in ++++ b/bin/rcdn.in +@@ -1,4 +1,4 @@ +-#!@SHELL@ ++#!/bin/sh + + : ${RCM_LIB:=$(dirname "$0")/../share/rcm} + . "$RCM_LIB/rcm.sh" +--- a/bin/rcup.in ++++ b/bin/rcup.in +@@ -1,4 +1,4 @@ +-#!@SHELL@ ++#!/bin/sh + + : ${RCM_LIB:=$(dirname "$0")/../share/rcm} + . "$RCM_LIB/rcm.sh" -- cgit v1.2.3