[Build-common-hackers] Bug#248708: cdbs: please support user specified DEB_DESTDIR

W. Borgert debacle@debian.org, 248708@bugs.debian.org
Wed, 12 May 2004 21:15:41 +0000


Package: cdbs
Version: 0.4.21
Severity: wishlist
Tags: patch

Please allow to set the DEB_DESTDIR by the user, e.g.

$ DEB_BUILDDIR=`pwd`/foo DEB_DESTDIR=`pwd`/foo/debian \
  dpkg-buildpackage -rfakeroot

A possible way to achieve this, is by changing the last
lines of /usr/share/cdbs/1/rules/buildvars.mk to

+ifeq ($(DEB_DESTDIR),)
ifeq ($(words $(DEB_PACKAGES)),1)
       	DEB_DESTDIR = $(CURDIR)/debian/$(strip $(DEB_PACKAGES))
else
       	DEB_DESTDIR = $(CURDIR)/debian/tmp
endif
+endif

endif

This would be very useful for me, so maybe for other people
as well...