It might as well be a debhelper bug. Happens due to the following glob pattern usage in the package install files:
usr/share/man/{.,*}/man1/*
which glob expands to:
debian/tmp/usr/share/man/./man1/any2djvu.1
dh_install chokes on this dot in the path and cannot guess the destination directory correctly, because that single dot is exactly the same as $srcdir for dh_install itself. During processing:
# Guess at destination directory.
$dest=$src;
$dest=~s/^(.*\/)?\Q$srcdir\E\///;
$dest=~s/^(.*\/)?debian\/tmp\///;
$dest=dirname("/".$dest);
the 2nd regexp reduces the path to:
man1/any2djvu.1
the 4th regexp makes it:
/man1
That's it. Possible solution could be to use canonpath() during initial $src processing or fiddle with regexp somehow, or just refrain from using this kind of pattern in install files. Attached is a quick fix to replace the faulty glob pattern with two normal ones for the affected package.
It might as well be a debhelper bug. Happens due to the following glob pattern usage in the package install files:
usr/share/ man/{., *}/man1/ *
which glob expands to:
debian/ tmp/usr/ share/man/ ./man1/ any2djvu. 1
dh_install chokes on this dot in the path and cannot guess the destination directory correctly, because that single dot is exactly the same as $srcdir for dh_install itself. During processing:
# Guess at destination directory. s/^(.*\ /)?\Q$srcdir\ E\///; s/^(.*\ /)?debian\ /tmp\// /; "/".$dest) ;
$dest=$src;
$dest=~
$dest=~
$dest=dirname(
the 2nd regexp reduces the path to:
man1/any2djvu.1
the 4th regexp makes it:
/man1
That's it. Possible solution could be to use canonpath() during initial $src processing or fiddle with regexp somehow, or just refrain from using this kind of pattern in install files. Attached is a quick fix to replace the faulty glob pattern with two normal ones for the affected package.