From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:35500) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i1HAA-0002DX-Pa for guix-patches@gnu.org; Fri, 23 Aug 2019 17:32:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i1HA9-0006Rv-RN for guix-patches@gnu.org; Fri, 23 Aug 2019 17:32:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60751) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i1HA9-0006Rq-OV for guix-patches@gnu.org; Fri, 23 Aug 2019 17:32:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i1HA9-000407-Ji for guix-patches@gnu.org; Fri, 23 Aug 2019 17:32:01 -0400 Subject: [bug#37026] [PATCH] packages: Apply target triplet in bag-transitive-host-inputs. Resent-Message-ID: From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20190814125755.18360-1-dthompson2@worcester.edu> Date: Fri, 23 Aug 2019 23:31:08 +0200 In-Reply-To: <20190814125755.18360-1-dthompson2@worcester.edu> (David Thompson's message of "Wed, 14 Aug 2019 08:57:55 -0400") Message-ID: <87r25bzi03.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: David Thompson Cc: 37026@debbugs.gnu.org Hello, David Thompson skribis: > Fixes a bug where propagated inputs that should be cross-compiled are ins= tead > compiled for the host system. > > * guix/packages.scm (bag-transitive-host-inputs): Call transitive-inputs = in > the context of the bag's target system triplet. > --- > guix/packages.scm | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/guix/packages.scm b/guix/packages.scm > index c94a651f27..143417b861 100644 > --- a/guix/packages.scm > +++ b/guix/packages.scm > @@ -796,7 +796,8 @@ dependencies are known to build on SYSTEM." >=20=20 > (define (bag-transitive-host-inputs bag) > "Same as 'package-transitive-target-inputs', but applied to a bag." > - (transitive-inputs (bag-host-inputs bag))) > + (parameterize ((%current-target-system (bag-target bag))) > + (transitive-inputs (bag-host-inputs bag)))) Good catch, please push! Thanks, Ludo=E2=80=99.