From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id YP4ANw7mW19wegAA0tVLHw (envelope-from ) for ; Fri, 11 Sep 2020 21:03:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id eHtOMQ7mW1/RIAAAbx9fmQ (envelope-from ) for ; Fri, 11 Sep 2020 21:03:10 +0000 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 5D575940653 for ; Fri, 11 Sep 2020 21:03:09 +0000 (UTC) Received: from localhost ([::1]:39448 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kGqCK-0003Iy-5s for larch@yhetil.org; Fri, 11 Sep 2020 17:03:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36966) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kGqCF-0003IH-Iu for guix-patches@gnu.org; Fri, 11 Sep 2020 17:03:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34159) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kGqCE-0005Ou-DQ for guix-patches@gnu.org; Fri, 11 Sep 2020 17:03:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kGqCE-0001BQ-9f for guix-patches@gnu.org; Fri, 11 Sep 2020 17:03:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43347] [PATCH] services: dovecot: Do not require dovecot to be globally installed. Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 11 Sep 2020 21:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43347 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 43347@debbugs.gnu.org, pierre.langlois@gmx.com X-Debbugs-Original-To: guix-patches@gnu.org, Pierre Langlois , 43347@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15998581494505 (code B ref -1); Fri, 11 Sep 2020 21:03:02 +0000 Received: (at submit) by debbugs.gnu.org; 11 Sep 2020 21:02:29 +0000 Received: from localhost ([127.0.0.1]:45705 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kGqBg-0001Ab-Sg for submit@debbugs.gnu.org; Fri, 11 Sep 2020 17:02:29 -0400 Received: from lists.gnu.org ([209.51.188.17]:33412) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kGqBe-0001AN-6L for submit@debbugs.gnu.org; Fri, 11 Sep 2020 17:02:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36832) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kGqBd-0002yl-Vm for guix-patches@gnu.org; Fri, 11 Sep 2020 17:02:25 -0400 Received: from lepiller.eu ([89.234.186.109]:34794) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kGqBb-0005J6-I5 for guix-patches@gnu.org; Fri, 11 Sep 2020 17:02:25 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 2cc663bb; Fri, 11 Sep 2020 21:02:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date :in-reply-to:references:mime-version:content-type :content-transfer-encoding:subject:to:from:message-id; s=dkim; bh=yNc0C7sxIvR0N228ie8DmTqQ26JoXjWYAF/pumPSe8w=; b=bB4mRLPEV/L+ 8AtZzWjYyLmMjxjZK6z1Kg5t1V6zWUhr77vODH1EXRGidZ1EoboNQ3o7uVV0GoY3 2IFSaS4daaTH3+pQDlyFDWuf9VA9dtsiZ+/iJhhZqn8lPLatLeU9mgRHK19QWWsJ Q3ZK8oubIEKH72l6jlrFvMe+cCYm5cUdfDheh5V15U5vlkcPu3KvsL7eLRXly4tr Y7doNOAscYMFLni+/gbxqoF4Sc974CZYCankDEhO7DO4kBvTyluzoxMUBtukW59O cvQv3tc6T9k2R/kRv2Y4COzvC7dpiEP8GYX5CrSFU9TDSdRA4n4aZMqeSPDIPdTo DiutAxnj8w== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id f3e98af7 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Fri, 11 Sep 2020 21:02:16 +0000 (UTC) Date: Fri, 11 Sep 2020 17:02:04 -0400 User-Agent: K-9 Mail for Android In-Reply-To: <87k0x09k6h.fsf@gmx.com> References: <87k0x09k6h.fsf@gmx.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----305FHBUN8VQCK01TNZCMADMTP6ZD04" Content-Transfer-Encoding: 7bit From: Julien Lepiller Message-ID: <96C47DA4-5471-4010-AAA8-0355B1B8A0D2@lepiller.eu> Received-SPF: none client-ip=89.234.186.109; envelope-from=julien@lepiller.eu; helo=lepiller.eu X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/11 17:02:19 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=lepiller.eu header.s=dkim header.b=bB4mRLPE; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: LSAokdWrxESD ------305FHBUN8VQCK01TNZCMADMTP6ZD04 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Oh no, the reason for the symlink I think is that module packages could be = installed in the same profile as dovecot to complement the directory=2E If = you symlink it to dovecot, you can't install additional modules=2E Instead, I would suggest to add an option to declare the set of additional= modules=2E Create a union of this set of modules and dovecot itself, and s= ymlink /etc/dovecot/modules to it (or confiqure dovecot to look into it dir= ectly, without using any global state, which is better in my opinion)=2E Le 11 septembre 2020 15:40:06 GMT-04:00, Pierre Langlois a =C3=A9crit : >Hello Guix! > >I noticed recently my little dovecot mailserver failed to boot, I >tracked it down to our service installing a symlink as: > > /etc/dovecot/modules -> /run/current-system/profile/lib/dovecot > >However, I didn't have the dovecot package globally installed, the >service does not install it AFAICT=2E > >We could extend the service to install dovecot into the global profile, >however instead we can just symlink /etc/dovecot/modules to the dovecot >package in the store directly=2E > >Here's the patch to do that! WDYT? > >Thanks, >Pierre ------305FHBUN8VQCK01TNZCMADMTP6ZD04 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Oh no, the reason for the symlink I think is that = module packages could be installed in the same profile as dovecot to comple= ment the directory=2E If you symlink it to dovecot, you can't install addit= ional modules=2E

Instead, I would suggest to add an option to declar= e the set of additional modules=2E Create a union of this set of modules an= d dovecot itself, and symlink /etc/dovecot/modules to it (or confiqure dove= cot to look into it directly, without using any global state, which is bett= er in my opinion)=2E

Le 11 septembre 2020= 15:40:06 GMT-04:00, Pierre Langlois <pierre=2Elanglois@gmx=2Ecom> a = =C3=A9crit :
Hello Guix!

I noticed recently my little dove= cot mailserver failed to boot, I
tracked it down to our service installi= ng a symlink as:

/etc/dovecot/modules -> /run/current-system/pr= ofile/lib/dovecot

However, I didn't have the dovecot package globall= y installed, the
service does not install it AFAICT=2E

We could e= xtend the service to install dovecot into the global profile,
however in= stead we can just symlink /etc/dovecot/modules to the dovecot
package in= the store directly=2E

Here's the patch to do that! WDYT?

Tha= nks,
Pierre

------305FHBUN8VQCK01TNZCMADMTP6ZD04--