From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id uPJ9BByQJWWYuAAAauVa8A:P1 (envelope-from ) for ; Tue, 10 Oct 2023 19:55:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id uPJ9BByQJWWYuAAAauVa8A (envelope-from ) for ; Tue, 10 Oct 2023 19:55:40 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CA1CA3BDCB for ; Tue, 10 Oct 2023 19:55:39 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=fabionatali.com header.s=gm1 header.b=aXQ1pU6R; dmarc=pass (policy=reject) header.from=fabionatali.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1696960539; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=A9qTFAiQhMIwlQPLhozw23TJrVVcYW/tTqpwKW6OMhw=; b=uDztuT5WSN56vh6KPaxV/Wnd5VIOyfdNT9vUOxw8I4lQxr3Q6HCJU9F1vIewxoCCET7zz5 cX42kJ9Q5OT33idLV6gtnxbgo0XPUcHaWdW99RTz0HUX6BDD7ZVlKBSHENaHDdzFIXjgf4 3JaoIShwLz4UVdEZJXb4O4m+q/NhBLHoRgtMJrw+kvchsrcDVpMDLQ2/PfHZArTUch4eZ2 M9bNCMkj8+B0ozdYDFtsjjeyjkWuFrbcVdibhKAoQuDBgzHsZSJy7Hm0FKROWudATokkZe 26x6kRMMlRANFCiz6dAgqY8iChGwlHuJYVywmxkMJjPVO5oA3lNrZAtFM63qgg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=fabionatali.com header.s=gm1 header.b=aXQ1pU6R; dmarc=pass (policy=reject) header.from=fabionatali.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1696960539; a=rsa-sha256; cv=none; b=NnVBu5jvLIaGScR4+4nx5mGinbF2UVtXnzlxQCyGiX0UARiELD5twH/mSlJCYVRQwXrTQJ gjyWjqoU0lQ0LCttaWn0DwsBUH71EkF4XNhbvlJ94DjOzoi2j21sLPsprxfJHKZ+EkMW2i vAyLw0/NagjMvGSQxr+tC/J2IYgFf+bQd7MIXxnmxpRaFN3Hi0kPC3938DfM5S3AWi6y48 WGMKhKBjX+onsuHL4SwUVBn2RkY+oHoRfLxLfhZ5TQR/ByMi4WbUyL9csjtnwrOsJwLrLY M58k8gP0Rul3rsodtVuXTepsiRl7Uk0gVW0KH/9eLDn/jQGF4rnVCB9jBX490A== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qqGwk-0005fm-1Y; Tue, 10 Oct 2023 13:55:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qqGwh-0005fP-CU for help-guix@gnu.org; Tue, 10 Oct 2023 13:55:04 -0400 Received: from relay6-d.mail.gandi.net ([2001:4b98:dc4:8::226]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qqGwe-0002bL-P5 for help-guix@gnu.org; Tue, 10 Oct 2023 13:55:03 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id DA82AC000C for ; Tue, 10 Oct 2023 17:54:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fabionatali.com; s=gm1; t=1696960495; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=A9qTFAiQhMIwlQPLhozw23TJrVVcYW/tTqpwKW6OMhw=; b=aXQ1pU6RqgOFTw1VOvleLaLzP2jNcm0b8Gts5xGJGb0ZdHuo2xmCTkX7AzV61dEv88phAs HsLGO6eltbDmtg8g57clMY4RXRCm9aVJb5N6pt5hzPGnOFBWg6zOa3vgJV+z4izffqGEa1 aII7sKiADbxbJmda6XoWL6rg/qbSRWPqj4iy0b6z9tUMi4Xms16PcpenhHu/FuNT03qrhm k+Vs76zyfXK89xQdrx5mJartFhbHK1bakGkzSEdXBtdr1SA7py9PxBsQjSXVn0dLbP0x2G +tZ4MzL26aoLp4LnGDWTAh+AjO5yMtceBrgaBEiowy+zcvMpW8SWftxdPWh8uA== From: Fabio Natali To: help-guix@gnu.org Subject: G-exp that makes use of guile-ini Date: Tue, 10 Oct 2023 18:54:49 +0100 Message-ID: <87il7epdli.fsf@fabionatali.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: me@fabionatali.com Received-SPF: pass client-ip=2001:4b98:dc4:8::226; envelope-from=me@fabionatali.com; helo=relay6-d.mail.gandi.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -2.71 X-Spam-Score: -2.71 X-Migadu-Queue-Id: CA1CA3BDCB X-Migadu-Scanner: mx2.migadu.com X-TUID: RXsTY9p1S3ph Hi! =F0=9F=91=8B=F0=9F=8C=88 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 (computed-file "foo" (with-imported-modules '((guix build utils)) (with-extensions (list guile-ini guile-smc guile-lib) #~(begin (use-modules (guix build utils) (ini)) (call-with-output-file #$output (lambda (output) (format output (ini->scm #$(local-file "/tmp/config.ini")))))))))) foo #+end_src Here's the error I get when building the expression with =3Dguix build -f foo.scm=3D: #+begin_src text /gnu/store/7rscxhk9gzshkn6bq4nfrl9l6bp67w18-inetutils-2.3/bin/logger: canno= t connect: No such file or directory Backtrace: 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 (_ #(#(#) #)) In ini.scm: 47:20 4 (ini->scm _ #:read-comments? _ #:debug-mode? _) In smc/fsm.scm: 465:31 3 (_ # ?) In ice-9/boot-9.scm: 260:13 2 (for-each # ?) 260:13 1 (for-each # ?) In smc/core/log.scm: 165:6 0 (_ _ _ _ _) smc/core/log.scm:165:6: Could not log a message #+end_src 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 builder - this could be a bug (or a little imperfection) in either guile-ini or guile-smc? Any other idea? Cheers, ta, Fabio.