From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YGu4ErcWY2BbgQEAgWs5BA (envelope-from ) for ; Tue, 30 Mar 2021 14:16:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id oFvPDLcWY2AvVgAA1q6Kng (envelope-from ) for ; Tue, 30 Mar 2021 12:16:55 +0000 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 C072926986 for ; Tue, 30 Mar 2021 14:16:54 +0200 (CEST) Received: from localhost ([::1]:57800 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lRDIk-0001qk-07 for larch@yhetil.org; Tue, 30 Mar 2021 08:16:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52816) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRDHu-0001pS-9U for guix-devel@gnu.org; Tue, 30 Mar 2021 08:16:03 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:36285) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lRDHt-0006Ru-RQ; Tue, 30 Mar 2021 08:16:01 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=53718 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lRDHt-0001fx-8W; Tue, 30 Mar 2021 08:16:01 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: zimoun Subject: Re: [PATCH] display grafted package References: <86im5a6ea4.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 10 Germinal an 229 de la =?utf-8?Q?R=C3=A9volution?= 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: Tue, 30 Mar 2021 14:15:59 +0200 In-Reply-To: <86im5a6ea4.fsf@gmail.com> (zimoun's message of "Mon, 29 Mar 2021 01:37:23 +0200") Message-ID: <87r1jwg7ls.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.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.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1617106614; 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; bh=6fcBhrDI3qpmgWSB8xVSQph/fvRYNzBUTzZTck59cbg=; b=SITgHy4IxFFtGXP0zJ9C+78UFuuxsahedUgHPLEUU6UFhwoAyNCyAEDDMzGfAAOt4gRDIO zArhc925fW6yvvoCHBVt22xOGhhKFmVTmMKayq3uzqiLixuM1KyPpHu4NwCjOh6Sa5kSye 1E09X0ck5qrzBUHJci4oiep66rbsSzRTQdhyycwZjsZAe210YGAr6vACMruXMDRbFmzTBf aGtwb4Lp83ltGgdXidj6q7qMdgfRaWrAABy627iNtscVIjwrdBQpsCnHgdntYoGDCYToIx Hv9+C7jMjxrKUrv4ECIgle4oCKhdQlkZ5lOTSpJWMapWNC8WC/0xRmPDTAznYA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617106614; a=rsa-sha256; cv=none; b=o3ebXSGwSLFVhsgER/+9HTP2CuoNjLsHw3IdZNq5RJjyNR6abLMVPezX4i2aziZfXUj125 diH/by5EmABR2V8sGr0QWsIoaSKtrhsYHisnZXN2RzpdWA2TcbPGDLki6ZHm2AmyXZl3Tl lULjkwN6cJIcfJSMvqY/E2IXrymB7WXnvircHWad34z6EN01Fi2uTuPdswV24vnymvP/uI HRhWOzuetASNUulgopgy/F6fc0ozOr64meko4scQYuGqqeDBBZSpXPKUb244xn2kl5PRjq WjK3VZpQtbMbF+udsAMeLbgGy1mlXLvcNurY6KKp5qSSYT5RbKpevpVlPxTLOg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -2.92 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: C072926986 X-Spam-Score: -2.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: Cc5ZEuTB0u+8 Hi, zimoun skribis: > The attached patch does that only for =E2=80=99package->recutils=E2=80=99= (show and > search). For instance, note the =E2=80=99replaced=E2=80=99 field for the= grafted > package. (Obviously, it could be any other word than =E2=80=99replaced= =E2=80=99 > compatible with the recutils record.) [...] > name: zstd > version: 1.4.4 > replaced: 1.4.9 I=E2=80=99d make it =E2=80=9Creplacement=E2=80=9D rather than =E2=80=9Crepl= aced=E2=80=9D. > How display such information for =E2=80=99package -A=E2=80=99? The (sele= cted) output > looks like: > > zstd 1.4.9 out,lib,static gnu/packages/compression.scm:1473:2 > zstd 1.4.4 out,lib,static gnu/packages/compression.scm:1402:2 Ultimately, you=E2=80=99d want =E2=80=98fold-packages=E2=80=99 to traverse = replacements, but I don=E2=80=99t think that=E2=80=99s a good idea because it would break the a= ssumption that =E2=80=98fold-packages=E2=80=99 only traverses public packages. All in all, I=E2=80=99m in favor of either the status quo or the =E2=80=98package->recutils=E2=80=99 patch you propose. Thanks, Ludo=E2=80=99.