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


Message #32 received at 56799 <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: 56799 <at> debbugs.gnu.org
Cc: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Subject: [PATCH v2] gexp: Handle *unspecified* as a gexp input.
Date: Wed, 27 Jul 2022 16:20:10 -0400
Fixes <https://issues.guix.gnu.org/56799>.

* guix/gexp.scm (gexp->sexp)[*unspecified*]: Quote value when encountering it.
---
 guix/gexp.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/guix/gexp.scm b/guix/gexp.scm
index ef92223048..e05aed6f32 100644
--- a/guix/gexp.scm
+++ b/guix/gexp.scm
@@ -1380,6 +1380,8 @@ (define* (reference->sexp ref #:optional native?)
                                 #:output output)))
         (($ <gexp-input> (? self-quoting? x))
          (return x))
+        (($ <gexp-input> (? unspecified? x))
+         (return (quote x)))
         (($ <gexp-input> x)
          (raise (condition (&gexp-input-error (input x)))))
         (x
-- 
2.36.1





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

Previous Next


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