From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 6MrmJKtGgGSlWQEASxT56A (envelope-from ) for ; Wed, 07 Jun 2023 10:58:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 6KzxI6tGgGREMwEAG6o9tA (envelope-from ) for ; Wed, 07 Jun 2023 10:58:19 +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 26C2031A32 for ; Wed, 7 Jun 2023 10:58:19 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q6ozV-0001GL-GH; Wed, 07 Jun 2023 04:58:05 -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 1q6ozT-0001EO-2M for bug-guix@gnu.org; Wed, 07 Jun 2023 04:58:03 -0400 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 1q6ozS-0007K8-QS for bug-guix@gnu.org; Wed, 07 Jun 2023 04:58:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q6ozS-0003eh-8r; Wed, 07 Jun 2023 04:58:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#63921: Activation snippets in reverse order, prevent boot Resent-From: "pelzflorian (Florian Pelz)" Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 07 Jun 2023 08:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63921 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 63921@debbugs.gnu.org, Brian Cully Received: via spool by 63921-submit@debbugs.gnu.org id=B63921.168612825914016 (code B ref 63921); Wed, 07 Jun 2023 08:58:02 +0000 Received: (at 63921) by debbugs.gnu.org; 7 Jun 2023 08:57:39 +0000 Received: from localhost ([127.0.0.1]:53581 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q6oz5-0003e0-DS for submit@debbugs.gnu.org; Wed, 07 Jun 2023 04:57:39 -0400 Received: from relay.yourmailgateway.de ([188.68.61.103]:58615) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q6oz1-0003dn-LB for 63921@debbugs.gnu.org; Wed, 07 Jun 2023 04:57:38 -0400 Received: from mors-relay-8403.netcup.net (localhost [127.0.0.1]) by mors-relay-8403.netcup.net (Postfix) with ESMTPS id 4Qbh7L2PjMz8027; Wed, 7 Jun 2023 10:57:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pelzflorian.de; s=key2; t=1686128254; bh=+xyDhsBZpSntK7xy/F5i8uj3lY3+0QtnioToIr8p0Tc=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=hW3FeDqNrPHGGo/jedG3CcN36eSQlRaxLpxYJ4P3ccbeqTNliI4MzzTjhbMu0fIin ie15xYzMQ+/pMSLFiNFDS5IH2OPsNUWEvAZqI3/tzrEXQMSsPvhN4ZYHfrC5uBiH7X QVZQv+ml7AeF5x1UR20gHIQ+BLzF7OcgA3oEjj5o27l5roG3n/+jOEC0mjq1gadmaR FuHIFjYJrSJCkqMJAnzN1cvf+FXTsmg5edsjdKMwG3ENDcMR2FblNW12ENQl3I6iLr fRXEST7OuNxOesx04wkugqwCCM+d74lBLXG6aOE5H0D63evY47YWn+x63RWyfLj42l bNSRkxPR4ikgg== Received: from policy02-mors.netcup.net (unknown [46.38.225.35]) by mors-relay-8403.netcup.net (Postfix) with ESMTPS id 4Qbh7L21Tfz8024; Wed, 7 Jun 2023 10:57:34 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at policy02-mors.netcup.net Received: from mxe217.netcup.net (unknown [10.243.12.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by policy02-mors.netcup.net (Postfix) with ESMTPS id 4Qbh7B2cXvz8sb3; Wed, 7 Jun 2023 10:57:26 +0200 (CEST) Received: from florianrock64 (ip92344de0.dynamic.kabel-deutschland.de [146.52.77.224]) by mxe217.netcup.net (Postfix) with ESMTPSA id E60C28107B; Wed, 7 Jun 2023 10:57:19 +0200 (CEST) From: "pelzflorian (Florian Pelz)" References: <877csh9fb9.fsf@inria.fr> <87y1kw9ajz.fsf@gnu.org> Date: Wed, 07 Jun 2023 10:57:18 +0200 In-Reply-To: <87y1kw9ajz.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Tue, 06 Jun 2023 11:58:40 +0200") Message-ID: <87a5xb645t.fsf@pelzflorian.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: E60C28107B X-Spamd-Result: default: False [-5.60 / 15.00]; BAYES_HAM(-5.50)[100.00%]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_THREE(0.00)[3]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:3209, ipnet:146.52.0.0/16, country:DE]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_DN_SOME(0.00)[]; ARC_NA(0.00)[] X-Rspamd-Server: rspamd-worker-8404 X-NC-CID: CcCEpM/MJAPTGKjMwvsg+nS7v2btI1JBBjcxIIsL9a5EMEZ5k4M7SKL3 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1686128299; 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: content-transfer-encoding:content-transfer-encoding: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:dkim-signature; bh=r/9J5QCwZFckpIWngehPhERSBeFtAZduc8zNvd7i6QA=; b=cbkDQNJqSW6cNDdzAl3DP1Bhq/viSf6Yc4dp87XvhNlcjSgWEfxkEVADljYDiO8/+td5ad vsqxQl9g9zV90zcWxEhIg1nRAoXUHxuMu24tYbHqJgvY9Ks6O/dACzau6NzysuOdHkhLrf 0M865R8TCKS3kmfdTlu7JjjBfGyCxlhgEMY6wOw+wa+471gACZF2GHJKQAd2kbHhslo3lh 0PkLnpndSNa+yl2xjXKhiWpMWSKFwGRfyB7T/OzK7HSQhNrwnUc0/nu07+rRE9Bi8xAm+f mmGls98ilNiES4rM26jZrPFa2jYspIqhnKuuso18Z2U3t0wOx2vPCJMNVb+5gQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=pelzflorian.de header.s=key2 header.b=hW3FeDqN; dmarc=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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1686128299; a=rsa-sha256; cv=none; b=SD/ATY/g69lSnOQgfrVCp4pD9ySoYgz+f/4+fZ5VAWE8S7WQQZEdXwn+jil4wkYH0i1rGF JkVLuBwnaeo2Yvu0WnZRS0AmxTHFmg7EYJWLoPhlma3LJajwTTsthWXeqqB6eAKBFcSeOU q18RxqywoQ+qMZdJFs9Y9S1U+KVBmtjFlaaC/kktQC7osgSa4bEsVIaHikMh0j5BvfwBlj klrxheihasHS+rjsObBxa4/n/K84hbdt+JRbmaaarH4B+YXXsrFUQQVgH1D/5U9dHb1ce/ Y7aAJBEUfXjaKonfxHr6E4Qp8fVwVlQ7CjsduhvCVqxmMqygNNWPw3TYb2z9xg== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -2.19 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=pelzflorian.de header.s=key2 header.b=hW3FeDqN; dmarc=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: 26C2031A32 X-Spam-Score: -2.19 X-TUID: fahSPZpH4sKB Hi Ludo, hi all. Ludovic Court=C3=A8s writes: > I ended up > rewriting =E2=80=98modify-services=E2=80=99. Good news is we now have te= sts for this. In the rewrite, you wrote: > +(define (apply-clauses clauses services) > + "Apply CLAUSES, an alist as returned by 'clause-alist', to SERVICES, a= list > +of services. Use each clause at most once; raise an error if a clause w= as not > +used." Using clauses at most once broke the greetd example in the manual: > (append > (modify-services %base-services > ;; greetd-service-type provides "greetd" PAM service > (delete login-service-type) > ;; and can be used in place of mingetty-service-type > (delete mingetty-service-type)) > (list > (service greetd-service-type But there are multiple instances of mingetty-service-type in %base-services. Now an error is raised on reconfigure because there are two term-tty2 services. I=E2=80=99m not sure, isn=E2=80=99t it more explicit if we keep your change= of deleting at most once, but change the greetd example? The following works for me now =E2=80=A6 (modify-services %base-services (delete login-service-type) (delete mingetty-service-type) (delete mingetty-service-type) (delete mingetty-service-type) (delete mingetty-service-type) (delete mingetty-service-type) (delete mingetty-service-type)) Regards, Florian