Files and patches are not installed in the correct path
gioele opened this issue · 1 comments
gioele commented
The files added via Files
or Diff
are not installed in the correct path.
See http://bugs.debian.org/662946 (with patch) and http://unix.stackexchange.com/q/78905/14861.
gioele commented
One possible solution is to apply the following patch to /usr/bin/equivs-build
:
--- /usr/bin/equivs-build.orig 2011-09-30 07:22:24.000000000 +0100
+++ /usr/bin/equivs-build 2012-03-07 13:27:50.315122421 +0000
@@ -67,7 +67,7 @@
for (split "\n", $control{'Files'} || "") {
die "Cannot parse Files line: '$_'\n"
unless m:^\s*(\S+)\s+(\S+)/?\s*$:;
- $install_files{"$2/$1"} = $1;
+ $install_files{"$2/".basename($1)} = $1;
}