[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#73073] [PATCH v3 2/8] gnu: gnome-recipes: Move libgd origin from ph
From: |
Maxim Cournoyer |
Subject: |
[bug#73073] [PATCH v3 2/8] gnu: gnome-recipes: Move libgd origin from phases to native-inputs. |
Date: |
Sun, 15 Dec 2024 11:42:27 +0900 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Hi,
Simon Tournier <zimon.toutoune@gmail.com> writes:
> Hi,
>
> On Thu, 12 Dec 2024 at 23:18, Liliana Marie Prikler
> <liliana.prikler@gmail.com> wrote:
>
>>> > > + (file-name (git-file-name "libgd" version))
>>> >
>>> > Not sure what the state of this is here, but again noting that
>>> > "version" has no meaning in the libgd input and "checkout" would be
>>> > more honest.
>>>
>>> You’re right, though packages do have a ‘version’ field; use of
>>> ‘git-file-name’ here follows established convention in Guix.
>>
>> Does it? Assume libfoo 3.0 and libbar 0.1.0 pull in the same libgd.
>> What happens?
>
> Not sure it really matter since it’s a fixed output. The item reads:
>
> /gnu/store/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-libgd-YYYY
>
> where xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx is determined by the SHA256
> checksum. Therefore, YYYY can be anything, it does not really matter.
>
> At worse, the item is downloaded several times, say by libfoo 3.0 and
> libbar 0.1.0.
>
> All in all, I agree that the best solution here is simply:
>
> (file-name "libgd-checkout")
Not sure I understand the full context, but it seems we're talking about
a package generator that bakes a version to some source input which is
not the version of the source itself. Could the source/origin be
defined as a variable with the correct version and then simply provided
to the package? It'snice for store file names to tell the real story in
general, as it makes things a bit clearer when debugging problems.
Apologies if I misunderstood something.
--
Thanks,
Maxim
- [bug#73073] [PATCH v3 1/8] packages: Use origin file names as their input labels., (continued)
- [bug#73073] [PATCH v3 4/8] gnu: smithforth: Move system.fs origin from phases to native-inputs., Ludovic Courtès, 2024/12/04
- [bug#73073] [PATCH v3 3/8] gnu: dmd-bootstrap: Move phobos origin from phases to native-inputs., Ludovic Courtès, 2024/12/04
- [bug#73073] [PATCH v3 6/8] gnu: gnulib: Move phobos origin from phases to native-inputs., Ludovic Courtès, 2024/12/04
- [bug#73073] [PATCH v3 7/8] gnu: git: Move git-manpages origin from phases to native-inputs., Ludovic Courtès, 2024/12/04
- [bug#73073] [PATCH v3 2/8] gnu: gnome-recipes: Move libgd origin from phases to native-inputs., Ludovic Courtès, 2024/12/04
- [bug#73073] [PATCH v3 2/8] gnu: gnome-recipes: Move libgd origin from phases to native-inputs., Ludovic Courtès, 2024/12/15
[bug#73073] [PATCH v3 8/8] gnu: cgit: Remove input labels., Ludovic Courtès, 2024/12/04
[bug#73073] [PATCH v3 5/8] gnu: farstream: Move common origin from phases to native-inputs., Ludovic Courtès, 2024/12/04
bug#73073: [PATCH v3 0/8] Support lookups of origins used as package inputs, Ludovic Courtès, 2024/12/15