all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Mark H Weaver <mhw@netris.org>
To: Pjotr Prins <pjotr.public12@thebird.nl>
Cc: guix-devel@gnu.org
Subject: Re: hydra.gnu.org now provides substitutes for ‘guix pull’
Date: Wed, 07 Nov 2018 19:03:36 -0500	[thread overview]
Message-ID: <874lcs305o.fsf@netris.org> (raw)
In-Reply-To: <20181107081909.x734ulafjlnzo2rv@thebird.nl> (Pjotr Prins's message of "Wed, 7 Nov 2018 09:19:09 +0100")

Hi Pjotr,

Pjotr Prins <pjotr.public12@thebird.nl> writes:

> Another thing I find a little strange. When I install a package or an
> environment it completes fine. When I add then --no-substitutes flag
> and it always builds stuff like openssl and libgcrypt, pango and such
> from source.
>
> I.e., it creates a build system (I suppose). If the install is
> complete it should not have to do that. 
>
> Even if I do 
>
>   guix environment -C guix
>
> (which should include a build system, right?) and after completion
> run the same with --no-substitutes it starts to build right away.
>
> Any thoughts on that?

My first guess is that it has to do with grafting.  If I'm not mistaken,
in order to generate a graft derivation (.drv file), we need to know
which store items are referenced in the ungrafted outputs.  When
substitutes are enabled, Guix can get the lists of references from the
substitute servers.  When --no-substitutes is passed, and the ungrafted
outputs are not in the local store, they must be locally built in order
to determine the set of references.

Or at least that's my guess.  Ludovic could answer more definitively, as
he wrote the relevant code.

       Mark

  parent reply	other threads:[~2018-11-08  0:04 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-22  7:32 hydra.gnu.org now provides substitutes for ‘guix pull’ Ludovic Courtès
2018-06-26 11:16 ` swedebugia
2018-06-27 20:23   ` Ludovic Courtès
2018-10-15  7:41 ` Pjotr Prins
2018-10-15 10:16   ` Ludovic Courtès
2018-11-03 14:19     ` Pjotr Prins
2018-11-06 13:30       ` Ludovic Courtès
2018-11-06 15:55         ` Pjotr Prins
2018-11-07  8:19           ` Pjotr Prins
2018-11-07 11:39             ` Unexpected building of dependencies Ricardo Wurmus
2018-11-08  0:03             ` Mark H Weaver [this message]
2018-11-07 22:03           ` hydra.gnu.org now provides substitutes for ‘guix pull’ Ludovic Courtès

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=874lcs305o.fsf@netris.org \
    --to=mhw@netris.org \
    --cc=guix-devel@gnu.org \
    --cc=pjotr.public12@thebird.nl \
    /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.