From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 2HSSG+WoU2ScSAEASxT56A (envelope-from ) for ; Thu, 04 May 2023 14:45:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 0AZtG+WoU2RnzQAA9RJhRA (envelope-from ) for ; Thu, 04 May 2023 14:45:25 +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 D5002BBE0 for ; Thu, 4 May 2023 14:45:24 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1puYKW-00048i-5c; Thu, 04 May 2023 08:45:04 -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 1puYJX-0003uI-0X for bug-guix@gnu.org; Thu, 04 May 2023 08:44: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 1puYJW-0006ww-OA for bug-guix@gnu.org; Thu, 04 May 2023 08:44:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1puYJW-0002Ml-Ai for bug-guix@gnu.org; Thu, 04 May 2023 08:44:02 -0400 Subject: bug#62698: bind:utils Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Thu, 04 May 2023 12:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 62698 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Brian Cully Cc: =?UTF-8?Q?=CE=91=CE=BD=CF=84=CF=8E=CE=BD=CE=B9=CE=BF=CF=82_?= =?UTF-8?Q?=CE=A4=CF=83=CF=8E=CE=BB=CE=B7=CF=82?= , 62698-done@debbugs.gnu.org Mail-Followup-To: 62698@debbugs.gnu.org, maxim.cournoyer@gmail.com, tsolis.antonios@gmail.com Received: via spool by 62698-done@debbugs.gnu.org id=D62698.16832042249060 (code D ref 62698); Thu, 04 May 2023 12:44:02 +0000 Received: (at 62698-done) by debbugs.gnu.org; 4 May 2023 12:43:44 +0000 Received: from localhost ([127.0.0.1]:48766 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puYJD-0002M3-Oa for submit@debbugs.gnu.org; Thu, 04 May 2023 08:43:44 -0400 Received: from mail-qv1-f54.google.com ([209.85.219.54]:48213) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puYJC-0002Lq-Ht for 62698-done@debbugs.gnu.org; Thu, 04 May 2023 08:43:42 -0400 Received: by mail-qv1-f54.google.com with SMTP id 6a1803df08f44-61b5da092dfso1961026d6.0 for <62698-done@debbugs.gnu.org>; Thu, 04 May 2023 05:43:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683204216; x=1685796216; 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=YJyhBZuHgajAjxsTzrI0nwj4xKv6g9iIN6hRJRQ8g7Y=; b=nNDVLnOMsH+ZXmY5wrx4Q7OlxEny2ca1S9pKlTziRR4/KCMp4346s06ico/+gNy0VI hEY2KBAWV9F7SpwwK2sZziAJ8UNC1eTv9H8BNFhLPe/w6efvahMocvbDUjmSuLIRLcvu O56jVazkgf1QpRMDxy3UhYysCvxDKLbCs6CT5DQD7wHeEZBISI62M7X8qwVO8UJ2cpXA lSvV0h7Lm6jZ87QWuusO9Al2FCczIjpC8gqVa2SY/hSIpKrQPrppMS9+T+p/o+WXJ69t Z+1PUcvNoHWn9XWGNCJ3ha+pa/dhpu++F0wNZwmiGPgZGnIrlff/DZUvBPzXeDO/u7rR rMyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683204216; x=1685796216; 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=YJyhBZuHgajAjxsTzrI0nwj4xKv6g9iIN6hRJRQ8g7Y=; b=C2bzwmVWWa8WqmBOB6qXtJkaNc3Ac84ekhscKQK1bWISxK/XYqHSaoYoVT2c6wa1qB mfupsIw6rNwJOybpAIMbAlAL58vyChqicYRSpzmbGr0v0Axghg5m2OT1ZZGvU7LQRQ6T J7NLaiN4hFiTPcw+gCT7gzluDB8VKTHvOHQSkgGliZhUu1OOgvptaCAEJfcjYYGG/vdD 6/vCPtCf+z9gz6S+v+hL39dK++Uxk3k5q0U02ub9vyFwhHFVdfQNg82PX4ORQdMRt41R yLQE/mINGCmxO1XcVOm4tULbUpHkE/P7dAgobrs9EdS/baJDjgxIAZemu3qMOX58j5nt cfqA== X-Gm-Message-State: AC+VfDyF7lxdfkwpV553tuBS7Ve9CT1MKv6pBq2ihuK3HUSs2/VpjMl3 BzvSgUxowV2cyyPreCnCYMWmFnJE0Bc= X-Google-Smtp-Source: ACHHUZ4e5zcutiw7YiMXXsCQ2eUffDeukCXf5ZYR3RCZK+M2wtKfno9vnoTyUDgdlBDAeT/kqszSMw== X-Received: by 2002:a05:6214:407:b0:616:76c3:1223 with SMTP id z7-20020a056214040700b0061676c31223mr16404033qvx.38.1683204216487; Thu, 04 May 2023 05:43:36 -0700 (PDT) Received: from hurd (dsl-151-193.b2b2c.ca. [66.158.151.193]) by smtp.gmail.com with ESMTPSA id b26-20020a0c9b1a000000b0061b6cfe1647sm1292239qve.20.2023.05.04.05.43.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 May 2023 05:43:35 -0700 (PDT) From: Maxim Cournoyer References: <87a5zkyigh.fsf@psyduck.jhoto.kublai.com> <87cz4f49ee.fsf@psyduck.jhoto.kublai.com> <87zg7i2ynb.fsf@psyduck.jhoto.kublai.com> <87fs8dzhzl.fsf@gmail.com> <87mt2lpcr9.fsf@psyduck.jhoto.kublai.com> Date: Thu, 04 May 2023 08:43:34 -0400 In-Reply-To: <87mt2lpcr9.fsf@psyduck.jhoto.kublai.com> (Brian Cully's message of "Wed, 03 May 2023 12:58:33 -0400") Message-ID: <877cto6zd5.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-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1683204325; a=rsa-sha256; cv=none; b=pibKHVwMxwJO1UJHEs+QlwKkVl1LaJr7dvPCgbvgm97Ms+bIx3X3EVn+YLET4xwGRx4Zvb Cp/GvCVHJ1DV/tUfisGAEHnKdwCQhaN8VcLQLrmaxz7Rx+RCtaa/uP38XaVPEGAafKQ/d+ PFrzCI8Cry1FMTHW48e9BJlZmeDqSudH9Kb6D17Zj++G58f1QT99I0luTl8yhriXF8KFT2 T7OGbwTQs1Cz2Ue7JyvAu20Iq0wxKCDaB3BZ97XqsAtpdoQV2ZDEmj9h9CL7NKbZHrWvAo f/Rmm5cvJCQsHNtg4CpuCKYRx+VW56TjBOYkuno9x8yIS3uO4NtE2UNdhTP93A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=nNDVLnOM; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1683204325; 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-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=YJyhBZuHgajAjxsTzrI0nwj4xKv6g9iIN6hRJRQ8g7Y=; b=txnIIqRAkb1xi0ynTB67fWVSlnEj9WG2NBHev07XLfxifdiGGZS8BiF4vpYVjRFNSmAK58 mouLy5buwC9MNld7BEbIwSXKGJW+0yzO0Lrjtjzfa3SiCBnJ4+T+6tLupnSFQyhZoX/2Mr +qX1MKSXVTFWND8wL5WOnF2nszF9+3/LB11B4foTYtoWQF0HsE6HvyRR3hHW/aFJzUGK71 it20DAjWby7uPwoXF+oqNQzVgukP3RmmIDM+aoCAs8ZDfdMLkwrcUGd/kghgGh1MHnZS61 9X6JJMGNsIBpbbBOhHVtd3pvJyNeW2zAFLLm3TkXcw63MGm8KpBY+M+GS1P4vg== X-Migadu-Spam-Score: -0.31 X-Spam-Score: -0.31 X-Migadu-Queue-Id: D5002BBE0 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=nNDVLnOM; 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-TUID: 1AX+p1QD42Mr Hi Brian, Brian Cully writes: > Maxim Cournoyer writes: > >> Thanks for finding the problem. Should we leave this bug open until >> specification->package+output is properly documented in our manual, >> with >> an example? If yes, would you like to try your hand at adding it? > > I've looked at this briefly, and can't figure out a good place to > document this (I'm also not particularly good with TexInfo). Hm, looking at '(guix) Packages with Multiple Outputs', we already have an example, which simply append packages and (list package "output") lists, so perhaps that should be preferred instead. The 'specification->package+output' procedure mostly appears to be used internally, in (guix scripts environment) for example. > I'm okay with closing the bug. Though I will say that I think this > procedure is a bit of a foot-gun. Multiple value returns are always > kind of weird, and in this particular case I don't see the value at > all; the only reason to use =E2=80=98specification->package+output=E2=80= =99 would be > to get both the package and the output, so the minor advantages of > multi-value returns are obviated. On top of that, does this even get > used outside of system/home definitions? And in those places you > always want a list. > > I realize a lot of code uses the current semantics, so changing them > would be extremely difficult at this late stage. It's worth thinking > about adding another procedure that does the expected thing (returning > a list of package and output), IMHO, and transitioning over to that. Note that for user profiles, it seems better to use manifest with the convenient 'specifications->manifest' procedure that allows directly providing package name/outputs via a "bind:utils" specification, for example. Closing! --=20 Thanks, Maxim