From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id uUAaOaxg4l7+cQAA0tVLHw (envelope-from ) for ; Thu, 11 Jun 2020 16:49:48 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id qIliNKxg4l6RHQAAB5/wlQ (envelope-from ) for ; Thu, 11 Jun 2020 16:49:48 +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 4EDC794036C for ; Thu, 11 Jun 2020 16:49:48 +0000 (UTC) Received: from localhost ([::1]:32774 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jjQOh-0005Bq-A4 for larch@yhetil.org; Thu, 11 Jun 2020 12:49:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50080) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jjQM2-0002Bq-RI for bug-guix@gnu.org; Thu, 11 Jun 2020 12:47:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54598) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jjQM2-0003qI-GE for bug-guix@gnu.org; Thu, 11 Jun 2020 12:47:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jjQM2-0001ea-DL for bug-guix@gnu.org; Thu, 11 Jun 2020 12:47:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#41796: Grafts don't handle outputs other than out Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 11 Jun 2020 16:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41796 X-GNU-PR-Package: guix X-GNU-PR-Keywords: security To: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Received: via spool by 41796-submit@debbugs.gnu.org id=B41796.15918939806296 (code B ref 41796); Thu, 11 Jun 2020 16:47:02 +0000 Received: (at 41796) by debbugs.gnu.org; 11 Jun 2020 16:46:20 +0000 Received: from localhost ([127.0.0.1]:37911 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jjQLL-0001dT-T1 for submit@debbugs.gnu.org; Thu, 11 Jun 2020 12:46:20 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41684) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jjQLK-0001dF-1g for 41796@debbugs.gnu.org; Thu, 11 Jun 2020 12:46:18 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37594) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jjQLE-0003RI-23; Thu, 11 Jun 2020 12:46:12 -0400 Received: from [2a01:e0a:1d:7270:6a6c:dc17:fc02:cfda] (port=60412 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jjQLD-0003pe-Bb; Thu, 11 Jun 2020 12:46:11 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20200610223220.hi36uznx57jol2h5@gravity> Date: Thu, 11 Jun 2020 18:46:09 +0200 In-Reply-To: <20200610223220.hi36uznx57jol2h5@gravity> ("Jakub \=\?utf-8\?B\?S8SFZHppb8WCa2EiJ3M\=\?\= message of "Thu, 11 Jun 2020 00:32:20 +0200") Message-ID: <87bllpblf2.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 41796@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: -1.01 X-TUID: YU0EoiuS7P0C Hi! I=E2=80=99m trying to estimate the impact of this bug. As of a50628bbe0fa4ba3835e311098e4fdf7a1d8a29e, there seems to be only one package whose replacement could end up not being grafted (here I=E2=80=99m omitting outputs that, if left ungrafted, won=E2=80=99t affect security): --8<---------------cut here---------------start------------->8--- scheme@(guile-user)> (fold-packages (lambda (p result) (if (and (package-replacement p) (> (length (fold delete (package-outputs p) '("debug" "doc" "st= atic"))) 1)) (cons p result) result)) '()) $11 =3D (#) --8<---------------cut here---------------end--------------->8--- This is because of the =E2=80=9Cbin=E2=80=9D output of =E2=80=98nss=E2=80= =99. >From a quick grep, there 3 packages depending on nss:bin: 389-ds-base, libcacard, and xmlsec-nss. 389-ds-base is affected: it keeps a reference to the ungrafted =E2=80=9Cbin= =E2=80=9D: --8<---------------cut here---------------start------------->8--- $ guix gc --references $(guix build 389-ds-base --no-grafts) |grep nss- /gnu/store/gfpgqvwrixhf3sf1bnzsfxzvld0nd8b7-nss-3.50 /gnu/store/vvsa5q0g790wi97zadj5qklqpiw1fqc1-nss-3.50-bin $ guix gc --references $(guix build 389-ds-base) |grep nss- /gnu/store/588jh89ng8f7ks4wsay6mdm4dxapk2d6-nss-3.50 /gnu/store/vvsa5q0g790wi97zadj5qklqpiw1fqc1-nss-3.50-bin --8<---------------cut here---------------end--------------->8--- The other two are fine: --8<---------------cut here---------------start------------->8--- $ guix gc --references $(guix build libcacard --no-grafts) |grep nss- /gnu/store/gfpgqvwrixhf3sf1bnzsfxzvld0nd8b7-nss-3.50 $ guix gc --references $(guix build libcacard) |grep nss- /gnu/store/588jh89ng8f7ks4wsay6mdm4dxapk2d6-nss-3.50 $ guix gc --references $(guix build xmlsec-nss --no-grafts) |grep nss- /gnu/store/fwb0adczsx3nqsdnj92xnv85n93qa17n-xmlsec-nss-1.2.30 /gnu/store/gfpgqvwrixhf3sf1bnzsfxzvld0nd8b7-nss-3.50 $ guix gc --references $(guix build xmlsec-nss ) |grep nss- /gnu/store/2gzk5rfg86zyxk8d9z6b7x0xkwar95cj-xmlsec-nss-1.2.30 /gnu/store/588jh89ng8f7ks4wsay6mdm4dxapk2d6-nss-3.50 --8<---------------cut here---------------end--------------->8--- Ludo=E2=80=99.