From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id p8s/NXJpYWCeOgEAgWs5BA (envelope-from ) for ; Mon, 29 Mar 2021 07:45:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 2KhBLnJpYWDXOwAA1q6Kng (envelope-from ) for ; Mon, 29 Mar 2021 05:45:22 +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 5B4421A3E7 for ; Mon, 29 Mar 2021 07:45:22 +0200 (CEST) Received: from localhost ([::1]:49058 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQkiH-0005FF-GG for larch@yhetil.org; Mon, 29 Mar 2021 01:45:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37798) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQeyn-0006KM-0r for guix-devel@gnu.org; Sun, 28 Mar 2021 19:38:01 -0400 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]:39467) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lQeyk-0007in-VR for guix-devel@gnu.org; Sun, 28 Mar 2021 19:38:00 -0400 Received: by mail-wm1-x32f.google.com with SMTP id d8-20020a1c1d080000b029010f15546281so7608186wmd.4 for ; Sun, 28 Mar 2021 16:37:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version; bh=+U7nWsuKIQW9b2jRdNm9U7jgwdiHASxfpYn8nGJVRL4=; b=Q4x4zBttZEsy+KfqF713hIlPeDN7BquM82IowpTZRbDdg7YiEH89dCw0j8+Gb/OYr7 HZrgVufnXAinotM9IdYb2n/hS5WfGVHbL2qBkn5C1iAauBRzA+yk05Qw6RqVyGCrmy76 maktaNS/hAQp6xzJQCIgvsvslkLlcV7/C1/MK67yeBbBF9kWSSf23c/xgm3onic9Bap6 NT9l1+Tms0MSTAafBgET/Oo+4Sw2el1oTYbssM9XNZXNmFvHG1CEba8AUSVdL7yFRF/2 fLru1/UizAvDNbemY1ijxv0xFNrmR6P3s99XpXgxawfgaUJXnUOftUSvgNxwCX6940C1 bYsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version; bh=+U7nWsuKIQW9b2jRdNm9U7jgwdiHASxfpYn8nGJVRL4=; b=rbyWMFqYG5+9w2wd5zzjxlVBtHlkX+Sqsjhi4y9PSDkJic2KRAfxHNZ2yXWU3b30K0 dXjU2FDqcvF9pztVO6M3vKcIOoOIU10B4G2qHgOyYSEkblMkc0vXDGloIaXnwmWJLxCg YNFW6Pi4SrdSOR43DymOW+5f57Gp3Wf4Rnp3pYooDEGzmCm1ihEdWOS8dQzX+tPRKHRF /yeUa+a3jeqZWV/K4JYVKTCTNIoemCLl3YW7Trqx3gW25cBPZfVM+/hBWzli+ljzXWBH ynTM7sFVgPmJ7wIiHsP2lUZb9exylZ4Ymwu8qBboKva016STdFEunDpAZercZzfupCeW wN7A== X-Gm-Message-State: AOAM532yEs3E3hjSrTZ6kaGrJqX7AyY9QzKhGbCdl4VgbCmhonjlywPX C6TeaWyPvBhucQOARLTXR9BRQk2wLYM= X-Google-Smtp-Source: ABdhPJz/sTF2+GjzPu1YTL13MIgO/oi/RP4SOtxh5i6FF2y2SwFSD3apNsQ+v6MaTbG9s/dviw165g== X-Received: by 2002:a1c:e184:: with SMTP id y126mr22514614wmg.163.1616974676656; Sun, 28 Mar 2021 16:37:56 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id v189sm23052629wme.39.2021.03.28.16.37.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Mar 2021 16:37:56 -0700 (PDT) From: zimoun To: Mark H Weaver , Andreas Enge Subject: [PATCH] display grafted package Date: Mon, 29 Mar 2021 01:37:23 +0200 Message-ID: <86im5a6ea4.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x32f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 29 Mar 2021 01:42:20 -0400 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=1616996722; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=+U7nWsuKIQW9b2jRdNm9U7jgwdiHASxfpYn8nGJVRL4=; b=u7Xb4x9+wx1Somo6LjkLXHw4BAkkSfKHLX9hkyZzk0TXZM3LsLZN3tEM3W6C/OaVybGwFr SGYHbgSPCgHyc3UtkmmgF/idFRCOO1/Zey1cQC3/u8eLPpZtGze3vlJ6keAwFXmG5oK6sS H3lVflxBl2DFDEePqmF/KvzAW9AOvsXwYcswnGdcO+BS/ykbLZsEwy5PPuU2RkVCdNTjCn E4+t616nK38ZJECZgjL8dZ3yGsB6huZcfjQMltI9geoL3IP2eY+zD7nRRFm0b7mTeiJ3i4 4GTVS5TbXTeSP4PpuV4KMCCpF8Eh7mrWHSoYwQnr1dqRvCnMnlI5vZxOtz9pXw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616996722; a=rsa-sha256; cv=none; b=LtFuyxJ8+jAaSBzpa/bOOq0YyTEMn5zd8nq2kHoN9YQ014YGxIrwBZ6xadXKjIibsvrXX0 d5AKPocaG9cmpzK6beioeEVbBNYdQJ8V6paImFpwLbCDxNtsJEuK7AYPjaGD9WB3mCHmJz ZJ8nc6WBWKI5O7gSfXkf8gbthUihWblMSXm6vEznjcaMla3x3nmPDMnQWTYpfAdnKjAoDm B7MLfG/5Ur3DqO+fdHxuCtcmTZcZYcCjwB4UfHFYWprDe2uQEXt7c9bupRO1Tejng5ySLZ ddyQdb2GKix2U/Wc3Fmr5iVC0plYy7GwJQADK+djG8an7nilWOLOrLJp8XKKPw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=Q4x4zBtt; dmarc=pass (policy=none) header.from=gmail.com; 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: -3.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=Q4x4zBtt; dmarc=pass (policy=none) header.from=gmail.com; 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: 5B4421A3E7 X-Spam-Score: -3.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: ZfiMRzdEIJfs --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Mark and Andreas Quoting from . On Tue, 23 Mar 2021 at 19:42, Mark H Weaver wrote: > How about changing "guix package -A" and "guix package -s" to display > information about the package's replacement, if it has one? > > Alternatively, those commands could somehow explicitly indicate that the > package has been grafted, and show the version number of the > replacement, in such a way that is less confusing to users. 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 g= rafted package. (Obviously, it could be any other word than =E2=80=99replaced=E2= =80=99 compatible with the recutils record.) --8<---------------cut here---------------start------------->8--- $ time ./pre-inst-env guix show zstd name: zstd version: 1.4.9 outputs: out lib static systems: x86_64-linux i686-linux dependencies:=20 location: gnu/packages/compression.scm:1473:2 homepage: https://facebook.github.io/zstd/ license: Modified BSD, FreeBSD, GPL 2, GPL 3+, Expat, Public Domain, Zlib synopsis: Zstandard real-time compression algorithm=20=20 description: Zstandard (`zstd') is a lossless compression algorithm that + combines very fast operation with a compression ratio comparable to that = of + zlib. In most scenarios, both compression and decompression can be perfo= rmed + in =E2=80=98real time=E2=80=99. The compressor can be configured to prov= ide the most suitable + trade-off between compression ratio and speed, without affecting decompre= ssion + speed. name: zstd version: 1.4.4 replaced: 1.4.9 outputs: out lib static systems: x86_64-linux i686-linux dependencies:=20 location: gnu/packages/compression.scm:1402:2 homepage: https://facebook.github.io/zstd/ license: Modified BSD, FreeBSD, GPL 2, GPL 3+, Expat, Public Domain, Zlib synopsis: Zstandard real-time compression algorithm=20=20 description: Zstandard (`zstd') is a lossless compression algorithm that + combines very fast operation with a compression ratio comparable to that = of + zlib. In most scenarios, both compression and decompression can be perfo= rmed + in =E2=80=98real time=E2=80=99. The compressor can be configured to prov= ide the most suitable + trade-off between compression ratio and speed, without affecting decompre= ssion + speed. real 0m0.822s user 0m1.039s sys 0m0.057s --8<---------------cut here---------------end--------------->8--- On my machine, it slows down from 0.5s to 0.8s; I do not know why. How display such information for =E2=80=99package -A=E2=80=99? The (select= ed) output looks like: --8<---------------cut here---------------start------------->8--- 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 --8<---------------cut here---------------end--------------->8--- And it appears to me hard to add another field or add something to the =E2=80=991.4.4=E2=80=99 line. I mean, it would probably break some script.= Maybe some people use this format to pipe. I do not know. WDYT? Cheers, simon --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=show-grafted.patch Content-Description: show-graft.patch 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 sequences when appropriate." (define (package