From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id eHzsKDCLk2NqPwEAbAwnHQ (envelope-from ) for ; Fri, 09 Dec 2022 20:23:28 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id mHD7KDCLk2NNTwAA9RJhRA (envelope-from ) for ; Fri, 09 Dec 2022 20:23:28 +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 5EAE63111A for ; Fri, 9 Dec 2022 20:23:28 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3ixc-0005Rj-EQ; Fri, 09 Dec 2022 14:23:04 -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 1p3ixb-0005Ra-AT for guix-patches@gnu.org; Fri, 09 Dec 2022 14:23: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 1p3ixb-0005y5-2j for guix-patches@gnu.org; Fri, 09 Dec 2022 14:23:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p3ixa-0002BH-UG for guix-patches@gnu.org; Fri, 09 Dec 2022 14:23:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59866] [PATCH 0/2] services: mpd: Refactor MPD service Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 09 Dec 2022 19:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59866 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: mirai , 59866@debbugs.gnu.org Cc: 54986@debbugs.gnu.org Received: via spool by 59866-submit@debbugs.gnu.org id=B59866.16706137368345 (code B ref 59866); Fri, 09 Dec 2022 19:23:02 +0000 Received: (at 59866) by debbugs.gnu.org; 9 Dec 2022 19:22:16 +0000 Received: from localhost ([127.0.0.1]:37956 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p3iwq-0002AX-Dw for submit@debbugs.gnu.org; Fri, 09 Dec 2022 14:22:16 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:43878) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p3iwo-0002AO-Lm; Fri, 09 Dec 2022 14:22:15 -0500 Received: by mail-ed1-f66.google.com with SMTP id r26so4406588edc.10; Fri, 09 Dec 2022 11:22:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=UYDUuFv+QX94mxBglSp5PdFi+xLnIehulY1Kn2d4rPk=; b=KppNnK2Rwihk1crComLMhSa8UPjEjnxOrvoFpi9/o6czta1sVPgUzpeos/35nSDCli pHmpQxgC3fd/QWJxESu2bTxM2rPy6eBrP5e9IsjCkB+GYlw6bVeBdVEOCMD2B8WaF18/ jB9cjqwR4o3gNlfe9AH7uHDSqvH+QvBr6scud+GRCkt3+M8inETA2HIJbt/v3OnS/AET nQ7rTO4jWaha3P4ClWdk77xoPEeiwYJbxLAGtGpaaQAIrYgJ62kiFPYNHyYhkCM/tPIo 0e+WrAwC55phwpk0IVJeB8tOHg5wDUu1wPx1pIENEbg4PkP/WJCtnstPFkG4JI6M2q5q wunw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=UYDUuFv+QX94mxBglSp5PdFi+xLnIehulY1Kn2d4rPk=; b=j168HP51cwZcv5/eUpyBea305ud492017v4GSqRRy/w52QcHKlkf5IsuB0HtB9QNBg cWcyT0ii4eHU3o+Rl5R4Ffg6b56I0S+cRcsodJu08AEGiloWE7X2zE7LtgACpxhRJtHB puVyjUh8zF/PyUCgrWCcx3Q2smyzxRxsoQmXQJVQU3eLW+Cv8xM13IXwEZpI6IJzNvt7 OsFGaIfsY1S9m0qjz13B/HUzTQ4RDfiqTcgM6pEvJRcDjBC/NH3RhjTcORxLNif18rpD E9dD26QDvSD8k4eBXofFRM81x1qPGkTZOyl7wL5H1yRqZjQAirhMVdPscz000jPeFNzQ vjEQ== X-Gm-Message-State: ANoB5pk8jEFIDGwmewfrj/1vNjLkulrFmz2T9ugeJzA8YoaPV9aqtVnH 1Cspbbns33f2lkn9cbgW/oofCbE+hrs= X-Google-Smtp-Source: AA0mqf6QXuoUzjKeH5AwW76lueHl196u1Gr0R1HUOqdnAauMuHb10TlDjd+gON94I5xhAyStTRZ0cw== X-Received: by 2002:a05:6402:1047:b0:45c:835b:ac4d with SMTP id e7-20020a056402104700b0045c835bac4dmr5736202edu.8.1670613728618; Fri, 09 Dec 2022 11:22:08 -0800 (PST) Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id m6-20020a056402050600b0046c5baa1f58sm952676edv.97.2022.12.09.11.22.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Dec 2022 11:22:08 -0800 (PST) Message-ID: <4e6249e0970fcd02ac4666ce1fd40203b4b09003.camel@gmail.com> From: Liliana Marie Prikler Date: Fri, 09 Dec 2022 20:22:06 +0100 In-Reply-To: References: <6e66967984d1bc22d8abf5dd4b07c1a20b4b06ee.camel@gmail.com> <71f31a0d-cc58-a0e6-4aa4-b5c46513c835@makinata.eu> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.0 MIME-Version: 1.0 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670613808; 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=UYDUuFv+QX94mxBglSp5PdFi+xLnIehulY1Kn2d4rPk=; b=DlJwYNm/Bj10nYhWH4aFugpYA2+riDH5KFG+XhrxKosZ5Tv+Dr8N989xxqw4ZQWDgjM2dG 2G71KDJKgMD2X6mwyBX7flK/UGNCHINiX3qERUwbb3lID09irgNpWwAI5gO4Nr/TwJ+28s OXgebseqwazZ2AElD1Vd8nBP0FfK0qIW55dSZwplf4JZFS9C3UixN02izUpPbpls/+zH93 rmhuRsGEcUAHnCVQYovvOKCSeIUf6c183NRG2HRJoIjKDAX3zySx2kfQ/mqYw1UooGLRSP u2yMHs/X1VKq6hzOyK0mYQ72ZOgAJWmFJ/QpSlMB9GOYxcFCHkYR2yDkLIGDvg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=KppNnK2R; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670613808; a=rsa-sha256; cv=none; b=H9hP7qekAgHLUy21CDOj4F2uHq7qh5wxa/Xl3b5BlTVt0T1DiNF7PoFtX4uv20QeLAOeRh o5EgM7CwRhmndPDWIgovzNavGQKvzCaiHISW10COvnXpksKTKuDkBv7YdkQEA4Cm8JLOye 1WneQFfLXo5NsiJksxNo6zjon9ohL+MtEhsLHK92irvhN2JSxr9sP38/blRFEgcA2bPduC WFHnZvh40sIh4tOg2qm6AEJMz4MQmRNkEhJP0UQ+inZhu2Kx2CuDzalP6VtBbYKbuhct67 uY9DJF8P8Im6vIT2y/Zj3JY3iUdyrIRYOdV+vEOWqQvOEhFkWxwhttRbLIlrag== X-Migadu-Spam-Score: 4.45 X-Spam-Score: 4.45 X-Migadu-Queue-Id: 5EAE63111A X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=KppNnK2R; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) X-TUID: TwY25Z4GLCYu Am Freitag, dem 09.12.2022 um 13:44 +0000 schrieb mirai: > On 2022-12-08 13:35, Liliana Marie Prikler wrote: > > This doesn't work for #54986, which makes it so that in-file > > addresses are ignored in favour of handing over the sockets > > directly through shepherd.=C2=A0 Looking at [4], it appears the meaning > > of "port" is closer to that of a default port, as addresses can > > have ports in them.=C2=A0 > > But I would still prefer addresses to be "endpoints", which if they > > happen to be a list of strings are taken as MPD addresses and if > > they happen to be shepherd endpoints are passed on to the shepherd > > service. >=20 > Are you proposing for the 'addresses' field to be a > "maybe-list-of-string-or-shepherd-endpoint"? (more of a xor as they > can't be used simultaneously) > Example: >=20 > --8<---------------cut here---------------start------------->8--- > ;; should fire a error message during guix system reconfigure > (mpd-configuration > =C2=A0 (addresses `("[::]:6645"=C2=A0=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 ,(shepherd-endpoint > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (address "/var/run/mpd-shepherd-socket"))))) > --8<---------------cut here---------------end--------------->8--- >=20 > I don't think it breaks backward compatibility to introduce this > after #59866 is merged. > The type of field 'addresses' could be changed transparently to > something like: >=20 > --8<---------------cut here---------------start------------->8--- > (define list-of-addresses (list-of (lambda (x) (or (string? x) > (shepherd-endpoint? x))))) > --8<---------------cut here---------------end--------------->8--- Something like that, but I don't think the vocabulary matches 1:1. In my opinion, an address is an endpoint =E2=80=93 not a shepherd endpoint, bu= t an endpoint still =E2=80=93 while a shepherd endpoint is not an address. Thus= , I propose changing the vocabulary now to not break backwards compatibility later. IIUC, the change from the previous records to define-configuration is already an API change, so it'd be good to have both in the same series. Cheers