From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:55065) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hnQRr-0006YL-3F for guix-patches@gnu.org; Tue, 16 Jul 2019 12:37:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hnQRq-0006Sg-2E for guix-patches@gnu.org; Tue, 16 Jul 2019 12:37:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42237) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hnQRp-0006ST-Tl for guix-patches@gnu.org; Tue, 16 Jul 2019 12:37:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hnQRp-00064n-Ny for guix-patches@gnu.org; Tue, 16 Jul 2019 12:37: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 18:36:35 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <7CE61390-AB3B-42B9-B453-3C9D1FDD10D2@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. Thanks, I=E2=80=99ll give that a shot! There=E2=80=99s something I don=E2=80=99t understand: Comments above the = definition of ghc-7 mention test failures, particularly one of these (posix010): ;; - Test posix010 tries to check the existence of a user on the system: ;; getUserEntryForName: does not exist (no such user) But I don=E2=80=99t see any place in the definitions of any of the GHC = packages (ghc-7, ghc-8.0, ghc-8.4) that patch any tests out, and tests aren=E2=80=99= t disabled either. So how can these packages apparently be fine?