Report forwarded
to bug-guix@gnu.org: bug#41796; Package guix.
(Wed, 10 Jun 2020 22:33:01 GMT) (full text, mbox, link).
Acknowledgement sent
to Jakub Kądziołka <kuba@kadziolka.net>:
New bug report received and forwarded. Copy sent to bug-guix@gnu.org.
(Wed, 10 Jun 2020 22:33:02 GMT) (full text, mbox, link).
Severity set to 'important' from 'normal'
Request was from Marius Bakke <marius@gnu.org>
to control@debbugs.gnu.org.
(Wed, 10 Jun 2020 22:38:01 GMT) (full text, mbox, link).
Added tag(s) security.
Request was from Ludovic Courtès <ludo@gnu.org>
to control@debbugs.gnu.org.
(Thu, 11 Jun 2020 10:51:01 GMT) (full text, mbox, link).
Information forwarded
to bug-guix@gnu.org: bug#41796; Package guix.
(Thu, 11 Jun 2020 16:47:02 GMT) (full text, mbox, link).
Subject: Re: bug#41796: Grafts don't handle outputs other than out
Date: Thu, 11 Jun 2020 18:46:09 +0200
Hi!
I’m 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’m
omitting outputs that, if left ungrafted, won’t 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" "static"))) 1))
(cons p result)
result))
'())
$11 = (#<package nss@3.50 gnu/packages/nss.scm:73 7f88caa62e60>)
--8<---------------cut here---------------end--------------->8---
This is because of the “bin” output of ‘nss’.
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 “bin”:
--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’.
Reply sent
to Ludovic Courtès <ludo@gnu.org>:
You have taken responsibility.
(Thu, 11 Jun 2020 17:13:01 GMT) (full text, mbox, link).
Notification sent
to Jakub Kądziołka <kuba@kadziolka.net>:
bug acknowledged by developer.
(Thu, 11 Jun 2020 17:13:01 GMT) (full text, mbox, link).
Subject: Re: bug#41796: Grafts don't handle outputs other than out
Date: Thu, 11 Jun 2020 19:12:11 +0200
Hi Jakub,
Thanks a lot for the reduced test case, much appreciated!
This is fixed with 03a70e4c190420e87c0b535285caf8f77260d4ff, which
includes a test inspired by yours.
ecf92194a55188a9c217d76617378749db063453 adds an nghttp2 replacement, as
you suggested on IRC, which is what prompted you to report this bug.
Apparently it works as expected. Same for 389-ds-base.
Thanks,
Ludo’.
bug archived.
Request was from Debbugs Internal Request <help-debbugs@gnu.org>
to internal_control@debbugs.gnu.org.
(Fri, 10 Jul 2020 11:24:05 GMT) (full text, mbox, link).
Debbugs is free software and licensed under the terms of the
GNU Public License version 2. The current version can be
obtained from https://bugs.debian.org/debbugs-source/.