aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/NEWS3
-rwxr-xr-xpbuilderrc2
-rw-r--r--pbuilderrc.52
-rw-r--r--pdebuild.12
4 files changed, 6 insertions, 3 deletions
diff --git a/debian/NEWS b/debian/NEWS
index 689c7f5..69076e9 100644
--- a/debian/NEWS
+++ b/debian/NEWS
@@ -8,5 +8,8 @@ pbuilder (0.195) unstable; urgency=low
--debootstrap=cdebootstrap to use it. Custom cdebootstrap options set via
DEBOOTSTRAPOPTS or --debootstrapopts might not be compatible with
debootstrap.
+ * The default PBUILDERROOTCMD is now "sudo -E" instead of "sudo"; this
+ allows passing env vars for pbuilderrc expansion or to the build process
+ such as DEB_BUILD_OPTIONS.
-- Loïc Minier <lool@dooz.org> Sat, 12 Dec 2009 16:03:21 +0100
diff --git a/pbuilderrc b/pbuilderrc
index 388ca31..5ce5626 100755
--- a/pbuilderrc
+++ b/pbuilderrc
@@ -33,7 +33,7 @@ DEBEMAIL=""
#for pbuilder debuild
BUILDSOURCEROOTCMD="fakeroot"
-PBUILDERROOTCMD="sudo"
+PBUILDERROOTCMD="sudo -E"
# use cowbuilder for pdebuild
#PDEBUILD_PBUILDER="cowbuilder"
diff --git a/pbuilderrc.5 b/pbuilderrc.5
index ad26ac9..600d33c 100644
--- a/pbuilderrc.5
+++ b/pbuilderrc.5
@@ -265,7 +265,7 @@ in
.B "pdebuild"
.TP
-.BI "PBUILDERROOTCMD=" "sudo"
+.BI "PBUILDERROOTCMD=" "sudo -E"
This option is used on invocation of
.B "pbuilder build"
diff --git a/pdebuild.1 b/pdebuild.1
index 3798e00..7016bd4 100644
--- a/pdebuild.1
+++ b/pdebuild.1
@@ -30,7 +30,7 @@ The command used to gain root privilege for
invoking dpkg-buildpackage
.TP
-.BI "\-\-pbuilderroot [" "sudo" "]"
+.BI "\-\-pbuilderroot [" "sudo -E" "]"
The command used to gain root privilege for
invoking pbuilder.