Bug#789868: pbuilder: pdebuild fails with sudo error

2015-10-08 Thread Vincent Lefevre
Control: tag -1 - unreproducible On 2015-10-08 22:22:10 +, Mattia Rizzolo wrote: > So, I created a really fresh VM (with an old testing from the time > testing was jessie), dist-upgrade it to sid. VM's may behave differently. Try with a real machine. Try exactly: 1. By default, a normal use

Bug#789868: pbuilder: pdebuild fails with sudo error

2015-10-08 Thread Mattia Rizzolo
control: tag -1 unreproducible On Tue, Oct 06, 2015 at 12:25:02AM +0200, Vincent Lefevre wrote: > On 2015-10-05 14:44:47 +, Thorsten Glaser wrote: > > But semantics aside: I use a wrapper script that takes the target > > distribution (and, optionally, architecture) as first argument, > > then

Bug#789868: pbuilder: pdebuild fails with sudo error

2015-10-05 Thread Vincent Lefevre
On 2015-10-05 14:44:47 +, Thorsten Glaser wrote: > But semantics aside: I use a wrapper script that takes the target > distribution (and, optionally, architecture) as first argument, > then calls eatmydata cowbuilder with the rest, running linux32 or > linux64, possibly with --uname-2.6, prepen

Bug#789868: pbuilder: pdebuild fails with sudo error

2015-10-05 Thread Thorsten Glaser
Vincent Lefevre dixit: >I have only enabled pbuilder to be executable via sudo (really, the >default configuration + minimal changes for pbuilder), not env, as >it would make *any* command executable via sudo. See, that’s not the default configuration ;-) In fact, this is purely a sudo issue, not

Bug#789868: pbuilder: pdebuild fails with sudo error

2015-10-05 Thread Vincent Lefevre
On 2015-10-05 13:31:48 +, Thorsten Glaser wrote: > Vincent Lefevre dixit: > > >This doesn't work with the default sudo configuration: > > Eh? > > >$ sudo DIST=gutsy pbuilder > >sudo: sorry, you are not allowed to set the following environment variables: > >DIST > > Works here… anyway, use

Bug#789868: pbuilder: pdebuild fails with sudo error

2015-10-05 Thread Thorsten Glaser
Vincent Lefevre dixit: >This doesn't work with the default sudo configuration: Eh? >$ sudo DIST=gutsy pbuilder >sudo: sorry, you are not allowed to set the following environment variables: >DIST Works here… anyway, use this then: $ sudo env DIST=gutsy pbuilder This will always work, unless s

Bug#789868: pbuilder: pdebuild fails with sudo error

2015-10-04 Thread Vincent Lefevre
On 2015-10-03 09:23:53 +, Mattia Rizzolo wrote: > I have to guess that this doc snipppet predates the sudo changes. So, the manual should be fixed, then. But... > That won't work (though you can use `sudo DIST=gutsy pbuilder` (i.e. > swapping sudo and the var definition)). This doesn't work

Bug#789868: pbuilder: pdebuild fails with sudo error

2015-10-03 Thread Mattia Rizzolo
On Sat, Oct 03, 2015 at 02:04:06AM +0200, Vincent Lefevre wrote: > According to the pbuilder manual[*], the -E option should be > unnecessary anyway: > > [...] > Here's some examples on running pbuilder or pdebuild: > > DIST=gutsy sudo pbuilder create > > DIST=sid sudo pbuilder create --mi

Bug#789868: pbuilder: pdebuild fails with sudo error

2015-10-02 Thread Vincent Lefevre
On 2015-10-02 19:49:44 +, Mattia Rizzolo wrote: > discalimer: I don't even know whether I changed that bit of my sudo > config, but `sudo -E` does work fine for me. With Debian's default sudo configuration, it doesn't work. > The discussion that added -E to the default sudo is at #361362. >

Bug#789868: pbuilder: pdebuild fails with sudo error

2015-10-02 Thread Mattia Rizzolo
On Thu, Jun 25, 2015 at 02:07:42AM +0200, Vincent Lefevre wrote: > I get the following error when running "pdebuild": > > sudo: sorry, you are not allowed to preserve the environment > > Note that I use sudo's default config. > > With "/bin/bash -x pdebuild", I can see a line starting with: > >

Bug#789868: pbuilder: pdebuild fails with sudo error

2015-06-24 Thread Vincent Lefevre
Package: pbuilder Version: 0.215+nmu3 Severity: normal When following the steps in https://www.debian.org/doc/manuals/maint-guide/build.en.html#pbuilder I get the following error when running "pdebuild": sudo: sorry, you are not allowed to preserve the environment Note that I use sudo's defa