(edgy) drbd0.7-module-source: module will not compile

Bug #76677 reported by .:. brainsik
2
Affects Status Importance Assigned to Milestone
drbd0.7 (Ubuntu)
New
Undecided
Unassigned
Nominated for Feisty by Andrius

Bug Description

Binary package hint: drbd0.7-module-source

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/drbd/drbd/Makefile modules.new/drbd/drbd/Makefile
--- modules/drbd/drbd/Makefile 2006-06-23 03:07:48.000000000 -0700
+++ modules.new/drbd/drbd/Makefile 2006-12-20 18:03:56.000000000 -0800
@@ -93,8 +93,8 @@
   drbd_buildtag.c:
        @is_tarball=`test -e .svn/. -a -e ../.svn/. && echo false || echo true`;\
        set -e; exec > $@.new; \
- echo -e "/* automatically generated. DO NOT EDIT. */"; \
- echo -e "const char * drbd_buildtag(void)\n{"; \
+ echo "/* automatically generated. DO NOT EDIT. */"; \
+ echo "const char * drbd_buildtag(void)\n{"; \
        if $$is_tarball; then \
          if ! test -e $@ ; then \
                echo >&2 "your DRBD source tree is broken. unpack again."; \
@@ -103,10 +103,10 @@
          grep return $@ ; \
        else \
          SVNREV=$$(svnversion -n -c ..); \
- 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_kernelrelease*

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.