Bug#793121: ocaml-fdkaac: FTBFS in pbuilder: error: configure script must not be run with root user!
On 2015-07-21 17:36, Stéphane Glondu wrote:
> Le 21/07/2015 17:21, Stéphane Glondu a écrit :
>>> ocaml-fdkaac fails to build in pbuilder. [...]
>>
>> Running:
>>
>> apt-get source -d ocaml-fdkaac
>> cowbuilder --build ocaml-fdkaac_0.2.0-1.dsc
>>
>> suceeds.
>
> Sorry, I read "cowbuilder" instead of "pbuilder". However, I just tried
> with:
>
> pbuilder --build ocaml-fdkaac_0.2.0-1.dsc
>
> and it also succeeds.
Hmm, weird.
sudo pbuilder --build --basetgz /var/cache/pbuilder/base-sid.tgz
ocaml-fdkaac_0.2.0-1.1.dsc
fails here with pbuilder 0.215+nmu3 (+ the binNMU patch) and sudo
1.8.10p3-1+deb8u2
Added some debugging to override_dh_auto_configure:
Within pbuilder execution the following relevant environment variables
are set, well, interestingly:
USERNAME=root
SUDO_USER=beckmann
LOGNAME=pbuilder
USER=root
But all commands return sane values:
$ id
uid=1234(pbuilder) gid=1234(pbuilder) groups=1234(pbuilder)
$ whoami
pbuilder
So the test seems to be broken, since it uses an unreliable environment
variable ($USER) which may have incorrect content first before checking
whoami.
Andreas
PS: I didn't notice the ./bootstrap script, that does regenerate
configure properly
Reply to: