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 cF6EKiWVxmKzZwEAbAwnHQ (envelope-from ) for ; Thu, 07 Jul 2022 10:11:17 +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 KM+OKSWVxmI9zAAAG6o9tA (envelope-from ) for ; Thu, 07 Jul 2022 10:11: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 3148032CA0 for ; Thu, 7 Jul 2022 10:11:17 +0200 (CEST) Received: from localhost ([::1]:43518 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o9MbU-0003qQ-7U for larch@yhetil.org; Thu, 07 Jul 2022 04:11:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54238) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9MR4-000297-5x for guix-devel@gnu.org; Thu, 07 Jul 2022 04:00:30 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:40876) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9MR3-0000Kw-Rw; Thu, 07 Jul 2022 04:00:29 -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=qd8qO9dKcml3r2qfI9AS2+magqoVZABvQny31u56c1M=; b=sKtJRzLxcyK1ySulyuvD ZSXakRZQJvuXn/CNZ02R9905IIWgbDJ3MYBQ90VYYs+RjbP5xV9TTYK8hh/Br5J4wtGDUJr8RnXAe T7YSS044ZHb/kjkrEuZVhH205l6nqgQ3hIZIaPPBMQ5FD9wjT/xnnAx8w6FrfwnaQAC1/B4rXc5Zt yvZQV1RUBuR2xVh47pd6Ul4TUXKwwzxKpKyU2slKkV59FNiem754vU+OkY02n/vPmvJNMldH89LJT wUPnjitFO+QLhj5civBrgRW1OuOt0ZktC5oBiSuw1HBjPlWLohFa7JM54fCfXMoT+Nk9vdZpj4iTs ia3DsdrLkFR1iA==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=45528 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9MR3-0002pk-6M; Thu, 07 Jul 2022 04:00:29 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: zimoun Cc: Guix Devel , Marius Bakke Subject: Re: grafted package and CLI References: <86ilocxvzv.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Nonidi 19 Messidor an 230 de la =?utf-8?Q?R=C3=A9vol?= =?utf-8?Q?ution=2C?= jour de la Cerise X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 07 Jul 2022 10:00:27 +0200 In-Reply-To: <86ilocxvzv.fsf@gmail.com> (zimoun's message of "Tue, 05 Jul 2022 02:07:32 +0200") Message-ID: <87czeh1hes.fsf@gnu.org> 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: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" 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=1657181477; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=qd8qO9dKcml3r2qfI9AS2+magqoVZABvQny31u56c1M=; b=Pdy8jaVOQVG+PeNwCVTIx6EQSwM/62ev6jgvfh3KjHWLu8VUzgURSttE38Ug2lT4YQpFzR UwPx+HFcZpnGc0pIjL19FcEjztVidZLisGdzQlRBPJl0dlDg4IJZXirVhbTlxlxnHSkjuz d0TnvcYoanjvM0xylCb8QeYstIXeZVAvldt09JLpeG9a17liRCWY/JdOxonZ0bGv4PyyAQ h+xbpzox0gbcUhSx271mRtQ/QaiD3shrthVKmNo8LWRS9ksne6RJvFv/Pm36pLaPtBzR3M ktqmGP6ohnIzg6z0P64OXm6QKlYZv6brwsop2vX9pyZp/f36Fbnzs5Ecxc2NFw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657181477; a=rsa-sha256; cv=none; b=NIsSSiVoMJk8ORSUVEa7LnjEg+L8/40DkQswGNaPB9FTBo0sw4DHYeS3vH/c11OcFKKFtr BRNF70V3P80Nu+L6C01H8RH7e8EK9kah36NZR/JVXVbuw5X1NhTSohWKr7BZrJPk9YRasM /sXOONhkyypoO2aosYunk2dDK31UNi+6VOPl/YwsqXQQDKNARUVjB0S7J0IU1bsPkmOtuM N1jD7ylJwaHTq5Rc3FERvd1bVGQBfimTk3KH7Ym4qa6lO6e8Jvx9rKnWEZCRIWt/IsbDkr 4As7NrvRYPx3DJrSxGxJch9tU3b3qFKo7ZVQuYFqFcFIO2O/L+A/6XGS95pIVA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=sKtJRzLx; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.15 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=sKtJRzLx; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 3148032CA0 X-Spam-Score: -5.15 X-Migadu-Scanner: scn1.migadu.com X-TUID: cbQN5AqBQKwn Hi, zimoun skribis: > Or even, it can be confusing: > > $ guix shell curl@7.79.1 -- curl --version > curl 7.84.0 (x86_64-unknown-linux-gnu) libcurl/7.84.0 GnuTLS/3.7.= 2 zlib/1.2.11 libidn2/2.3.1 nghttp2/1.44.0 > Release-Date: 2022-06-27 > [..] > > The issue is not new, e.g., see [1]. I proposed a patch [2] (see below) > which addresses the issue with =E2=80=9Cguix show=E2=80=9D. > > However, it does not address issue with =E2=80=9Cguix package -A | grep ^= curl=E2=80=9D; > and it is potentially not fixable because it uses > =E2=80=99fold-available-packages=E2=80=99 which loads the cache (for perf= ormance) and > this cache does not contain the =E2=80=99replacement=E2=80=99 field =E2= =80=93 it is not a good > idea to introduce it, IMHO. Usually, when the replacement is a different version, we make it public, so it also shows up in =E2=80=98guix package -A=E2=80=99. It=E2=80=99s jus= t a convention, but it=E2=80=99s probably good enough? > diff --git a/guix/ui.scm b/guix/ui.scm > index 7fbd4c63a2..b6497f5e5c 100644 > --- a/guix/ui.scm > +++ b/guix/ui.scm > @@ -1528,9 +1528,18 @@ HYPERLINKS? is true, emit hyperlink escape sequenc= es when appropriate." > (define (package (string > + (define replacement > + (package-replacement p)) > + > ;; Note: Don't i18n field names so that people can post-process it. > (format port "name: ~a~%" (package-name p)) > (format port "version: ~a~%" (package-version p)) > + (when replacement > + (unless > + (string=3D? > + (package-version p) > + (package-version replacement)) > + (format port "replacement: ~a~%" (package-version replacement)))) > (format port "outputs: ~a~%" (string-join (package-outputs p))) > (format port "systems: ~a~%" > (string-join (package-transitive-supported-systems p))) I=E2=80=99m all for it! If you want you can resent the whole thing produce= d by =E2=80=98git format-patch=E2=80=99, or I can apply it and provide a commit = message on your behalf. Thanks, Ludo=E2=80=99.