Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#563728: pbuilder: "sudo -E" doesn't work

32 views
Skip to first unread message

Philipp Matthias Hahn

unread,
Jan 4, 2010, 5:00:01 PM1/4/10
to
Package: pbuilder
Version: 0.196
Severity: important

$ debuild-pbuilder
/usr/bin/debuild-pbuilder: Zeile 14: sudo -E: Kommando nicht gefunden.
$ LC_ALL=C debuild-pbuilder
/usr/bin/debuild-pbuilder: line 14: sudo -E: command not found
$ sed -ne 14p /usr/bin/debuild-pbuilder
"$PBUILDERROOTCMD" "$PBUILDERSATISFYDEPENDSCMD"
$ grep PBUILDERROOTCMD /usr/share/pbuilder/pbuilderrc /etc/pbuilderrc ~/.pbuilderrc
/usr/share/pbuilder/pbuilderrc:PBUILDERROOTCMD="sudo -E"

Quoting "$PBUILDERROOTCMD" and "sudo -E" doen't work together!
If I remove the quotes in /usr/bin/debuild-pbuilder, I get:
$ debuild-pbuilder
sudo: sorry, you are not allowed to preserve the environment

-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32.2 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages pbuilder depends on:
ii cdebootstrap 0.5.5 Bootstrap a Debian system
ii coreutils 8.0-2 GNU core utilities
ii debconf [debconf-2.0] 1.5.28 Debian configuration management sy
ii debianutils 3.2.2 Miscellaneous utilities specific t
ii debootstrap 1.0.20 Bootstrap a basic Debian system
ii wget 1.12-1.1 retrieves files from the web

Versions of packages pbuilder recommends:
ii devscripts 2.10.61 scripts to make the life of a Debi
ii fakeroot 1.14.4-1 Gives a fake root environment
ii sudo 1.7.2p1-1 Provide limited super user privile

Versions of packages pbuilder suggests:
pn cowdancer <none> (no description available)
pn gdebi-core <none> (no description available)
pn pbuilder-uml <none> (no description available)

-- debconf information excluded

--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Loïc Minier

unread,
Jan 4, 2010, 6:30:01 PM1/4/10
to
forcemerge #563209 563728
stop

Hi

On Mon, Jan 04, 2010, Philipp Matthias Hahn wrote:
> $ debuild-pbuilder
> /usr/bin/debuild-pbuilder: Zeile 14: sudo -E: Kommando nicht gefunden.

Thanks; this is known and pending, see #563209

> $ debuild-pbuilder
> sudo: sorry, you are not allowed to preserve the environment

I'm afraid you need the setenv flag in sudoers:
-E The -E (preserve environment) option will override the
env_reset option in sudoers(5)). It is only available when
either the matching command has the SETENV tag or the
setenv option is set in sudoers(5).

I seem to be able to run "sudo -E whatever" with the default squeeze
config; did you change your sudoers?

If this is still an issue for you, would you mind filing a separate
report or cloning this one?

Thanks,
--
Loïc Minier

0 new messages