(edgy) drbd0.7-module-source: module will not compile
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
drbd0.7 (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
Bug Description
Binary package hint: drbd0.7-
With the change from BASH to DASH for /bin/sh, the DRBD Makefile breaks in two places.
In the first change, the dash builtin echo command does not understand '-e', instead printing it out. Removing '-e' fixes this as the dash builtin echo automaically converts escape codes like '\n'.
In the second change, dash does not understand { list; } syntax. I replaced it with the resulting expansion.
diff -ur modules/
--- modules/
+++ modules.
@@ -93,8 +93,8 @@
drbd_buildtag.c:
set -e; exec > $@.new; \
- echo -e "/* automatically generated. DO NOT EDIT. */"; \
- echo -e "const char * drbd_buildtag(
+ echo "/* automatically generated. DO NOT EDIT. */"; \
+ echo "const char * drbd_buildtag(
if $$is_tarball; then \
if ! test -e $@ ; then \
@@ -103,10 +103,10 @@
grep return $@ ; \
else \
- echo -e "\treturn \"SVN Revision: $${SVNREV##*:}\""; \
+ echo "\treturn \"SVN Revision: $${SVNREV##*:}\""; \
fi ; \
- echo -e "\t\t\" build by $$USER@$$HOSTNAME, `date "+%F %T"`\";\n}"; \
- mv $@{.new,}
+ echo "\t\t\" build by $$USER@$$HOSTNAME, `date "+%F %T"`\";\n}"; \
+ mv $@.new $@
kbuild: drbd_buildtag.c
@rm -f .drbd_kernelrel