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 ms5.migadu.com with LMTPS id GFerHJb852Iu/wAAbAwnHQ (envelope-from ) for ; Mon, 01 Aug 2022 18:17:26 +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 SMKJG5b852Jj5QAAG6o9tA (envelope-from ) for ; Mon, 01 Aug 2022 18:17:26 +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 3D47B3A5B8 for ; Mon, 1 Aug 2022 18:17:26 +0200 (CEST) Received: from localhost ([::1]:60170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oIY6e-0008DA-VV for larch@yhetil.org; Mon, 01 Aug 2022 12:17:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40098) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oIXm2-0003GK-DM for bug-guix@gnu.org; Mon, 01 Aug 2022 11:56:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51699) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oIXly-0001RS-QY for bug-guix@gnu.org; Mon, 01 Aug 2022 11:56:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oIXly-00044W-IR for bug-guix@gnu.org; Mon, 01 Aug 2022 11:56:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#56799: (gnu services configuration) usage of *unspecified* is problematic Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 01 Aug 2022 15:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56799 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 56799@debbugs.gnu.org, attila@lendvai.name Received: via spool by 56799-submit@debbugs.gnu.org id=B56799.165936933115605 (code B ref 56799); Mon, 01 Aug 2022 15:56:02 +0000 Received: (at 56799) by debbugs.gnu.org; 1 Aug 2022 15:55:31 +0000 Received: from localhost ([127.0.0.1]:41448 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oIXlT-00043d-0P for submit@debbugs.gnu.org; Mon, 01 Aug 2022 11:55:31 -0400 Received: from mail-qt1-f173.google.com ([209.85.160.173]:34730) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oIXlQ-00043M-GG for 56799@debbugs.gnu.org; Mon, 01 Aug 2022 11:55:29 -0400 Received: by mail-qt1-f173.google.com with SMTP id e5so8344627qts.1 for <56799@debbugs.gnu.org>; Mon, 01 Aug 2022 08:55:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=NPZ9+oqujikTRdXikbmO5Lqun5CwdyWmuCoVQUQRSWo=; b=XInZfPEb1YuXWIqnLBqwCHgx2gmx4+XF3v5D3AGCYyrWE88nesYydzBW+0K83rq5+J TLemkEWJolOO5YK4QigjmMl6OouLAZIyG4XJjchZu4bmakydUTlNR9sZDshehl44pxVM 4B6IiFMv4pyEevsdPCsmDjCF25LI3aOr4iFBNHKwF59QpN8nAfRxTwbvfYJAyJhay73/ 8k/TpaTuno5Xw5lbwmzIHOXtPYtQAs+FF/OseLUct/fyqbXaklA8/mVnn495mKZKLQ0R wnNApM0FDSPsUiD0a/IzlZEDTm85uW//1A6cWmR0EAEINW6aWjrTYG5b0eHw5WpAqKkE zEfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=NPZ9+oqujikTRdXikbmO5Lqun5CwdyWmuCoVQUQRSWo=; b=dFZUNXSy9VTH/jsBgC6dMhyUxmdP6J6RCgvj+VQJKI5c4a/0LWB2dlgI4VpGm+86VC GISfxxEt5FmHcy7tWp4nkK1wx4tvyPglFqWQENHx2gMnFygNeQJCDD96+0JCAcOaonYu 831TE60N9HBVNqEAYdHYDvGHkZjG4FCnVRUE3p4f3a7oJy9KkC+wbyf5GGddCXs+tiUy Be2b74hIBxFxFANYxtWLgZH8Xpcqq8pi59MUIM+tA2xBi4HIJvop9b5kpDOM11yqNpCg 0cZR1hEohNe/CvodyssHp/HeZx1HGbPEAGPYgniRyCNxEc9uykDEXvqB49H6d/f0lrUI 1Fsg== X-Gm-Message-State: AJIora+AeoIB9RlkL8Rf6a4lZz9o7In4bFpddcWu8B3iGm5UCKkyAtGR l0pWpmhoPStTZsgRCa4mq0Y= X-Google-Smtp-Source: AGRyM1uiEeX8CG8ikWmR+PUFQVk3ez+8o/M5B79vAECVwlB98Er3TaMP+jcUjUGlqjZOkbo4So+Kpg== X-Received: by 2002:a05:622a:54a:b0:31f:3822:7009 with SMTP id m10-20020a05622a054a00b0031f38227009mr15014788qtx.478.1659369322837; Mon, 01 Aug 2022 08:55:22 -0700 (PDT) Received: from hurd (dsl-158-240.b2b2c.ca. [66.158.158.240]) by smtp.gmail.com with ESMTPSA id i21-20020a05620a405500b006b5f371a19esm9482546qko.111.2022.08.01.08.55.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Aug 2022 08:55:22 -0700 (PDT) From: Maxim Cournoyer References: <87o7xa8qxt.fsf@gmail.com> <8735egxedv.fsf@gnu.org> Date: Mon, 01 Aug 2022 11:55:20 -0400 In-Reply-To: <8735egxedv.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Mon, 01 Aug 2022 15:49:32 +0200") Message-ID: <87les82c2f.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1659370646; 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=NPZ9+oqujikTRdXikbmO5Lqun5CwdyWmuCoVQUQRSWo=; b=dBnv6P2un7reDyTgLTk2Aknrsz3g/ki/LhrJJ3bMsiaJw9TeTkYGqawN84eeZKVrnzlpXk W7Hq+uLLE0gWQEZZzD4xJeqpH839RHi4S+MubQdM+03pM/cAIWJ7lijlFwgv1Uh4wHKl3X Fj2HXEvxVzBOwJ9c6QeivORJT9HJFX2HVAEpJmPjaHWUXPymzTEyOngBVYmetmi0m0+gAD NxM+iczgV1x3Sa5/zqlLH8rMl8x7yXYg3TMb+iHPOp3FekZWtyptoUXddUopNYc3avaPeG wHWbmQvdQlfOKu/xQizHTktjRp367QnRwsUji0VH/jBb66x8ArDGutOQGCcaAg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659370646; a=rsa-sha256; cv=none; b=iTSQnI2lLQL+NgrfwxPUVGXOV200KWNg66t1mR/FZXLwBihjtAWvG2q09ElD/CB7XNP6t+ as3YqwZmUWYtloEIEffP3gwKASUaMX+3o1i7CDzy934OFl5Oh0U/FOjKdC6AedhT1tQCbL OZL7xuj1eaC6RnxvqfW+4N5Q3cfocEWmLIQhzuqUTUr3YR4sQ2TNo5H6vAClkCgHqfrAUm svv5N3mCZ28b/tIAdF2fprnbtCG1Tw32Ji/k20hA4jehyQh5D0jjpBekwgEu3w58aT6xHv GQBghuk41gcuoFNol1zIyWtL0vbGCvieZslq3aTQA1/CUBjtIJVRU5M+lxC3Lg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=XInZfPEb; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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-Spam-Score: 6.08 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=XInZfPEb; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: 3D47B3A5B8 X-Spam-Score: 6.08 X-Migadu-Scanner: scn1.migadu.com X-TUID: h5T0Kp7MGo8H Hi Ludo, Ludovic Court=C3=A8s writes: > Hi! > > Maxim Cournoyer skribis: > >> Since commit 8cb1a49a3998c39f315a4199b7d4a121a6d66449, the >> define-configuration machinery in (gnu services configuration) uses >> *unspecified* instead of 'disabled for an unspecified field value. > > As Attila wrote, the rationale as discussed in > was to specifically use a =E2=80=9Csp= ecial=E2=80=9D > value without a read syntax in lieu of a symbol like 'disabled. > >> While this is indeed an improvement in readability, it introduces an >> extra complication: because this new value is not self-quoting, it >> cannot be used as is in G-Exps, and values using it must be carefully >> expanded outside the gexp context, which is error prone. > > Could you give a simple example of how this can happen? > > In my experience, one would use =E2=80=98define-maybe=E2=80=99 and approp= riate field > serializers such that *unspecified* never goes through. Previously > you=E2=80=99d check for (eq? x 'disabled) and now you just check for > (unspecified? x). Yes, I understand that. What changed is that previously you could have the configuration serialized and used on the service side, which is what using *unspecified* made impossible. Granted, few services outside of Jami probably made use of this, but it was nevertheless a useful property. Thanks, Maxim