[Build-common-hackers] Bug#529396: Bug#529396: cdbs: sets DEB_DESTDIR wrong in case of multiple binary packages

Ralf Treinen treinen at free.fr
Tue May 19 20:25:42 UTC 2009


Hi Jonas,

On Tue, May 19, 2009 at 10:05:54AM +0200, Jonas Smedegaard wrote:

> Perhaps if you provide an example of what you consider wrong behaviour, 
> it is easier to discuss.

My use case was the following:

I had a source package (let's call it p) that generates one binary package,
also called p. I have a debian/p.dirs that contains some diretories that
are needed for installation. My debian/rules file contains

DEB_MAKE_INSTALL_TARGET = install DESTDIR=$(DEB_DESTDIR)/usr 

and everything goes well since both debhelper and cdbs agree that the
package staging dir is debian/p.

Now I change my package by adding a second binary package, lets call it
p1, to be generated from the same source package p. Debhelper continues
to act by default on the first package, that is dh_installdir installs
the directories in debian/p. Cdbs, however, now thinks that DEB_DESTDIR
has to debian/tmp. When I use the debhelper.mk rules file then I would 
expect that variables are set according to debhelper rules here.

-Ralf.





More information about the Build-common-hackers mailing list