From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 4KJ/NGMwgWNG0QAAbAwnHQ (envelope-from ) for ; Fri, 25 Nov 2022 22:15:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id WLiTM2MwgWPnxQAAG6o9tA (envelope-from ) for ; Fri, 25 Nov 2022 22:15:15 +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 60A102F041 for ; Fri, 25 Nov 2022 22:15:15 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oyg2L-0007so-Gp; Fri, 25 Nov 2022 16:15: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 1oyg2J-0007sa-S4 for bug-guix@gnu.org; Fri, 25 Nov 2022 16:15: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 1oyg2I-0004LP-QT for bug-guix@gnu.org; Fri, 25 Nov 2022 16:15:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oyg2H-0003er-Ms for bug-guix@gnu.org; Fri, 25 Nov 2022 16:15:01 -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 21:15:01 +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.166941086313997 (code B ref 59423); Fri, 25 Nov 2022 21:15:01 +0000 Received: (at 59423) by debbugs.gnu.org; 25 Nov 2022 21:14:23 +0000 Received: from localhost ([127.0.0.1]:37322 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oyg1e-0003dg-IC for submit@debbugs.gnu.org; Fri, 25 Nov 2022 16:14:23 -0500 Received: from mout.gmx.net ([212.227.17.21]:54149) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oyg1a-0003dR-U8 for 59423@debbugs.gnu.org; Fri, 25 Nov 2022 16:14:21 -0500 Received: from labiere ([82.69.64.142]) by mail.gmx.net (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id 1N1wpt-1orz6A0fcH-012KoP; Fri, 25 Nov 2022 22:14:11 +0100 References: <87y1s5wa4p.fsf@gmx.com> <87v8n2iytp.fsf@gmail.com> <875yf293ph.fsf@gmx.com> <87y1ry7o69.fsf@gmx.com> User-agent: mu4e 1.8.11; emacs 28.2 From: Pierre Langlois Date: Fri, 25 Nov 2022 21:09:49 +0000 In-reply-to: <87y1ry7o69.fsf@gmx.com> Message-ID: <87cz9a7n4y.fsf@gmx.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Provags-ID: V03:K1:rTRe1Yxs+JvNVo7WagYsJz/k5OeqlkrJJPF7T4/U4dvLvon6cbC WUE+Nd4eEZgCdVk4VfncCiaXY2zNsntjlpB5BP7BhSwK5tpgrVeknkD36PM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vAZyPvLQ+xDXOkZ0eXK5yuVWzo3yJnnwX2j6YmMn8hJnYZuO5ns9pX 8g1i/xszWUbQ4i2cL+WvWAhUsZo= 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=1669410915; 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=Ua18OGumPl7VGnkSL4MVuzhyQeM/PcumeE0e7MxmiFQ=; b=cjh6vLcEMZeufAkphyuSK4N7nOAukicWTp/8ACOzPvJvIfoEHdjscS3Ux2T2+3FDzIo7gr XLyUuDbkWna9xM2vxJAHeeVDiQT86xnITp79JBKPGMtZeqLW5LLB6bA7q7Qs0Rr0o0g/JB b24li4wJQ3VkdhDj9ScVkQ3eaSQpo7mCps5X6aA3bpDh/n4G2ufrwKetjC8dqxk6LIlv/9 YuyEVcHey1VOYETz/bmwjhV+FPLgq2vqS7XRQNYsLGbc0aVVvFLZCXmfbyAFCRptqtFgCo 8twZeQ33YVxSr5TLW7UZtdiPo+eYuO5ThOBPwt+fzvRBLkkTHX3bgzazEuTVHA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669410915; a=rsa-sha256; cv=none; b=UDBpHyp26zgcq6S0cIkrKQdpIyoDz0QC4kiA3xumz8uQ7UhRx9nw54fsuU1ZOXyNbidshv 1x/8LX2OG2AdcIxwL0VdvtAdO3Dc/CTzc4ZS5ULz8nKE+0bhjlyXASqddYYr3m7ouNRUeN TEtov8eVbnAfxer7GZFaAJ3izc3+gf68ky1ZhuP9Y8MRaPLK8Zjcx8xcSHYIS+noDM4/Ve OFFWWKGyPIxh3FNuq1HY5V0KuqyDR+lg1kKbTI+S5Zj2PdXGxABbdfqvql3EDlLqbyqrAF cIIG2NTItSPlIYICKjDm/Fi8EfiESxLvly4yCjaTgQLkjGrHYPEeY0BYsrQ5mg== 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: 60A102F041 X-Spam-Score: -0.17 X-Migadu-Scanner: scn1.migadu.com X-TUID: tiJ+tZ4cVQ/X --=-=-= Content-Type: text/plain Pierre Langlois writes: > [[PGP Signed Part:Undecided]] > > 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' :-). I'm afraid I can still reproduce the issue after a fresh rebuild, I can also reproduce it outside of the git checkout: --8<---------------cut here---------------start------------->8--- $ guix describe Generation 1026 Nov 25 2022 20:11:23 (current) guix 7e0ad0d repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 7e0ad0dd0f2829d6f3776648ba7c88acf9888d7a (... snip ...) $ guix gc -R `guix system build -e '(@@ (gnu tests mail) %dovecot-os)'` | grep dovecot\.conf | xargs head -n 20 listen=*,:: dict { } passdb { driver=pam } userdb { driver=passwd override_fields= } plugin { } namespace inbox { type=private separator= prefix= location=#< file: "gnu/tests/mail.scm" line: 297 column: 20> inbox=yes hidden=no list=yes --8<---------------cut here---------------end--------------->8--- Now I'm confused :-/. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFMBAEBCgA2FiEEctU9gYy29KFyWDdMqPyeRH9PfVQFAmOBMB0YHHBpZXJyZS5s YW5nbG9pc0BnbXguY29tAAoJEKj8nkR/T31U4qQIAMj3YRNMbJnjRT3elfLYX98h 6rs3j/wn2aQRyfrXwkpzzqEuiPKkc5PP6BU5o5p0ESlfd8bTwyX/DSiPw0ltaQmu iTqjFPxgv0Cp06aK4HaPceQnrh7flnCPnNA4VW3SgNIiamKcKFhwZLVcv4aDGfsG f8FJd/Lo91akrwqVnAwskaGwiPIBHgz99lVlIGzKTyZl0V70pYpXGt1dHT2uamOW /kr0ssv74tVKNiFQANqB6TfSObZSqg3i+C9A2n9OrVqhLonDTa21fMR7rkvGbA+U qjd3H8JA802E3DG+kSB6x5ylz2epwBKUUATI+iVVbiSVCX2Ft+Hr3fOPY4rypjE= =7Iry -----END PGP SIGNATURE----- --=-=-=--