summaryrefslogtreecommitdiff
path: root/debian/patches/makesetup-bashism.diff
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/makesetup-bashism.diff')
-rw-r--r--debian/patches/makesetup-bashism.diff15
1 files changed, 15 insertions, 0 deletions
diff --git a/debian/patches/makesetup-bashism.diff b/debian/patches/makesetup-bashism.diff
new file mode 100644
index 0000000..96fd289
--- /dev/null
+++ b/debian/patches/makesetup-bashism.diff
@@ -0,0 +1,15 @@
+# DP: Fix bashism in makesetup shell script
+
+Index: b/Modules/makesetup
+===================================================================
+--- a/Modules/makesetup
++++ b/Modules/makesetup
+@@ -279,7 +279,7 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' |
+ -) ;;
+ *) sedf="@sed.in.$$"
+ trap 'rm -f $sedf' 0 1 2 3
+- echo "1i\\" >$sedf
++ printf "1i\\" >$sedf
+ str="# Generated automatically from $makepre by makesetup."
+ echo "$str" >>$sedf
+ echo "s%_MODNAMES_%$NAMES%" >>$sedf