#596246 Building with sudo looses DEB_BUILD_OPTIONS

Package:
devscripts
Source:
devscripts
Description:
scripts to make the life of a Debian Package maintainer easier
Submitter:
Goswin von Brederlow
Date:
2010-09-09 16:57:08 UTC
Severity:
normal
#596246#5
Date:
2010-09-09 16:54:20 UTC
From:
To:
Hi,

I have a package that supports DEB_BUILD_OPTIONS. When I build it with

DEB_BUILD_OPTIONS=foo debuild -rfakeroot

then everything works as expected. But when I build with

DEB_BUILD_OPTIONS=foo debuild -rsudo

The binary target fails because DEB_BUILD_OPTIONS is unset.


It would be nice if debuild would preserve the environment across the
sudo call by seting the standard variables like DEB_BUILD_OPTIONS in
the call.

MfG
	Goswin
--- /etc/devscripts.conf ---
DEBUILD_ROOTCMD=fakeroot
DEBUILD_PREPEND_PATH="/usr/lib/ccache"
--- ~/.devscripts --- Not present