GNU bug report logs - #56799
(gnu services configuration) usage of *unspecified* is problematic

Previous Next

Package: guix;

Reported by: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Date: Wed, 27 Jul 2022 16:25:02 UTC

Severity: important

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Maxime Devos <maximedevos <at> telenet.be>
To: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>, 56799 <at> debbugs.gnu.org
Subject: bug#56799: [PATCH v2] gexp: Handle *unspecified* as a gexp input.
Date: Wed, 27 Jul 2022 23:43:55 +0200
[Message part 1 (text/plain, inline)]
On 27-07-2022 22:20, Maxim Cournoyer wrote:

> Fixes <https://issues.guix.gnu.org/56799>.
>
> * guix/gexp.scm (gexp->sexp)[*unspecified*]: Quote value when encountering it.

I recommend writing a test case -- this patch does not actually do that.

Instead, it returns the symbol x.

In a ./pre-inst-env guix repl:

> scheme@(guix-user)> ,use (guix)
> scheme@(guix-user)> ,m (guix gexp)
> scheme@(guix gexp)> ,enter-store-monad
> store-monad@(guix gexp) (gexp->sexp #~(list #$*unspecified*) 
> "x86_64-linux" "aarch64-linux-gnu")
> $1 = (list x)
I don't know what exact semantics you had in mind but probably not this.

Greetings,
Maxime.
[OpenPGP_0x49E3EE22191725EE.asc (application/pgp-keys, attachment)]
[OpenPGP_signature (application/pgp-signature, attachment)]

This bug report was last modified 2 years and 327 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.