From unknown Tue Jun 17 22:28:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#41796: Grafts don't handle outputs other than out Resent-From: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 10 Jun 2020 22:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41796 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 41796@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159182835423480 (code B ref -1); Wed, 10 Jun 2020 22:33:01 +0000 Received: (at submit) by debbugs.gnu.org; 10 Jun 2020 22:32:34 +0000 Received: from localhost ([127.0.0.1]:35584 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jj9Gs-00066d-Dm for submit@debbugs.gnu.org; Wed, 10 Jun 2020 18:32:34 -0400 Received: from lists.gnu.org ([209.51.188.17]:58504) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jj9Gq-00066W-Gz for submit@debbugs.gnu.org; Wed, 10 Jun 2020 18:32:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45214) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jj9Gq-0007Il-7l for bug-guix@gnu.org; Wed, 10 Jun 2020 18:32:32 -0400 Received: from pat.zlotemysli.pl ([37.59.186.212]:37390) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jj9Go-0004cW-Qt for bug-guix@gnu.org; Wed, 10 Jun 2020 18:32:31 -0400 Received: (qmail 28345 invoked by uid 1009); 11 Jun 2020 00:32:22 +0200 Received: from 188.123.215.55 (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl (envelope-from , uid 1002) with qmail-scanner-2.08st (clamdscan: 0.98.6/25838. spamassassin: 3.4.0. perlscan: 2.08st. Clear:RC:1(188.123.215.55):. Processed in 0.044012 secs); 10 Jun 2020 22:32:22 -0000 Received: from unknown (HELO gravity) (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl with SMTP; 11 Jun 2020 00:32:22 +0200 Date: Thu, 11 Jun 2020 00:32:20 +0200 From: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Message-ID: <20200610223220.hi36uznx57jol2h5@gravity> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="xlaou5elr4sabhoi" Content-Disposition: inline Received-SPF: none client-ip=37.59.186.212; envelope-from=kuba@kadziolka.net; helo=pat.zlotemysli.pl X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/10 18:32:22 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --xlaou5elr4sabhoi Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable $ cat test.scm (use-modules (guix packages) (guix build-system trivial)) (define-public core-pkg (package (name "core-pkg") (version "1.0") (replacement core-pkg/fixed) (source #f) (outputs '("out" "lib")) (build-system trivial-build-system) (arguments `(#:modules ((guix build utils)) #:builder (begin (use-modules (guix build utils)) (let ((outdir (assoc-ref %outputs "out")) (libdir (assoc-ref %outputs "lib"))) (mkdir-p outdir) (mkdir-p libdir) #t)))) (synopsis #f) (description #f) (home-page #f) (license #f))) (define-public core-pkg/fixed (package (inherit core-pkg) (version "1.1"))) (package (name "other-pkg") (version "4.2") (source #f) (build-system trivial-build-system) (inputs `(("core-pkg" ,core-pkg) ("core-pkg:lib" ,core-pkg "lib"))) (arguments `(#:modules ((guix build utils)) #:builder (begin (use-modules (guix build utils)) (let ((outdir (assoc-ref %outputs "out"))) (mkdir-p outdir) (with-output-to-file (string-append outdir "/hello") (lambda () (display (assoc-ref %build-inputs "core-pkg")) (newline) (display (assoc-ref %build-inputs "core-pkg:lib")) (newline))) #t)))) (synopsis #f) (description #f) (home-page #f) (license #f)) ~$ cat `guix build --no-offload -f test.scm`/hello /gnu/store/pmz07rzm63z02lkyyldsw3srf98h01y2-core-pkg-1.1 /gnu/store/pivsji8qfpln4i4v0f5v5cjmzakmcmvg-core-pkg-1.0-lib Expected output: the second line contains -core-pkg-1.1-lib. Regards, Jakub K=C4=85dzio=C5=82ka --xlaou5elr4sabhoi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIyBAABCAAdFiEE5Xa/ss9usT31cTO54xWnWEYTFWQFAl7hX28ACgkQ4xWnWEYT FWSEyw/3XMAjfC55ltrKpOkpQnX8abjwBJjJlwHy/b+qQHf+WwTMGxecYCUVExXt qsFRho0qCQVqkhj5iwB0ownem/GZCnwjkbUXJ2vMwb3wHrra3pBFwoQjdg6Yv+Q5 KKlyP+nNK9+MTz8+AKzMd9Yng52dl2LE4qS/v9Gi6oxirreStG3+MdBrenpYBPWU gitD/erPRx6abYeHHP4l1HI5YdmU/MtP4orNBv8N+bKBMaqEcYhpg6dhPLJg6vHB mozrW9AMR0XghKr6xlNwg7ddh8xcyQnW6Mj4Ongl/LXqQXr/znq1kgrR3jeemRGu SDGMYdmW1gsRtqwBnrGL0bvY++Kcbb3+lYuxqOkLvE/Br2u4c9e/TYcw5p8AqeGA vY6McSyv1VLFOmFhQ19fejaO3bQiglACBRdZGVybWQ8yNh6olfip8DfVUVrgxPAz tpf1aqroaWAR68RrgsQEc6LmPfYysKzZVJp8drJtiGvqU7MsgWNFBrHVxZpGv4l9 DUSQMyz0M9NPLSMzz9Nz9q4lU4Nt1MkyvV52iT08Rgls9WU5w+M+QK2b3FS2sZlq uqV/8TzB3HhCbCjAeNY5HNYzFwiqBd/TCwSnArYlUwAKnb0/88tHoy0nS2+/C2pd x+VhpFNcqj+F/nbhhPuk0atztnhi274c6GYTKO0+uve6Wh9ZKA== =o5vg -----END PGP SIGNATURE----- --xlaou5elr4sabhoi-- From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 10 18:37:13 2020 Received: (at control) by debbugs.gnu.org; 10 Jun 2020 22:37:13 +0000 Received: from localhost ([127.0.0.1]:35590 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jj9LM-0006Dg-VD for submit@debbugs.gnu.org; Wed, 10 Jun 2020 18:37:13 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38080) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jj9LL-0006DS-LQ for control@debbugs.gnu.org; Wed, 10 Jun 2020 18:37:11 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:51120) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jj9LG-0005OW-D8 for control@debbugs.gnu.org; Wed, 10 Jun 2020 18:37:06 -0400 Received: from ti0006q161-2604.bb.online.no ([84.202.68.75]:37270 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jj9LF-0001OW-D5 for control@debbugs.gnu.org; Wed, 10 Jun 2020 18:37:06 -0400 From: Marius Bakke To: control@debbugs.gnu.org Subject: Date: Thu, 11 Jun 2020 00:37:03 +0200 Message-ID: <87sgf2fsz4.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.3 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) severity 41796 important thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 11 06:50:10 2020 Received: (at control) by debbugs.gnu.org; 11 Jun 2020 10:50:10 +0000 Received: from localhost ([127.0.0.1]:36115 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jjKmg-0001yb-Ei for submit@debbugs.gnu.org; Thu, 11 Jun 2020 06:50:10 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54298) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jjKmf-0001yK-IQ for control@debbugs.gnu.org; Thu, 11 Jun 2020 06:50:09 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59373) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jjKma-0006oU-83 for control@debbugs.gnu.org; Thu, 11 Jun 2020 06:50:04 -0400 Received: from [2a01:e0a:1d:7270:6a6c:dc17:fc02:cfda] (port=58092 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jjKmZ-00042C-EQ for control@debbugs.gnu.org; Thu, 11 Jun 2020 06:50:03 -0400 Date: Thu, 11 Jun 2020 12:50:01 +0200 Message-Id: <87mu59c1wm.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #41796 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 41796 + security quit From unknown Tue Jun 17 22:28:39 2025 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?= Cc: 41796@debbugs.gnu.org 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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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. From unknown Tue Jun 17 22:28:39 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Jakub =?UTF-8?Q?K=C4=85dzio=C5=82ka?= Subject: bug#41796: closed (Re: bug#41796: Grafts don't handle outputs other than out) Message-ID: References: <87y2ota5n8.fsf@gnu.org> <20200610223220.hi36uznx57jol2h5@gravity> X-Gnu-PR-Message: they-closed 41796 X-Gnu-PR-Package: guix X-Gnu-PR-Keywords: security Reply-To: 41796@debbugs.gnu.org Date: Thu, 11 Jun 2020 17:13:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1591895581-9033-1" This is a multi-part message in MIME format... ------------=_1591895581-9033-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #41796: Grafts don't handle outputs other than out which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 41796@debbugs.gnu.org. --=20 41796: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D41796 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1591895581-9033-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 41796-done) by debbugs.gnu.org; 11 Jun 2020 17:12:20 +0000 Received: from localhost ([127.0.0.1]:37923 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jjQkW-0002Kb-Gp for submit@debbugs.gnu.org; Thu, 11 Jun 2020 13:12:20 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54326) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jjQkV-0002KQ-B6 for 41796-done@debbugs.gnu.org; Thu, 11 Jun 2020 13:12:19 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37949) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jjQkP-0000wJ-KN; Thu, 11 Jun 2020 13:12:13 -0400 Received: from [2a01:e0a:1d:7270:6a6c:dc17:fc02:cfda] (port=52028 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jjQkP-0006ZB-4L; Thu, 11 Jun 2020 13:12:13 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Jakub =?utf-8?B?S8SFZHppb8WCa2E=?= Subject: Re: bug#41796: Grafts don't handle outputs other than out References: <20200610223220.hi36uznx57jol2h5@gravity> Date: Thu, 11 Jun 2020 19:12:11 +0200 In-Reply-To: <20200610223220.hi36uznx57jol2h5@gravity> ("Jakub \=\?utf-8\?B\?S8SFZHppb8WCa2EiJ3M\=\?\= message of "Thu, 11 Jun 2020 00:32:20 +0200") Message-ID: <87y2ota5n8.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-Debbugs-Envelope-To: 41796-done Cc: 41796-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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=E2=80=99. ------------=_1591895581-9033-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 10 Jun 2020 22:32:34 +0000 Received: from localhost ([127.0.0.1]:35584 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jj9Gs-00066d-Dm for submit@debbugs.gnu.org; Wed, 10 Jun 2020 18:32:34 -0400 Received: from lists.gnu.org ([209.51.188.17]:58504) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jj9Gq-00066W-Gz for submit@debbugs.gnu.org; Wed, 10 Jun 2020 18:32:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45214) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jj9Gq-0007Il-7l for bug-guix@gnu.org; Wed, 10 Jun 2020 18:32:32 -0400 Received: from pat.zlotemysli.pl ([37.59.186.212]:37390) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jj9Go-0004cW-Qt for bug-guix@gnu.org; Wed, 10 Jun 2020 18:32:31 -0400 Received: (qmail 28345 invoked by uid 1009); 11 Jun 2020 00:32:22 +0200 Received: from 188.123.215.55 (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl (envelope-from , uid 1002) with qmail-scanner-2.08st (clamdscan: 0.98.6/25838. spamassassin: 3.4.0. perlscan: 2.08st. Clear:RC:1(188.123.215.55):. Processed in 0.044012 secs); 10 Jun 2020 22:32:22 -0000 Received: from unknown (HELO gravity) (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl with SMTP; 11 Jun 2020 00:32:22 +0200 Date: Thu, 11 Jun 2020 00:32:20 +0200 From: Jakub =?utf-8?B?S8SFZHppb8WCa2E=?= To: bug-guix@gnu.org Subject: Grafts don't handle outputs other than out Message-ID: <20200610223220.hi36uznx57jol2h5@gravity> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="xlaou5elr4sabhoi" Content-Disposition: inline Received-SPF: none client-ip=37.59.186.212; envelope-from=kuba@kadziolka.net; helo=pat.zlotemysli.pl X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/10 18:32:22 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --xlaou5elr4sabhoi Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable $ cat test.scm (use-modules (guix packages) (guix build-system trivial)) (define-public core-pkg (package (name "core-pkg") (version "1.0") (replacement core-pkg/fixed) (source #f) (outputs '("out" "lib")) (build-system trivial-build-system) (arguments `(#:modules ((guix build utils)) #:builder (begin (use-modules (guix build utils)) (let ((outdir (assoc-ref %outputs "out")) (libdir (assoc-ref %outputs "lib"))) (mkdir-p outdir) (mkdir-p libdir) #t)))) (synopsis #f) (description #f) (home-page #f) (license #f))) (define-public core-pkg/fixed (package (inherit core-pkg) (version "1.1"))) (package (name "other-pkg") (version "4.2") (source #f) (build-system trivial-build-system) (inputs `(("core-pkg" ,core-pkg) ("core-pkg:lib" ,core-pkg "lib"))) (arguments `(#:modules ((guix build utils)) #:builder (begin (use-modules (guix build utils)) (let ((outdir (assoc-ref %outputs "out"))) (mkdir-p outdir) (with-output-to-file (string-append outdir "/hello") (lambda () (display (assoc-ref %build-inputs "core-pkg")) (newline) (display (assoc-ref %build-inputs "core-pkg:lib")) (newline))) #t)))) (synopsis #f) (description #f) (home-page #f) (license #f)) ~$ cat `guix build --no-offload -f test.scm`/hello /gnu/store/pmz07rzm63z02lkyyldsw3srf98h01y2-core-pkg-1.1 /gnu/store/pivsji8qfpln4i4v0f5v5cjmzakmcmvg-core-pkg-1.0-lib Expected output: the second line contains -core-pkg-1.1-lib. Regards, Jakub K=C4=85dzio=C5=82ka --xlaou5elr4sabhoi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIyBAABCAAdFiEE5Xa/ss9usT31cTO54xWnWEYTFWQFAl7hX28ACgkQ4xWnWEYT FWSEyw/3XMAjfC55ltrKpOkpQnX8abjwBJjJlwHy/b+qQHf+WwTMGxecYCUVExXt qsFRho0qCQVqkhj5iwB0ownem/GZCnwjkbUXJ2vMwb3wHrra3pBFwoQjdg6Yv+Q5 KKlyP+nNK9+MTz8+AKzMd9Yng52dl2LE4qS/v9Gi6oxirreStG3+MdBrenpYBPWU gitD/erPRx6abYeHHP4l1HI5YdmU/MtP4orNBv8N+bKBMaqEcYhpg6dhPLJg6vHB mozrW9AMR0XghKr6xlNwg7ddh8xcyQnW6Mj4Ongl/LXqQXr/znq1kgrR3jeemRGu SDGMYdmW1gsRtqwBnrGL0bvY++Kcbb3+lYuxqOkLvE/Br2u4c9e/TYcw5p8AqeGA vY6McSyv1VLFOmFhQ19fejaO3bQiglACBRdZGVybWQ8yNh6olfip8DfVUVrgxPAz tpf1aqroaWAR68RrgsQEc6LmPfYysKzZVJp8drJtiGvqU7MsgWNFBrHVxZpGv4l9 DUSQMyz0M9NPLSMzz9Nz9q4lU4Nt1MkyvV52iT08Rgls9WU5w+M+QK2b3FS2sZlq uqV/8TzB3HhCbCjAeNY5HNYzFwiqBd/TCwSnArYlUwAKnb0/88tHoy0nS2+/C2pd x+VhpFNcqj+F/nbhhPuk0atztnhi274c6GYTKO0+uve6Wh9ZKA== =o5vg -----END PGP SIGNATURE----- --xlaou5elr4sabhoi-- ------------=_1591895581-9033-1--