aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoïc Minier <lool@dooz.org>2009-12-14 14:58:25 +0100
committerLoïc Minier <lool@dooz.org>2009-12-14 15:59:26 +0100
commit8d1bb25b67228d08a7310d2a59b8b58c75b9d822 (patch)
tree1f0b76e7b5e49f6ba6793ecf4ca425e6ad50c35f
parent71c3d0facb7d81e8a2807901e4e75df368c38661 (diff)
downloadpbuilder-8d1bb25b67228d08a7310d2a59b8b58c75b9d822.tar
pbuilder-8d1bb25b67228d08a7310d2a59b8b58c75b9d822.tar.gz
Change default root command to sudo -E; #361362
Change default root command from sudo to sudo -E; closes: #361362
-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.