From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id iMhaJ001wGToGgEASxT56A (envelope-from ) for ; Tue, 25 Jul 2023 22:49:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id MHJPJ001wGQsEQEAauVa8A (envelope-from ) for ; Tue, 25 Jul 2023 22:49:17 +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 3C99C5FC17 for ; Tue, 25 Jul 2023 22:49:17 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=GwoJ7g1t; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1690318157; 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=79H8a9Hm+ydimknUmA/76kUnxbg5oVPIWTrwyyiBheM=; b=kPcILVPJAFFhWT2dvc95GbxcpO6joQ1zZHTyszHRRMaZ5efnDgALck8om/wSboUISrGbTF 23QnBCBdDxZeGBRharWI4IP87oww41yLZFsppclLhJJ0aiEOnjAivJmrlWFA1LNB/kIB1v N9R+XNOcK3VJb3mEH39rLx5eNVRgQFU8WpF3fgNlgUM0/c8M1ST/zibz3yWyr4SEQu6Fyi xQTQIn48Lbk7xtvR+PZtVPOSpVAYbKynd8zcYpPHt022whyPBCHzuSZhKQ4Y8hcRO6bfVf VBfbbY92Nz1KdBh6SV165qpyYBmFhJXpv1cwBQM7B9fgrqyFcqWfx5B4HBS6TA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=GwoJ7g1t; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1690318157; a=rsa-sha256; cv=none; b=HzhrPQNFmGPKJ1nWqz5BPu4jn0AyocGQ/FKGTYRPBA/dI+TAA75nFBZlt5KH/5pz1AZbaU W4YueFrbsQWi3/6h6PGoLxiUTrjWkymKz/lQAJBHKfIeq1z8aZocE91Vq7//rzHODdVulP hCsU2ahk6bup/6A2UBfhS1K+E7VwO6N55ZwxxvgRBydQmRtq0ATnGrMAmS8Mi4x8hdAxBj zVkA2vZS5CT0ujkuNR2uEkSirz2h/Ze4bZhjR7sxpFzvKYNIrg0l3nsz1UoiWKiZwQ41XL X3eJE1iDrFDhTK7L0gD9ojp0lVkL+KzYmuf1OSwbA9a1Ys3uX91HrUdBInRirw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qOOxt-0004GH-Uu; Tue, 25 Jul 2023 16:49:06 -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 1qOOxq-0004Ce-VY for bug-guix@gnu.org; Tue, 25 Jul 2023 16:49:03 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qOOxq-0005u6-Mb for bug-guix@gnu.org; Tue, 25 Jul 2023 16:49:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qOOxq-0004Ip-9P for bug-guix@gnu.org; Tue, 25 Jul 2023 16:49:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#63082: mpd defaul configuration does not work ('No database' error) Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 25 Jul 2023 20:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63082 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Bruno Victal Cc: 63082@debbugs.gnu.org Received: via spool by 63082-submit@debbugs.gnu.org id=B63082.169031811116454 (code B ref 63082); Tue, 25 Jul 2023 20:49:02 +0000 Received: (at 63082) by debbugs.gnu.org; 25 Jul 2023 20:48:31 +0000 Received: from localhost ([127.0.0.1]:47124 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qOOxL-0004HI-83 for submit@debbugs.gnu.org; Tue, 25 Jul 2023 16:48:31 -0400 Received: from mail-qv1-xf35.google.com ([2607:f8b0:4864:20::f35]:62540) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qOOxI-0004Ga-Nj for 63082@debbugs.gnu.org; Tue, 25 Jul 2023 16:48:29 -0400 Received: by mail-qv1-xf35.google.com with SMTP id 6a1803df08f44-63cf9eddbc6so1582436d6.0 for <63082@debbugs.gnu.org>; Tue, 25 Jul 2023 13:48:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690318103; x=1690922903; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=79H8a9Hm+ydimknUmA/76kUnxbg5oVPIWTrwyyiBheM=; b=GwoJ7g1tLO+cs/GGsRmvgEFt3YQKIXGmyYvNCIbQetXXmAj+6sbw+3NVJAuCSsBfYw W6LGPtxUKaC2hK+atX3E+TEfpMn7HMxVI0jxQKMHyHycN2/ef4lxwtUpY5UBo98Wn3kh 7sD1BEsnlqv51uMQkgKB6oXquUENar+uWHvefmVZQuZ1V8fKCe21M372LPXqHwd4DYv0 GNulxk2MgXAhPA9szMTEbq/z3f/Peyb9f7MAH6i7Tmh60KS3ooQm+iY+Z6eNBqJrlAxW TLD16iiRO8FHedpUfCZxT0y5SFKUwS7Tpg66H/SW8CpwtGkQBVClxKk7ikQl4Ncm0HOZ zdFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690318103; x=1690922903; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=79H8a9Hm+ydimknUmA/76kUnxbg5oVPIWTrwyyiBheM=; b=XZcMyKiFcGAuubd3IoHlVyW9xb9iPaGiL74w83YoESr4UQQUVckATsOjnWEqWIMmTe JrctuVyFUZQD7XvIr5SzX1T6D5PhGvx6sAYmKhyiQUGo4NTO3v0Bn6HVyavF8YbzWdEz SPawjtLMhP4r8A/VqM+o/mUhuChz3pT4cjCxKwx+r4cfTvDZfNgyLIAHw6sRJywZi0Lc n15VOtGJGMrZpD/o7KZNsAtgA52esAPFubXHFVUJYMJ+9odLoWUP9mOKzJzlyLoEijMr +AuWfcEPB4yM94DP/rD3CLOpygN7ohvZ20iN2QW/ubnxxq3JDZEfFKazj292Xr7CYKqE uHWg== X-Gm-Message-State: ABy/qLb1mg6hHjxngWcdnCp4m2YjAgnquN89EAPGDAqJpS8KYjtXry6R 087yUbr6lKI4F6yZYQdymj4dQB3MXpI= X-Google-Smtp-Source: APBJJlERbJzWBjGz0ltX8ca4tnQOFuOhwe9pK7vMGlBFKY8zbX1Fx/h/XQPGrrux7uFc4ikmNvQ8iw== X-Received: by 2002:ad4:5963:0:b0:63d:580:9c68 with SMTP id eq3-20020ad45963000000b0063d05809c68mr4104076qvb.32.1690318102941; Tue, 25 Jul 2023 13:48:22 -0700 (PDT) Received: from hurd (dsl-10-141-65.b2b2c.ca. [72.10.141.65]) by smtp.gmail.com with ESMTPSA id w2-20020a0ce102000000b0063642bcc5e4sm4617626qvk.9.2023.07.25.13.48.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jul 2023 13:48:21 -0700 (PDT) From: Maxim Cournoyer References: <685ac37d86b0e8eb135c5e40aa1f89240c2b4934.1683299529.git.maxim.cournoyer@gmail.com> <927eb9f7-17e6-136d-8fbc-ab1e5d5bb87b@makinata.eu> Date: Tue, 25 Jul 2023 16:48:20 -0400 In-Reply-To: <927eb9f7-17e6-136d-8fbc-ab1e5d5bb87b@makinata.eu> (Bruno Victal's message of "Wed, 24 May 2023 17:00:20 +0100") Message-ID: <87cz0f1zvv.fsf_-_@gmail.com> 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-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 X-Spam-Score: 4.35 X-Migadu-Queue-Id: 3C99C5FC17 X-Migadu-Spam-Score: 4.35 X-Migadu-Scanner: mx0.migadu.com X-TUID: 6rKbdDDd62t/ Hi Bruno, Bruno Victal writes: > Hi Maxim, > > On 2023-05-05 19:28, Maxim Cournoyer wrote: >> * gnu/services/audio.scm (mpd-shepherd-service): Register a new update a= ction. >> * doc/guix.texi (Audio Services): Document it. >> --- >> doc/guix.texi | 10 ++++++++++ >> gnu/services/audio.scm | 11 +++++++++++ >> 2 files changed, 21 insertions(+) >>=20 > > I've been looking at this part for the past few weeks in attempt to > make it more robust and after countless hours, I'd advise against this > (in its current form), reason being that this only works if your > configuration happens to match the default values used by mpc. > > My attempts at getting the values from the configuration into > something that mpc understands have been unsuccessful. Not only the > decision =E2=80=9Clogic=E2=80=9D of what values to pass is non-trivial, p= arsing the > endpoints field has been so far a complete nightmare. (with interesting > gems like IPv6 address formats that the daemon is happy to use yet > mpc will reject) > > Having the proper hostname (and port) intelligently deduced from > the endpoints field is a big minefield that is likely to end in > unmaintainable spaghetti. > > Short of introducing additional fields like =E2=80=9Cinternal-mpc-host=E2= =80=9D and > =E2=80=9Cinternal-mpc-port=E2=80=9D, you could modify this to relay the > 'environment-variables' field for mpc as well. (since it can make use > of the MPD_HOST and MPD_PORT varibles if present) Apologies if it's been a couple weeks, but was the above comment really meant for patch 02/16 of this series ("services: mpd: Add an 'update' action to trigger a database update.") ? I don't see how they relate. --=20 Thanks, Maxim