From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 2IKVKOGBw2JKCwEAbAwnHQ (envelope-from ) for ; Tue, 05 Jul 2022 02:12:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 6meQJ+GBw2LnvQAAG6o9tA (envelope-from ) for ; Tue, 05 Jul 2022 02:12: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 507AE28DFB for ; Tue, 5 Jul 2022 02:12:17 +0200 (CEST) Received: from localhost ([::1]:39258 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o8WAq-0000rH-0n for larch@yhetil.org; Mon, 04 Jul 2022 20:12:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50384) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8WAQ-0000r6-Po for guix-devel@gnu.org; Mon, 04 Jul 2022 20:11:50 -0400 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:43763) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o8WAO-0001eS-V2; Mon, 04 Jul 2022 20:11:50 -0400 Received: by mail-wm1-x333.google.com with SMTP id u12-20020a05600c210c00b003a02b16d2b8so6418093wml.2; Mon, 04 Jul 2022 17:11:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=iNzFHAnAuD50HwFAbpbrJxJMi5Cmvrp1EWDJnDzPQFc=; b=owTqogu1B81alwADaPH5USNSGN/svWvWXQN9Rh3t9HW0uGoP9OJDpD3fCZyOhSVi8g +ARGqP/JprDVB3aosG1IYJ0GCUTY3gWs95napZds1nKt3w7CBGGalIMJkwFTteQvzVDg bh4+b14hJN/BwRbIl5e4F1TxRL5d7CRZDo+vbRu+2Ty6XXqbMvwq1/6z+FlIHOwWtrKL jnHWpJGLWTMCfjuX4ykJ/B0zQ8dUVD6OLFBFO6LXH2suwQauIFrffFjjb+0KISTlPJQH /czZt8Os3Akpr0H56C7dUhiKAiINPHfzrwkIRE6x7NX4Cbme+8irwB00RmEq5xCOxLZ/ Xt5A== 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:date:message-id:mime-version :content-transfer-encoding; bh=iNzFHAnAuD50HwFAbpbrJxJMi5Cmvrp1EWDJnDzPQFc=; b=XCqcYyq0+Y8BsODgjGsi+xtBK5WIZmU37rec2aPUvYbO151JqnCSDXw1M18MNOjyhV FeJtpL++J9bu+hy1NG6lV6gbThsHrJ7w4NZXU3OpA5XsDUHq+i3cgfAfTgQuYjWKGxRw 5V0LE+pF4Olf1kFd9rlkkIW1erqOj2RsxcD53CIihNr3FGzcGfzxyoP6uEXbJ31hDVN4 WtHFaM1m/v2CgybaPteuTAFiwv2M9Q4FcIqzNpOE/6p1onGEdTfS/v0dySYVxzbwkR5T UTfFjS0EZxTTQvZmN2L/ivQ+ndKqpu8I6lRVDQZEZdDN3DyIQzVC5otZmNh/qOZK0xOF ovyw== X-Gm-Message-State: AJIora92gntu8GdeXaV6hpErbmMmJsKKCpI0OFzPDWmovMYBhditlnK2 CoAeb83zZ82ruJaxe7xA8R2AlBrXFbz45w== X-Google-Smtp-Source: AGRyM1tx1tDlUFBoheXFp8N0d6RqbmCfkF/RvEvgk8WqgzvjnMIw1mCLuk/i5XNgKg8Y1CFXdKwQbQ== X-Received: by 2002:a05:600c:b5a:b0:3a0:569f:9158 with SMTP id k26-20020a05600c0b5a00b003a0569f9158mr34414517wmr.118.1656979906563; Mon, 04 Jul 2022 17:11:46 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id 13-20020a05600c020d00b0039c362311d2sm20317081wmi.9.2022.07.04.17.11.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jul 2022 17:11:46 -0700 (PDT) From: zimoun To: Guix Devel Cc: Marius Bakke Subject: grafted package and CLI Date: Tue, 05 Jul 2022 02:07:32 +0200 Message-ID: <86ilocxvzv.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x333.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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=1656979937; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=iNzFHAnAuD50HwFAbpbrJxJMi5Cmvrp1EWDJnDzPQFc=; b=aIDenydbSxw9T3mmYSxtEZZ+dS6YsK+o3xOxEjdeIdL8Vr9HoRsBlOZ+06BalQfK+Ldszp R2hcmvmiHkO1TgpZDM9uBAGVj32SQYdAlK6Dmcnq/tOatTP/SGHrMXj879MHx2l48GAcQQ BPXXG6ZEPYCnqws4+W6Z/x++uHxraUq09Es/bUi2gCdEWsZt5oy+YC7LCQTxbma8RhUSlf zdRp4GwVVWzVw6b65jUwSquoBQ6uwGDRdL31OcqkG2932DBPw4UYxtRZBbkiBilRwun0AX Mj4JG+5UAtXU5XBUW1O0S8JLcFtiFkb6epoMH6jeuV11OP3Vg5Zi/bYd3aiaAQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656979937; a=rsa-sha256; cv=none; b=Dz6xBIfbzievtvP8rzfBLTiLheIuaRoaQ3zbgP8F5bI5rLjiTsimD+k1nPedX4w+Da/62a 8ecAWCAGdo5NuQWlg1NoLIBjrZBeQJBwpCUNjQK2k3mq9DvkszzRb75XAJbHXriENifTUe O0syFB5N9BSZUsAk6jUSOHssHVxC01E+jqmLGzgHR4F50FeSpbJYWO21HUOPG4pwX9yl39 Kz4a666M+kZ5qMiNHcsmPvRvU3juB8wFwEU04DqMzUDZmuAmI9cFmEBiiZcDJLnSC9G4dY 2R5n4upOju8z0n/FkZOfDHwIf+1+JDEFcv2OREXpr29SgrtYecQCzUr6c4YHcQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=owTqogu1; dmarc=pass (policy=none) header.from=gmail.com; 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.95 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=owTqogu1; dmarc=pass (policy=none) header.from=gmail.com; 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: 507AE28DFB X-Spam-Score: -5.95 X-Migadu-Scanner: scn0.migadu.com X-TUID: x1Ge/ys/F7t3 Hi, Commit 3fc6709d4285f44d1e861c7b09951adf3073e898 is a security fixes for the package =E2=80=99curl=E2=80=99; it reads, --8<---------------cut here---------------start------------->8--- (define-public curl (package (name "curl") (version "7.79.1") + (replacement curl-7.84.0) [...] +;; Replacement package with fixes for multiple vulnerabilities. +;; See . +(define curl-7.84.0 + (package + (inherit curl) --8<---------------cut here---------------end--------------->8--- So far, so good! Well, it leads to these behaviour: $ guix show curl | recsel -p name,version name: curl version: 7.79.1 $ guix build curl -S /gnu/store/67w9zrlm1xahczf55f9rd15aaqadbixj-curl-7.84.0.tar.xz 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 ^cu= rl=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 perfor= mance) 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. About =E2=80=9Cguix shell=E2=80=9D, a warning could be added. Well, WDYT? Cheers, simon --8<---------------cut here---------------start------------->8--- 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 (package8--- 1: 2: