summaryrefslogtreecommitdiff
path: root/debian/patches
diff options
context:
space:
mode:
authorMichael Tokarev <mjt@tls.msk.ru>2013-09-17 20:22:07 +0400
committerMichael Tokarev <mjt@tls.msk.ru>2013-09-17 20:22:07 +0400
commitc484a9c48165844c0715e120ab88ccb05b63266c (patch)
tree3c90f4f0c28f35f2e274474833271a24dc43919c /debian/patches
parentebbd0e25b51c5c4ad73edda2d112ac712ac61806 (diff)
remove-bashism-from-makefile.patch
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/remove-bashism-from-makefile.patch22
-rw-r--r--debian/patches/series1
2 files changed, 23 insertions, 0 deletions
diff --git a/debian/patches/remove-bashism-from-makefile.patch b/debian/patches/remove-bashism-from-makefile.patch
new file mode 100644
index 00000000..06dff2f9
--- /dev/null
+++ b/debian/patches/remove-bashism-from-makefile.patch
@@ -0,0 +1,22 @@
+From: Michael Tokarev <mjt@tls.msk.ru>
+Subject: Remove bashism from Makefile
+
+Makefile uses [ x == y ] construct which does not work
+with POSIX shell. Since this is just testing a flag,
+replace it with string comparison (=) operator instead.
+
+Signed-off-By: Michael Tokarev <mjt@tls.msk.ru>
+
+diff --git a/Makefile b/Makefile
+index e8da3a5..c60cc2c 100644
+--- a/Makefile
++++ b/Makefile
+@@ -156,7 +156,7 @@ all : check_rundir mdadm mdmon
+ man : mdadm.man md.man mdadm.conf.man mdmon.man raid6check.man
+
+ check_rundir:
+- @if [ ! -d "$(dir $(RUN_DIR))" -a "$(CHECK_RUN_DIR)" == 1 ]; then \
++ @if [ ! -d "$(dir $(RUN_DIR))" -a "$(CHECK_RUN_DIR)" = 1 ]; then \
+ echo "***** Parent of $(RUN_DIR) does not exist. Maybe set different RUN_DIR="; \
+ echo "***** e.g. make RUN_DIR=/dev/.mdadm" ; \
+ echo "***** or set CHECK_RUN_DIR=0"; exit 1; \
diff --git a/debian/patches/series b/debian/patches/series
index a1e4e3f6..d8a2a972 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
debian-conffile-location.diff
debian-no-Werror.diff
sha1-includes.diff
+remove-bashism-from-makefile.patch