From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id KzeDMW/7eWQiGwEASxT56A (envelope-from ) for ; Fri, 02 Jun 2023 16:23:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id a2mKMG/7eWRfhAEA9RJhRA (envelope-from ) for ; Fri, 02 Jun 2023 16:23:43 +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 7CFDC29952 for ; Fri, 2 Jun 2023 16:23:43 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q55gH-0007hN-6a; Fri, 02 Jun 2023 10:23: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 1q55gF-0007g7-Og for guix-patches@gnu.org; Fri, 02 Jun 2023 10:23: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 1q55gF-0001gO-Gb for guix-patches@gnu.org; Fri, 02 Jun 2023 10:23:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q55gF-0005WJ-8I for guix-patches@gnu.org; Fri, 02 Jun 2023 10:23:03 -0400 Subject: bug#63538: [PATCH] gnu: services: Error in MODIFY-SERVICES when services don't exist Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Fri, 02 Jun 2023 14:23:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 63538 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Brian Cully Cc: 63538-done@debbugs.gnu.org Mail-Followup-To: 63538@debbugs.gnu.org, ludo@gnu.org, bjc@spork.org Received: via spool by 63538-done@debbugs.gnu.org id=D63538.168571577521171 (code D ref 63538); Fri, 02 Jun 2023 14:23:03 +0000 Received: (at 63538-done) by debbugs.gnu.org; 2 Jun 2023 14:22:55 +0000 Received: from localhost ([127.0.0.1]:40589 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q55g6-0005VP-Sm for submit@debbugs.gnu.org; Fri, 02 Jun 2023 10:22:55 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51246) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q55g4-0005VB-4u for 63538-done@debbugs.gnu.org; Fri, 02 Jun 2023 10:22:53 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q55fy-0001dY-QN; Fri, 02 Jun 2023 10:22:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=wlOd0hAvK4na6Uaz6Lq6X8TXGYV4/52fOL86l8U+dQI=; b=WowQ2zL2nWhcmDtpQPrW Ou96Xw/u/sjK9SXXaRX+hGMMkEghPmqAXmhnsBJLplHyFrkcHZ0OsrZi7ph1SmtwzDWUKXW89O7id tBZcjxgUexOX71yEz2hb3XU34Ez3pSVeOnkEc2spdrUYQHsteud5U/UbbDLtgjet02Ob1nMbenj4p kmZItuRoVjLek2NnqplhMB+J7tXbnFoMeuHia5E60+1BNUSEGJvmcxUtttYa61DG9c3bGUO2rFhIz Mgy7s1bDN2XVR/Uv2oCoYAz6D6WxiJBLvfEZpM91eHNLO+Ok+c6P0s8qLMxhFj1D8DL0Q9X3IPQ6v jfaPIXVOVJcb3g==; Received: from [193.50.110.155] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q55fy-0002eU-Dg; Fri, 02 Jun 2023 10:22:46 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <13ab94bbed475a933d8376ad8fc166c6ad124b67.1685140217.git.bjc@spork.org> Date: Fri, 02 Jun 2023 16:22:44 +0200 In-Reply-To: <13ab94bbed475a933d8376ad8fc166c6ad124b67.1685140217.git.bjc@spork.org> (Brian Cully's message of "Fri, 26 May 2023 18:30:17 -0400") Message-ID: <87wn0m3pvv.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1685715823; a=rsa-sha256; cv=none; b=MtSAc6ejzaTKjnXcI0qVUoqfZ1M6i3t4lxnDrZo1G6uHB22LZHo0+Ct3SAmEtWhRLI5WkR aiO2y69fIS6X+KQCYWCJgHs+x82yq4N+YOudFbHuWG/RcKJtbesa7dVH8RhZZDosebW0o3 E7YtCwnGX0eq9wmRvv4slKpvaJ6nIeFCMBOL2eJo26xSdJiNzfN/xUom1x7JGW1XIrFS3v C5Ddg0acc1X5PNX3tTKsekkbhpiWpHnBK5mFKGUIdjkvJYaomi/K8YrDXatB9tGKdzhnKW k73Mio8Z9DTs8sIvW9HLhCFHE+fMYFq3o8AGnSw7YoUn/RPOXBAHR6InOAlWmw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=WowQ2zL2; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1685715823; 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-to: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=wlOd0hAvK4na6Uaz6Lq6X8TXGYV4/52fOL86l8U+dQI=; b=SdddhGhXqRFe4rTtlQvRJ33qxilb3as/Rx/YL5d0mtCYMOn7KZZKCTnTq0OL8EYVQ9zzLk 0EHVZFU0iaxKDqeBUyBAXD7Cd2lxGHapaFP++HCg8zhxJHcKflJl0keimqalFkZ7uSHYvN EV1LdeFF6MRV1XpfJ2m+AqiEA47eXLGsyuK3yZMth0GfXvBbS2eOI9nBHGwEr312KinKrL zzbxpjQHLmwod59t6Ke3eSoyK/5kVPAomjOmOH6pgGNxCy9M6pFgsPO7h5QPT1T3rNuenZ /9nPyofU97v12uwmc9Ef94y3KShKbn36krUuRz+7FOzaSybjySDhEQd177wHsA== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=WowQ2zL2; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -4.17 X-Spam-Score: -4.17 X-Migadu-Queue-Id: 7CFDC29952 X-TUID: 7mlZTuvnGcrP --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Brian, Applied with the minor change below. Thanks for working on this! Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable diff --git a/gnu/services.scm b/gnu/services.scm index a58cffe536..a990d297c9 100644 --- a/gnu/services.scm +++ b/gnu/services.scm @@ -6,6 +6,7 @@ ;;; Copyright =C2=A9 2021 raid5atemyhomework ;;; Copyright =C2=A9 2020 Christine Lemmer-Webber ;;; Copyright =C2=A9 2020, 2021 Brice Waegeneire +;;; Copyright =C2=A9 2023 Brian Cully ;;; ;;; This file is part of GNU Guix. ;;; @@ -307,10 +308,10 @@ (define (%delete-service kind services) (raise (formatted-message (G_ "modify-services: service '~a' not found in service= list") (service-type-name kind))))) - ((svc . rest) - (if (eq? (service-kind svc) kind) - (loop svc return rest) - (loop found (cons svc return) rest)))))) + ((service . rest) + (if (eq? (service-kind service) kind) + (loop service return rest) + (loop found (cons service return) rest)))))) =20 (define-syntax %apply-clauses (syntax-rules (=3D> delete) --=-=-=--