[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#50620] [PATCH 1/2] guix: packages: Document 'computed-origin-method
From: |
zimoun |
Subject: |
[bug#50620] [PATCH 1/2] guix: packages: Document 'computed-origin-method'. |
Date: |
Thu, 30 Sep 2021 01:31:04 +0200 |
Hi,
On Thu, 30 Sep 2021 at 00:13, Liliana Marie Prikler <liliana.prikler@gmail.com>
wrote:
> C: Discuss the (gnu packages) vs. (guix packages) thing some more,
> merge this patch (with perhaps a move), update the guix package and
> then do a v2 of 50515.
This is the option I am for. Even, the patch is ready and waiting since
«Fri, 10 Sep 2021 18:01:22 +0200». ;-)
The patch reads:
--8<---------------cut here---------------start------------->8---
+ (if (eq? method (@@ (guix packages) computed-origin-method))
+ ;; Packages in gnu/packages/gnuzilla.scm and gnu/packages/linux.scm
+ ;; represent their 'uri' as 'promise'.
+ (match uri
+ ((? promise? promise)
[...]
+ (_ `((type . #nil))))))
+ ;;Regular packages represent 'uri' as string.
+ `((type . ,(cond ((or (eq? url-fetch method)
--8<---------------cut here---------------end--------------->8---
and I find better (guix packages) but I do not have a strong opinion; I
accepted previously in this thread to send a v2 with (gnu packages) or
whatever other location.
> WDYT? Does it make sense to do the "redundant test" [1], knowing that
> it'll be soon simplified?
I do not mind about option (2) which reads:
--8<---------------cut here---------------start------------->8---
+ (if (or (eq? method (@@ (gnu packages linux) computed-origin-method))
+ (eq? method (@@ (gnu packages gnuzilla) computed-origin-method)))
+ (match uri
+ ((? promise? promise)
[...]
+ (_ `((type . #nil))))))
+ ;;Regular packages represent 'uri' as string.
+ `((type . ,(cond ((or (eq? url-fetch method)
--8<---------------cut here---------------end--------------->8---
Whatever.
However, since it is me who takes care about how this sources.json is
generated, I find easier to have one location and forget about this
case. The only thing I am asking here with this patch 50620 is to
locate computed-origin-method to one unique place. If people strongly
disagree, then let do this option (2) and move on.
Last, I am confused why all this is so complicated when it is trivial
and for something outside Guix proper. I do not understand what we are
discussing when my request is trivial, IMHO.
This discussion has eaten all my energy allowed for Guix.
See you next week.
All the best,
simon
- [bug#50620] [PATCH 1/2] guix: packages: Document 'computed-origin-method'., (continued)
- [bug#50620] [PATCH 1/2] guix: packages: Document 'computed-origin-method'., zimoun, 2021/09/28
- [bug#50620] [PATCH 1/2] guix: packages: Document 'computed-origin-method'., Liliana Marie Prikler, 2021/09/28
- [bug#50620] [PATCH 1/2] guix: packages: Document 'computed-origin-method'., zimoun, 2021/09/29
- [bug#50620] [PATCH 1/2] guix: packages: Document 'computed-origin-method'., Liliana Marie Prikler, 2021/09/29
- [bug#50620] [PATCH 1/2] guix: packages: Document 'computed-origin-method'., zimoun, 2021/09/29
- [bug#50620] [PATCH 1/2] guix: packages: Document 'computed-origin-method'., Liliana Marie Prikler, 2021/09/29
- [bug#50620] [PATCH 1/2] guix: packages: Document 'computed-origin-method'., zimoun, 2021/09/29
- [bug#50620] [PATCH 1/2] guix: packages: Document 'computed-origin-method'., Liliana Marie Prikler, 2021/09/29
- [bug#50620] [PATCH 1/2] guix: packages: Document 'computed-origin-method'., zimoun, 2021/09/29
- [bug#50620] [PATCH 1/2] guix: packages: Document 'computed-origin-method'., Liliana Marie Prikler, 2021/09/29
- [bug#50620] [PATCH 1/2] guix: packages: Document 'computed-origin-method'.,
zimoun <=
- [bug#50620] [PATCH 1/2] guix: packages: Document 'computed-origin-method'., Mark H Weaver, 2021/09/29
- [bug#50620] [PATCH 1/2] guix: packages: Document 'computed-origin-method'., zimoun, 2021/09/29
- [bug#50620] [PATCH 1/2] guix: packages: Document 'computed-origin-method'., Liliana Marie Prikler, 2021/09/30
- [bug#50620] [PATCH 0/2] Unify 'computed-origin-method' (linux, icecat), Ludovic Courtès, 2021/09/29
- [bug#50620] [PATCH 0/2] Unify 'computed-origin-method' (linux, icecat), Liliana Marie Prikler, 2021/09/29
- [bug#50620] [PATCH 0/2] Unify 'computed-origin-method' (linux, icecat), Ludovic Courtès, 2021/09/29
- [bug#50620] [PATCH 0/2] Unify 'computed-origin-method' (linux, icecat), Liliana Marie Prikler, 2021/09/29
- [bug#50620] [PATCH 0/2] Unify 'computed-origin-method' (linux, icecat), Ludovic Courtès, 2021/09/30
- [bug#50620] [PATCH 0/2] Unify 'computed-origin-method' (linux, icecat), Liliana Marie Prikler, 2021/09/30
- [bug#50620] [PATCH 0/2] Unify 'computed-origin-method' (linux, icecat), Ludovic Courtès, 2021/09/30