all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Sree Harsha Totakura <sreeharsha@totakura.in>
Cc: guix-devel@gnu.org
Subject: Re: Accessing derivation build chroot
Date: Tue, 21 Jan 2014 14:16:56 +0100	[thread overview]
Message-ID: <87sishiiev.fsf@gnu.org> (raw)
In-Reply-To: <52DE3FE0.7080504@totakura.in> (Sree Harsha Totakura's message of "Tue, 21 Jan 2014 10:37:36 +0100")

Sree Harsha Totakura <sreeharsha@totakura.in> 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’s in the chroot.
If you need more details, then I suggest looking at
nix/libstore/build.cc::initChild, which sets up the build environment.

HTH!

Ludo’.

      reply	other threads:[~2014-01-21 13:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-21  9:37 Accessing derivation build chroot Sree Harsha Totakura
2014-01-21 13:16 ` Ludovic Courtès [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sishiiev.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=sreeharsha@totakura.in \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.