[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Proposal: prefetch tarballs in a batch
From: |
Ludovic Courtès |
Subject: |
Re: Proposal: prefetch tarballs in a batch |
Date: |
Wed, 02 Apr 2014 14:57:09 +0200 |
User-agent: |
Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux) |
Nikita Karetnikov <address@hidden> skribis:
>> 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.
>
> Is there a function that accepts a package name and returns a list of
> implicit inputs?
No, because by definition, those “implicit inputs” are not listed in the
package object. Instead, they are added by the build system (see
build-system/gnu.scm.)
That’s why I suggested using derivations instead: take the output of
(package-derivation x y), and traverse it in search of fixed-output
derivations.
But again, that’s a bit of a sledgehammer, and somewhat inconvenient to
do at the moment.
Ludo’.
- Re: Proposal: prefetch tarballs in a batch, Nikita Karetnikov, 2014/04/01
- Re: Proposal: prefetch tarballs in a batch,
Ludovic Courtès <=
- Re: Proposal: prefetch tarballs in a batch, Nikita Karetnikov, 2014/04/02
- Re: Proposal: prefetch tarballs in a batch, Ludovic Courtès, 2014/04/03
- Re: Proposal: prefetch tarballs in a batch, Nikita Karetnikov, 2014/04/09
- Re: Proposal: prefetch tarballs in a batch, Ludovic Courtès, 2014/04/10
- Re: Proposal: prefetch tarballs in a batch, Nikita Karetnikov, 2014/04/12
- Re: Proposal: prefetch tarballs in a batch, Ludovic Courtès, 2014/04/12
- Re: Proposal: prefetch tarballs in a batch, Nikita Karetnikov, 2014/04/24
- Re: Proposal: prefetch tarballs in a batch, Ludovic Courtès, 2014/04/25
- Re: Proposal: prefetch tarballs in a batch, Ludovic Courtès, 2014/04/25