From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id IJpEOEIrgWO5XQEAbAwnHQ (envelope-from ) for ; Fri, 25 Nov 2022 21:53:22 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id MCZJOEIrgWNxSQEAauVa8A (envelope-from ) for ; Fri, 25 Nov 2022 21:53:22 +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 95CEA2E1EE for ; Fri, 25 Nov 2022 21:53:22 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oyfh4-0001Mx-43; Fri, 25 Nov 2022 15:53:06 -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 1oyfh1-0001MY-Ol for bug-guix@gnu.org; Fri, 25 Nov 2022 15:53: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 1oyfh1-0007fb-8z for bug-guix@gnu.org; Fri, 25 Nov 2022 15:53:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oyfh0-00039f-55 for bug-guix@gnu.org; Fri, 25 Nov 2022 15:53: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:53: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.166940952312059 (code B ref 59423); Fri, 25 Nov 2022 20:53:02 +0000 Received: (at 59423) by debbugs.gnu.org; 25 Nov 2022 20:52:03 +0000 Received: from localhost ([127.0.0.1]:37308 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oyfg2-00038P-WC for submit@debbugs.gnu.org; Fri, 25 Nov 2022 15:52:03 -0500 Received: from mout.gmx.net ([212.227.15.18]:51923) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oyffx-00037f-GN for 59423@debbugs.gnu.org; Fri, 25 Nov 2022 15:52:01 -0500 Received: from labiere ([82.69.64.142]) by mail.gmx.net (mrgmx004 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MVeI2-1pQCw63VKe-00RWFs; Fri, 25 Nov 2022 21:51:50 +0100 References: <87y1s5wa4p.fsf@gmx.com> <87v8n2iytp.fsf@gmail.com> <875yf293ph.fsf@gmx.com> User-agent: mu4e 1.8.11; emacs 28.2 From: Pierre Langlois Date: Fri, 25 Nov 2022 20:50:38 +0000 In-reply-to: <875yf293ph.fsf@gmx.com> Message-ID: <87y1ry7o69.fsf@gmx.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Provags-ID: V03:K1:ojmNOJIiapeCrd75BeRigVaB/qO021BBOIrXlel2s+AwVE4/5iW WMz7tlz/3KTFM2RPRUlX96Qt2Kf4g3eogxWljl6c4u+Mp1RBmhxaV7lnBZCGtsieMdnF8gq uFeZ8MtQ8UKdV8Na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1dMkl0Q8GcA3awb8EWe1n90Ajmpi 8zj7aFh4ehviQgkrpv9kBDuRcpU= 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=1669409602; 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=oI5Pspe8WnXdZOqd21esJ4TtvS2y13SLJ1++njI6Kuc=; b=IWZ9t5V+VoQbAzpUkH/f9U9XpkGvP9D6lI7kwZQP5xnK5bk720njdXPgpXwVCMM0gscgra EPX7x5KELZz3nISjCmhVMTAjqo11ncLdXHnJ3fzk3T949MGXtLFTvDSOVn419R5AEetBkD k1NdlhLmsMPzIiccoWRSMqC+YQ3VceaFdWQlHZQwRIUn/ZCpAKbcT8nl6b6FW8PfBCPLZZ OortphzNy3CuVnjEGbwjgZjqLumuVNmILPRn3l/Tm9RMcWNxHLk8AwNpDwneygcipM7tl9 G3joqY5YAtV7d0cTsYybyUlR0HYaNbNVsHuZciAlCAtBW+0RaZsfTvleU5q3qg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669409602; a=rsa-sha256; cv=none; b=HQVhmyZRPVzazvXdFlyZ3OQlzv37f3Cn7vNbFTNNkY+KFPxczEKqM1CI6rkQK0e7IFISoz h6yiRY1NzyAPvzhdV+Y9c5FoY8luU7ru4RKPtoFuNq07IaqRKu/8zODBiJC9MfX3t2FZst xNnriSfhNSNCZkSIbGdZTWc+cERpwNDiFTxMKWCIR6omOY7M9IPwS4bFQftJSt8gu798mS r4GqYkcMT8la0WyEZeSaHmbpHQklxq0+4Anoj1WgS2/eVgKobmVvkpJuAx6zELjojm8iAG cYLbdrzoURPGTXQqgACakqok5P3Wlw6Z6b+tAF9agKCrydxpseHX6mV1N4oR7A== 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: 95CEA2E1EE X-Spam-Score: -0.17 X-Migadu-Scanner: scn1.migadu.com X-TUID: c10USJ6U0oVI --=-=-= Content-Type: text/plain Pierre Langlois writes: > [[PGP Signed Part:Undecided]] > > 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: > > ~/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> > > 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? Oh, I just realized the change was reverted with 44554e7133aa60e1b453436be1e80394189cabd9, then I'm probably the one who needs to do a `make clean-go' :-). --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFMBAEBCgA2FiEEctU9gYy29KFyWDdMqPyeRH9PfVQFAmOBKt4YHHBpZXJyZS5s YW5nbG9pc0BnbXguY29tAAoJEKj8nkR/T31UcaYIAJIqEwxvXPkiVl2zks5tQAVy VQN4pwUJIzycuh/B/kDtxiz83FpMTiJLFQLFYA/tWhiKNIZ/G844RQLpvLeyrWz7 zNfWGufqY5VeVWylsTP4bpsKMD4339Vg/MyCkKcsNioFdyemO80pN8hj6OaIkJtB +m1hMinjUMNbyHtXY6M/Oe7Nx48qeWmyT/VP5t6vQpZuwCXQYFCdzChv5g/ZWBYw 7jM3PsMlRPFeTssYgIsXdOZ/JWX4Hhk0IQ/2tdCO95umT09LNCBQ1vceI0f10XST 49yZvk6cDQO+DnARD30ZYl/AimEdvNZOHTQygGr/VvTYWBybA/hQj8X30TFK5w8= =9zOD -----END PGP SIGNATURE----- --=-=-=--