Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am building debian packages and I'd like the new package to be delivered in the project root folder . instead of in ../
Is there anyway of doing it without overriding debian/rules dh_builddeb? Ideally with a parameter to fakeroot, but I don't see how.

share|improve this question
up vote 1 down vote accepted

According to the Debian Policy Manual:

[The binary target] should then create the relevant binary package(s), using dpkg-gencontrol to make their control files and dpkg-deb to build them and place them in the parent of the top level directory.

So you should be able to put the package somewhere else by writing a wrapper around dpkg-deb and putting it ahead of /usr/bin on the $PATH. dh_builddeb, which is the most common way of causing the binary package to be build, does call dpkg-deb through $PATH.

However putting the build products in the toplevel directory seems risky to me. If you're not careful, they may end up in a source package or diff.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .