From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Accessing derivation build chroot Date: Tue, 21 Jan 2014 14:16:56 +0100 Message-ID: <87sishiiev.fsf@gnu.org> References: <52DE3FE0.7080504@totakura.in> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56613) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5bHH-0005I7-W0 for guix-devel@gnu.org; Tue, 21 Jan 2014 08:22:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W5bHB-0006sg-QE for guix-devel@gnu.org; Tue, 21 Jan 2014 08:22:03 -0500 Received: from hera.aquilenet.fr ([141.255.128.1]:35871) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5bHB-0006sc-IC for guix-devel@gnu.org; Tue, 21 Jan 2014 08:21:57 -0500 In-Reply-To: <52DE3FE0.7080504@totakura.in> (Sree Harsha Totakura's message of "Tue, 21 Jan 2014 10:37:36 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Sree Harsha Totakura Cc: guix-devel@gnu.org Sree Harsha Totakura skribis: > I want to debug why a testcase from inetutils package fails. For > this, I am running 'make check' in the derivation build directory > '/tmp/nix-build-inetutils..drv-1' after sourcing a new bash with the > 'environmental-variables' file present in the same directory. > However, here the tests pass. So I came to the conclusion that > something is amiss in the chroot used to build this derivation. Any > hints to how I can access the chroot to run the tests from there? Accessing the chroot is not really possible. I would first check some of the common problems, which includes use of absolute file names such as /bin/sh or /usr/bin/env, use of reverse DNS lookups (as discussed here recently), or use DNS lookups or network access in general. Commit 6dc9931 added details in the manual about what=E2=80=99s in the chro= ot. If you need more details, then I suggest looking at nix/libstore/build.cc::initChild, which sets up the build environment. HTH! Ludo=E2=80=99.