guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hydra.gnu.org now provides substitutes for ‘guix pull’


From: Mark H Weaver
Subject: Re: hydra.gnu.org now provides substitutes for ‘guix pull’
Date: Wed, 07 Nov 2018 19:03:36 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Hi Pjotr,

Pjotr Prins <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]