Bug#670733: ocaml-cry: FTBFS: Incorrectly thinks it's building as root
Mehdi Dogguy <mehdi@dogguy.org> writes:
On 13/05/12 23:37, Hendrik Tews wrote:
>
> ... the incorrect root test comes from file m4/base_checks.m4
>
> deleting the line 'RUNNING_USER="$USER"' there and running
> ./bootstrap then yields
>
> checking that calling user is not root... ok
>
> and the package builds fine (done with autoconf 2.69; maybe its
> better to downgrade to 2.68 to keep the patch small).
>
Thanks for the investigation! Could you prepare patches for the affected
I can commit fixes to the git repositories if I can downgrade to
autoconf 2.68.
However, environ(7) says:
USER The name of the logged-in user (used by some BSD-derived pro‐
grams).
Therefore, I would say pbuilder is wrong with leaving $USER=root.
On the other hand, I cannot find any standard document specifying
$USER on the web,
http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap08.html
lists $USER, but does not say anything about its contents.
Bye,
Hendrik
Reply to: