Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Files and patches are not installed in the correct path #1

Open
gioele opened this issue Jun 13, 2013 · 1 comment
Open

Files and patches are not installed in the correct path #1

gioele opened this issue Jun 13, 2013 · 1 comment

Comments

@gioele
Copy link
Owner

gioele commented Jun 13, 2013

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
Copy link
Owner Author

gioele commented Jun 13, 2013

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;
 }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant