[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

G-exp that makes use of guile-ini

From: Fabio Natali
Subject: G-exp that makes use of guile-ini
Date: Tue, 10 Oct 2023 18:54:49 +0100

Hi! 👋🌈

I've been struggling with the following g-expression that makes use of
the guile-ini library.

#+begin_src scheme :noeval
(use-modules (gnu packages guile-xyz)
             (guix gexp))

(define foo
   (with-imported-modules '((guix build utils))
     (with-extensions (list guile-ini guile-smc guile-lib)
           (use-modules (guix build utils)
           (call-with-output-file #$output
             (lambda (output)
               (format output
                       (ini->scm #$(local-file "/tmp/config.ini"))))))))))


Here's the error I get when building the expression with =guix build -f

#+begin_src text
/gnu/store/7rscxhk9gzshkn6bq4nfrl9l6bp67w18-inetutils-2.3/bin/logger: cannot 
connect: No such file or directory
           7 (primitive-load "/gnu/store/8bk15mj4w4065wzdl6kx7z4542a?")
In ice-9/ports.scm:
   433:17  6 (call-with-output-file _ _ #:binary _ #:encoding _)
In ice-9/eval.scm:
    159:9  5 (_ #(#(#<directory (guile-user) 7ffff77f7c80>) #<outp?>))
In ini.scm:
    47:20  4 (ini->scm _ #:read-comments? _ #:debug-mode? _)
In smc/fsm.scm:
   465:31  3 (_ #<fsm current-state: read statistics: 0/0 7ffff76dd?> ?)
In ice-9/boot-9.scm:
   260:13  2 (for-each #<procedure 7ffff784a420 at smc/core/log.scm?> ?)
   260:13  1 (for-each #<procedure 7ffff784a3f0 at smc/core/log.scm?> ?)
In smc/core/log.scm:
    165:6  0 (_ _ _ _ _)

smc/core/log.scm:165:6: Could not log a message

Any idea whether:

- this is guile-ini's expected behaviour, just set the scm logger to a
  value that makes sense in the context of the builder
- it's actually as easy as creating the missing folder in the builder
- make sure some logging facility (which one? :)) is available to the
- this could be a bug (or a little imperfection) in either guile-ini or

Any other idea?

Cheers, ta, Fabio.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]