Re: package builds crashing under fakeroot
On 3 October 2016 at 16:50, Alastair McKinstry <email@example.com> wrote:
> In OpenMPI 2.0, Michael Banck discovered that some of the packages that
> failed were doing so as openmpi no longer works under fakeroot.
> Upstream (Gilles Gouaillaerdet) point out:
> from validate_cred in opal/mca/pmix/pmix112/pmix/src/sec/pmix_native.c
> getsockopt (peer->sd, SOL_SOCKET, SO_PEERCRED, &ucred, &crlen);
> my understanding is that fakeroot tricks the processes into believing they
> are ran as root,
> as such, orted expects a connection from root (e.g. ucred.uid is 0)
> /* in singleton mode, an orted is fork&exec'ed under the hood */
> but fakeroot cannot trick getsockopt, which returns the user (non zero)
> So its a legitimate tightening of credential-checking in pmix. However it
> causes problems for us running tests under binary-arch.
> What do DDs think should be done about this - move all tests outside
OOI, does it build with pseudo instead of fakeroot?