Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.