From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 4JFPOVgmgWNI8gAAbAwnHQ (envelope-from ) for ; Fri, 25 Nov 2022 21:32:25 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 4KNMOVgmgWM2lQAAauVa8A (envelope-from ) for ; Fri, 25 Nov 2022 21:32:24 +0100 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 8905E16FC7 for ; Fri, 25 Nov 2022 21:32:24 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oyfMj-0004Fr-DH; Fri, 25 Nov 2022 15:32:05 -0500 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 1oyfMh-0004Cl-Aa for bug-guix@gnu.org; Fri, 25 Nov 2022 15:32:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oyfMh-00015i-27 for bug-guix@gnu.org; Fri, 25 Nov 2022 15:32:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oyfMg-0002df-GC for bug-guix@gnu.org; Fri, 25 Nov 2022 15:32:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#59423: Invalid 'location' field generated in dovecot configuration Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 25 Nov 2022 20:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59423 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxim Cournoyer Cc: Pierre Langlois , 59423@debbugs.gnu.org Received: via spool by 59423-submit@debbugs.gnu.org id=B59423.166940826710080 (code B ref 59423); Fri, 25 Nov 2022 20:32:02 +0000 Received: (at 59423) by debbugs.gnu.org; 25 Nov 2022 20:31:07 +0000 Received: from localhost ([127.0.0.1]:37279 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oyfLj-0002cR-FG for submit@debbugs.gnu.org; Fri, 25 Nov 2022 15:31:07 -0500 Received: from mout.gmx.net ([212.227.17.22]:33683) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oyfLe-0002bu-Jm for 59423@debbugs.gnu.org; Fri, 25 Nov 2022 15:31:02 -0500 Received: from labiere ([82.69.64.142]) by mail.gmx.net (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id 1Mqs4f-1ocVjO3zmr-00mpSe; Fri, 25 Nov 2022 21:30:52 +0100 References: <87y1s5wa4p.fsf@gmx.com> <87v8n2iytp.fsf@gmail.com> User-agent: mu4e 1.8.11; emacs 28.2 From: Pierre Langlois Date: Fri, 25 Nov 2022 20:25:33 +0000 In-reply-to: <87v8n2iytp.fsf@gmail.com> Message-ID: <875yf293ph.fsf@gmx.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Provags-ID: V03:K1:MhMxAPmUE+vOq6oLnO2/ZjQqpv65I7U5r29aRKsdpedF2MWzRsU umHxrN5zZGvn9Hi8yvhtERACQy+DA6NMsdl12ztQaH+yaPiWI+6mvEmULFyKLGEJjYDSXZx 4zcoXzgo71R1oxNGb7xvhPROgb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/T/kPpc6dXERLNVUCPVTRPwQ WZPD3X+GnK7TqIrQdpnPHccs7sU= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1669408344; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=iu46o6AXSI5QBl3uN/tp6FRFFLSNPYkBviz6EXEuStc=; b=XbDFy/68NTpn4CR0O4w66SHGm3GP1lq3gEJxwtqpUAPEJIPEGc3TeZC95J5r4fhjPwgXHn EIx0JGfv1bjwjK1uJJZJGQRf1ejttMzhvpL68IdY7/lJFvfNsDQokLsrf+BrYT3sMtow7t 2po+kHHgsZ6VtGAOxDeil/++U4FDxhTV5xxAMsunLLQe1mUXD1MkLj7zFZpVeAksr2HMGO JA7n9b451d8sp20f0YDq/agCpL82GsqTj3SFnflUE9+6btTDFIQtjq1nVJ1Sy3klUrRDxi r5gBlt48SMPfyZtoLxmCw9j/osU3bMkgFzyNUhqOALvKYLuFx1IVmh8u2RPjYQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669408344; a=rsa-sha256; cv=none; b=IIjHIqB3HiaPbUDwvqGiGxXCZqxqdZ/wwA3FP4I2R627W1WaECTpkp0A9IGTicGzNXyU/5 g0sBthSzIsFMVFGDdN5B9Jk6tpEb3PowkZoZDO4JeUbeW3Uhi2W3P2GaQLNyneXH7g6sfK OYLnpI7t+CxpiZgSJToJRzoREa6wXnMkGC9qhN2anqF89tY9Vw2ojZ8HCyBBm824t3vEDX C9tz09jFsBF03Hcl8ZcvSwl+6c43Ayxad33dNzamh4OskZIWMXJ83PAoJypZyNsA4NTEX/ ioM3yvNmYpH+kd52V2EcxuUIg0yJblCxwBJkTYjsO6rSXc7A2eKWuzePTc9DiA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmx.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -0.17 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmx.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 8905E16FC7 X-Spam-Score: -0.17 X-Migadu-Scanner: scn1.migadu.com X-TUID: TDN+PV7i8gNH --=-=-= Content-Type: text/plain Maxim Cournoyer writes: > Hi Pierre, > > Pierre Langlois writes: > >> Hi Guix! >> >> After updating the system, the dovecot service got confused and started >> moving around all mailboxes. I looked up the configuration and noticed >> strange invalid syntax for the location field: >> >> location=#< file: "path/to/config.scm" line: 297 column: 20> >> >> >> Because the # character is interpreted as a comment, dovecot doesn't >> crash and instead moves mailboxes around in weird ways I don't quite >> understand :-/. >> >> This can actually be reproduced locally with the dovecot system test if >> one dumps the following expression to check the configuration: >> >> (format #t "~a\n" (wait-for-file "/etc/dovecot/dovecot.conf" >> marionette >> #:read 'get-string-all)) >> >> >> Giving us the snippets like this in the config: >> >> $ make check-system TESTS="dovecot" VERBOSE=1 >> ... >> namespace inbox { >> type=private >> separator= >> prefix= >> location=#< file: "gnu/tests/mail.scm" line: 297 column: 20> >> inbox=yes >> hidden=no >> list=yes >> subscriptions=yes >> mailbox "Drafts" { >> auto=no >> special_use=\Drafts >> } >> mailbox "Junk" { >> auto=no >> special_use=\Junk >> } >> mailbox "Trash" { >> auto=no >> special_use=\Trash >> } >> mailbox "Sent" { >> auto=no >> special_use=\Sent >> } >> mailbox "Sent Messages" { >> auto=no >> special_use=\Sent >> } >> mailbox "Drafts" { >> auto=no >> special_use=\Drafts >> } >> } > > I did: > > $ ./pre-inst-env guix system build -e '(@@ (gnu tests mail) %dovecot-os)' > /gnu/store/gpl6g2ia84kc41zma7ik9y4p3kik5aiy-system > > Then: > > $ guix gc -R /gnu/store/gpl6g2ia84kc41zma7ik9y4p3kik5aiy-system | grep dovecot.conf > /gnu/store/1ijjsm3sj8v0qj88fhlwqxgdszd6q6h7-dovecot.conf Oh that's a nice way of doing this, better than my hack to print the config, I'll have to remember the `guix gc -R' flag. > > And what I see in this file is now: > > namespace inbox { > type=private > separator= > prefix= > location= > inbox=yes > hidden=no > list=yes > subscriptions=yes > mailbox "Drafts" { > auto=no > special_use=\Drafts > } > mailbox "Junk" { > auto=no > special_use=\Junk > } > mailbox "Trash" { > auto=no > special_use=\Trash > } > mailbox "Sent" { > auto=no > special_use=\Sent > } > mailbox "Sent Messages" { > auto=no > special_use=\Sent > } > mailbox "Drafts" { > auto=no > special_use=\Drafts > } > } > > Notice that location is empty. So that's at least different to your > findings, on latest commit. Can you still reproduce? Yeah I'm afraid I still see the same issue after a `git pull` just now: --8<---------------cut here---------------start------------->8--- ~/code/guix [env]$ ./pre-inst-env guix system build -e '(@@ (gnu tests mail) %dovecot-os)' /gnu/store/ayfvf5s561q955kv8wrkklrvq3ga3qpy-system ~/code/guix [env]$ guix gc -R /gnu/store/ayfvf5s561q955kv8wrkklrvq3ga3qpy-system | grep dovecot\.conf | xargs grep "^location" location=#< file: "gnu/tests/mail.scm" line: 297 column: 20> --8<---------------cut here---------------end--------------->8--- Have you tried to rebuild from scratch, after a `make clean-go'? When first bisecting this, I was working from the git repo and couldn't reproduce the bug. Then it worked by using `guix time-machine' to bisect rather than work from git. So I'm guessing the change being in a macro, there could be residue .go files that need recompiling? Thanks, Pierre --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFMBAEBCgA2FiEEctU9gYy29KFyWDdMqPyeRH9PfVQFAmOBJfoYHHBpZXJyZS5s YW5nbG9pc0BnbXguY29tAAoJEKj8nkR/T31U3P4H/0ApOSqGrM1iinCzwvVjtgLz kl4wDXn9PMjrKVPrrGLl4qmyg7Oz26WRHWtfXpeXZLOAhhMqoYwKJaaYV2wkhif+ 5NyI9DX/3Z6Z6C5TKjEO8BTU3ou1SC6TEfjHvD1MjGy98Pqz6Ws8y+XvzzgCU2qm MU1zY+0yKNMlbZgdPWFeXUOCiQdBaE+bwKHljz1ISbKvQe/mxFkKhEGHffK0Wav3 8p6Vft96EgBVw9nyk3/FIMv01rRuZlZVjeIwMP8mlu8NNIp/sPKTMlNs+nrdug8c zftEvS+KNGHJqNLiYe8hfardpmbCYTQudi98aGpX2hOrS0QUs2wWGpP+R71moyY= =JqW+ -----END PGP SIGNATURE----- --=-=-=--