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

dh_installexamples cannot handle directories with spaces in their names if
an exclude has been set. The code that handles the exclusion does not have
appropriate quotes.

A patch is attached to resolve the problem.

Regards, Richard.


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.23-1-686 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages debhelper depends on:
ii  binutils            2.18.1~cvs20080103-1 The GNU assembler, linker and bina
ii  coreutils           5.97-5.6             The GNU core utilities
ii  dpkg-dev            1.14.14              package building tools for Debian
ii  file                4.21-4               Determines file type using "magic"
ii  html2text           1.3.2a-3             An advanced HTML to text converter
ii  perl                5.8.8-12             Larry Wall's Practical Extraction 
ii  po-debconf          1.0.11               manage translated Debconf template

debhelper recommends no packages.

-- no debconf information
--- /usr/bin/dh_installexamples.orig    2007-10-22 20:09:00.000000000 +0100
+++ /usr/bin/dh_installexamples 2008-01-06 13:43:33.000000000 +0000
@@ -90,7 +90,7 @@
                                # Pity there's no cp --exclude ..
                                my $pwd=`pwd`;
                                chomp $pwd;
-                               complex_doit("cd $example/.. && find 
$dir_basename -type f$exclude -exec cp --parents -dp {} 
$pwd/$tmp/usr/share/doc/$package/examples \\;");
+                               complex_doit("cd \"$example/..\" && find 
\"$dir_basename\" -type f$exclude -exec cp --parents -dp {} 
$pwd/$tmp/usr/share/doc/$package/examples \\;");
                        }
                        else {
                                doit("cp", "-a", $example, 
"$tmp/usr/share/doc/$package/examples");

Reply via email to