aboutsummaryrefslogtreecommitdiff
path: root/examples/python2.7/patches/makesetup-bashism.diff
diff options
context:
space:
mode:
Diffstat (limited to 'examples/python2.7/patches/makesetup-bashism.diff')
-rw-r--r--examples/python2.7/patches/makesetup-bashism.diff13
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/python2.7/patches/makesetup-bashism.diff b/examples/python2.7/patches/makesetup-bashism.diff
new file mode 100644
index 0000000..51ee475
--- /dev/null
+++ b/examples/python2.7/patches/makesetup-bashism.diff
@@ -0,0 +1,13 @@
+# DP: Fix bashism in makesetup shell script
+
+--- a/Modules/makesetup
++++ b/Modules/makesetup
+@@ -281,7 +281,7 @@
+ -) ;;
+ *) 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%_MODOBJS_%$OBJS%" >>$sedf