Package: debhelper
Version: 7.0.2
Severity: important
Tags: patch

Hi!

When I build 7.0.2 on my system, it FTBFSes with

./run dh binary
   dh_auto_install
grep: Trailing backslash
make[1]: Entering directory `/home/martin/ubuntu/tmp/debhelper-7.0.2'
install -d /home/martin/ubuntu/tmp/debhelper-7.0.2/debian/debhelper/usr/bin \
                
/home/martin/ubuntu/tmp/debhelper-7.0.2/debian/debhelper/usr/share/debhelper/autoscripts
 \
                
/home/martin/ubuntu/tmp/debhelper-7.0.2/debian/debhelper/usr/share/perl5/Debian/Debhelper
install  /home/martin/ubuntu/tmp/debhelper-7.0.2/debian/debhelper/usr/bin
install: missing destination file operand after 
`/home/martin/ubuntu/tmp/debhelper-7.0.2/debian/debhelper/usr/bin'
Try `install --help' for more information.
make[1]: *** [install] Error 1

This is due to the Makefile's $(shell ) call for finding out the files
for usr/bin, which is underescaped/underquoted. With this patch ($ -> $$)
it works again. make replaces the $$ to $, and the shell is apparently
kind enough to not drop trailing $'s.

--- debhelper-7.0.2/Makefile    2008-04-24 03:31:57.000000000 +0200
+++ debhelper-7.0.2ubuntu1/Makefile     2008-04-29 11:01:45.000000000 +0200
@@ -64,7 +64,7 @@
        install -d $(DESTDIR)/usr/bin \
                $(DESTDIR)/usr/share/debhelper/autoscripts \
                $(DESTDIR)$(PERLLIBDIR)
-       install $(shell find -maxdepth 1 -mindepth 1 -name dh\* |grep -v \.1\$) 
$(DESTDIR)/usr/bin
+       install $(shell find -maxdepth 1 -mindepth 1 -name dh\* |grep -v 
\.1\$$) $(DESTDIR)/usr/bin
        install -m 0644 autoscripts/* $(DESTDIR)/usr/share/debhelper/autoscripts
        install -m 0644 Debian/Debhelper/*.pm $(DESTDIR)$(PERLLIBDIR)

Thanks,

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)

Attachment: signature.asc
Description: Digital signature

Reply via email to