unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Nikita Karetnikov <nikita@karetnikov.org>
Cc: guix-devel@gnu.org
Subject: Re: Proposal: prefetch tarballs in a batch
Date: Fri, 28 Mar 2014 14:23:35 +0100	[thread overview]
Message-ID: <877g7epico.fsf@gnu.org> (raw)
In-Reply-To: <87ha6jkyv8.fsf@karetnikov.org> (Nikita Karetnikov's message of "Fri, 28 Mar 2014 03:25:47 +0400")

Nikita Karetnikov <nikita@karetnikov.org> skribis:

> By default, Guix fetches source tarballs on demand.  You download a
> tarball, configure and install, move to the next one, and so on.  But it
> may be useful to fetch all the prerequisites before building.
>
> For instance, you travel frequently and don’t usually have Internet
> access.  So it’d be nice to do something like ‘guix package
> –install={foo,bar,baz}’ at home, run ‘pm-hibernate’ at some point, hop
> on a train, and continue building if the sources got downloaded.
>
> Actaully, the last part made me realize that it may be better to have a
> separate script for downloading.  After all, we’d like to ensure that
> the tarballs were fetched, or the train ride would be boring.  On IRC,
> Ludo suggested to add a new option to ‘guix build’, how hard would it
> be?

My first reaction was that, often

  guix build -S foo bar baz

would be enough.  However, it doesnt’t download the sources of
prerequisites.

So, what I had in mind is something like, say:

  guix prefetch foo bar baz

which would prefetch the sources of foo, bar, and baz, plus the sources
of any missing prerequisites.

The simplest way to do it would be by walking the package DAG: start
from ‘foo’, accumulate its ‘package-source’, then traverse its inputs,
etc.  Recursion would stop at the implicit inputs (GCC, glibc,
Coreutils, etc.), though.

If you’d like implicit inputs to be taken into account, then you’d have
to traverse derivations.  It’s less convenient because it’s lower-level.

WDYT?

Ludo’.

  reply	other threads:[~2014-03-28 13:23 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-27 23:25 Proposal: prefetch tarballs in a batch Nikita Karetnikov
2014-03-28 13:23 ` Ludovic Courtès [this message]
2014-04-01 23:23   ` Nikita Karetnikov
2014-04-02 12:57     ` Ludovic Courtès
2014-04-02 22:37       ` Nikita Karetnikov
2014-04-03  7:24         ` Ludovic Courtès
2014-04-09 22:29           ` Nikita Karetnikov
2014-04-10  8:21             ` Ludovic Courtès
2014-04-12 20:19               ` Nikita Karetnikov
2014-04-12 22:44                 ` Ludovic Courtès
2014-04-24 21:20                   ` Nikita Karetnikov
2014-04-25 11:51                     ` Ludovic Courtès
2014-04-25 12:04                     ` Ludovic Courtès
2014-05-06 12:37                       ` Nikita Karetnikov
2014-05-06 20:02                         ` Ludovic Courtès
2014-05-07 23:14                           ` Nikita Karetnikov
2014-05-08 16:35                             ` Ludovic Courtès
2014-05-11 14:52                               ` Nikita Karetnikov
2014-05-11 19:17                                 ` Ludovic Courtès
2014-09-02 21:06                                   ` Ludovic Courtès
2014-09-02 22:05                                     ` Nikita Karetnikov
2014-09-02 21:04                               ` 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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=877g7epico.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=nikita@karetnikov.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).