dpkg-buildpackage issue when building packages not in parent dir

Bryan Hanks bryan.hanks at access-company.com
Mon Jun 9 22:31:27 UTC 2008

Not sure if this is the correct forum for this, but dpkg-buildpackage
has an issue when a cdbs compliant rules file specifies a deb
destination directory to be different then '..'. The problem comes about
from this part of the dpkg-buildpackage script.

withecho dpkg-genchanges "$@" >"$chg"

First problem is that the resultant changes file is always going to be
in the parent directory. 

The second problem is that if dh_builddeb built the .deb(s) in someplace
other then .. (as specified by --destdir) then dpkg-genchanges is unable
to find them since dpkg-buildpackage does not allow you to set and pass
the -u parameter to dpkg-genchanges.

Both of these make it really impossible to support building debian
packages in anything other then parent directory.

Perhaps not ideal, but another alternative would be to add a command
line option that disables the whole dpkg-genchanges file creation. 

More information about the Ubuntu-devel-discuss mailing list