GNU bug report logs -
#53657
inconsistent parsing of the channel sexp's
Previous Next
Reported by: Attila Lendvai <attila <at> lendvai.name>
Date: Mon, 31 Jan 2022 12:31:02 UTC
Severity: normal
Tags: notabug
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 53657 in the body.
You can then email your comments to 53657 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#53657
; Package
guix
.
(Mon, 31 Jan 2022 12:31:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Attila Lendvai <attila <at> lendvai.name>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Mon, 31 Jan 2022 12:31:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
pull.scm does this with channel files, e.g. with /etc/guix/channels.scm:
(load* file (make-user-module '((guix channels))))
i.e. this way field values are EVAL'd. beside the big can of worms that this opens up, it also means that e.g. the name field must be quoted: (name 'guix).
then at other occurrences of channels, an sexp parser is used to read them, e.g. in the 'dependencies field of a .guix-channel entry. see READ-CHANNEL-METADATA in guix/channels.scm.
here the name field is not EVAL'd, and thus it must be specified without quotes: (name guix).
this leads to an actual issue that channel dependencies don't match up, unless the name is without quotes in the dependencies list specification.
--
• attila lendvai
• PGP: 963F 5D5F 45C7 DFCD 0A39
--
“Awareness isn’t something we own; awareness isn’t something we possess. Awareness is actually what we are.”
— Adyashanti (1962–)
Information forwarded
to
bug-guix <at> gnu.org
:
bug#53657
; Package
guix
.
(Tue, 01 Feb 2022 14:45:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 53657 <at> debbugs.gnu.org (full text, mbox):
Thanks for the bug report.
I feel like I’m missing something here.
> this leads to an actual issue that channel dependencies don't match up,
> unless the name is without quotes in the dependencies list
> specification.
I don’t understand what it means for “channel dependencies” to “match
up”. How is this an issue?
I’ll say that I agree that there’s an apparent inconsistency (as
evidenced also by commit 52e64b21be50e2c5febd7bf1accd88ffdc05a4bb, which
corrected a mistake in the documentation that used an explicit quote), I
just don’t see yet how it leads to a practical problem.
Could you please elaborate?
--
Ricardo
Information forwarded
to
bug-guix <at> gnu.org
:
bug#53657
; Package
guix
.
(Wed, 02 Mar 2022 10:46:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 53657 <at> debbugs.gnu.org (full text, mbox):
Hi,
Attila Lendvai <attila <at> lendvai.name> skribis:
> pull.scm does this with channel files, e.g. with /etc/guix/channels.scm:
>
> (load* file (make-user-module '((guix channels))))
>
> i.e. this way field values are EVAL'd. beside the big can of worms that this opens up, it also means that e.g. the name field must be quoted: (name 'guix).
>
> then at other occurrences of channels, an sexp parser is used to read them, e.g. in the 'dependencies field of a .guix-channel entry. see READ-CHANNEL-METADATA in guix/channels.scm.
>
> here the name field is not EVAL'd, and thus it must be specified without quotes: (name guix).
>
> this leads to an actual issue that channel dependencies don't match up, unless the name is without quotes in the dependencies list specification.
Yes, but that’s okay: the ‘.guix-channel’ file has a syntax that looks
similar but is different from that of ‘~/.config/guix/channels.scm’, as
you explained (and as the manual explains, I think.) This is on
purpose.
I understand it might look confusing but I’m not sure there’s much we
can do.
Thoughts?
Ludo’.
Added tag(s) notabug.
Request was from
Ludovic Courtès <ludo <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Wed, 02 Mar 2022 10:46:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
53657 <at> debbugs.gnu.org and Attila Lendvai <attila <at> lendvai.name>
Request was from
Ludovic Courtès <ludo <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Wed, 02 Mar 2022 10:46:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 30 Mar 2022 11:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 84 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.