From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:41715) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hnShD-0005sx-W4 for guix-patches@gnu.org; Tue, 16 Jul 2019 15:01:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hnShC-0002sy-PY for guix-patches@gnu.org; Tue, 16 Jul 2019 15:01:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42312) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hnShB-0002s4-Qh for guix-patches@gnu.org; Tue, 16 Jul 2019 15:01:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hnShB-0001qk-NW for guix-patches@gnu.org; Tue, 16 Jul 2019 15:01:01 -0400 Subject: [bug#36692] test failures Resent-Message-ID: Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) From: Robert Vollmert In-Reply-To: <87tvbm54gm.fsf@devup.no> Date: Tue, 16 Jul 2019 21:00:31 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <60B55E47-6B11-43B1-B78D-665F903F9CE4@vllmrt.net> References: <20190716154734.22605-1-rob@vllmrt.net> <1A10CE34-C9D6-4ECD-AA58-C7681043EBEF@vllmrt.net> <87tvbm54gm.fsf@devup.no> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Marius Bakke Cc: 36692@debbugs.gnu.org > On 16. Jul 2019, at 18:28, Marius Bakke wrote: >=20 > Robert Vollmert writes: >=20 >> I was able to run both tests from the build directory in /tmp, >> and they both passed fine. Also they both involve user ids, I >> suspect those might differ in the build container? >>=20 >> main =3D do >> void $ forkIO $ forever $ getGroupEntryForID 0 >> void $ forkIO $ forever $ getGroupEntryForID 0 >> threadDelay (3*1000*1000) >>=20 >> main =3D do >> root <- getUserEntryForName "root" >> putStrLn (ue2String root) >> root' <- getUserEntryForID (userID root) >> putStrLn (ue2String root') >> if homeDirectory root =3D=3D homeDirectory root' && >> userShell root =3D=3D userShell root' >> then putStrLn "OK" >> else putStrLn =E2=80=9CMismatch" >=20 > The only reliable user ID available in the build container is 'nobody' > with UID and GID 65534 and the (see nix/libstore/build.cc:1862). >=20 > You can likely patch these tests to refer to that instead. I chose to skip them instead =E2=80=94 specializing them to nobody/65534 = doesn=E2=80=99t seem helpful in the end.