From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2F7QNNgcLWJ3IgAAgWs5BA (envelope-from ) for ; Sat, 12 Mar 2022 23:21:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id uAl7MdgcLWKgCAAAauVa8A (envelope-from ) for ; Sat, 12 Mar 2022 23:21:12 +0100 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 6FE9F32989 for ; Sat, 12 Mar 2022 23:21:12 +0100 (CET) Received: from localhost ([::1]:45392 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nTA6p-0002lO-IR for larch@yhetil.org; Sat, 12 Mar 2022 17:21:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48004) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nTA6g-0002lF-Rk for guix-patches@gnu.org; Sat, 12 Mar 2022 17:21:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:47136) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nTA6g-0007qB-Im for guix-patches@gnu.org; Sat, 12 Mar 2022 17:21:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nTA6g-0006x2-BM for guix-patches@gnu.org; Sat, 12 Mar 2022 17:21:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#54335] [PATCH 14/14] gnu: Add nebula. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 12 Mar 2022 22:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54335 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Dominic Martinez Cc: 54335@debbugs.gnu.org Received: via spool by 54335-submit@debbugs.gnu.org id=B54335.164712366126693 (code B ref 54335); Sat, 12 Mar 2022 22:21:02 +0000 Received: (at 54335) by debbugs.gnu.org; 12 Mar 2022 22:21:01 +0000 Received: from localhost ([127.0.0.1]:41033 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nTA6e-0006wT-W1 for submit@debbugs.gnu.org; Sat, 12 Mar 2022 17:21:01 -0500 Received: from michel.telenet-ops.be ([195.130.137.88]:48630) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nTA6c-0006wK-U2 for 54335@debbugs.gnu.org; Sat, 12 Mar 2022 17:20:59 -0500 Received: from [172.20.10.5] ([188.189.206.172]) by michel.telenet-ops.be with bizsmtp id 5aLw270083jiMiL06aLwoe; Sat, 12 Mar 2022 23:20:57 +0100 Message-ID: From: Maxime Devos Date: Sat, 12 Mar 2022 23:20:56 +0100 In-Reply-To: <8735joryt9.fsf@dominicm.dev> References: <20220311031849.12681-1-dom@dominicm.dev> <20220311034741.14377-1-dom@dominicm.dev> <20220311034741.14377-5-dom@dominicm.dev> <676ab07b73ee6c939bf1096eb8c251cedbce7220.camel@telenet.be> <8735joryt9.fsf@dominicm.dev> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-iBiXT2dya2M3jFs05wJ1" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1647123657; bh=ldhgvFHVWhh3IBZY/5R8rRk9aHbx/+xZiA/C7fRDYVU=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=c3RwHwqb76/Zg5MjdqSgRLXK7+TrojzUMgw8IN+xP8sfskF5K+/TF5WlYF+REngyO ly92oU5/42pgqkSnBTLLCmfy85DkiuDs9xNy4btgDMa6WXEmWYxbGvbDT5NjX02rlw fsDeq19dcKl09Oh9pdqnmFc98B0NqlE1hFYzluvt0XfWdJdwz7PMUI3TNTN/eKOf8r SOQcdDQaJLzRPE1gC86Gq2eGb3ireeW5kCoe8sH+TYvgxg6FCKlt+GOCxf8mv9LEji gcKo52PfA94UAfKKqXIiTvWmKC5C46iP9jvtmciVmxbUoBvpwp1abbx/tZ4s1MZyTA 4DtULJeqe3Jmg== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" 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=1647123672; 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:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=ldhgvFHVWhh3IBZY/5R8rRk9aHbx/+xZiA/C7fRDYVU=; b=NPrjUS7d0IH/uNmeiWxx9zgbr7odDCh0Sa2qRU1XxnWqEFQ6sqz0EDxkGbU2ri0smt4W4j ZE1ZEfi2lVmER2wL6JyC5SPik7WwKqH5BnpF9DDey2HE0CPxHvBdzK/KGNYMar+84Z6zC9 MHYMSZ6wRO48oJGhLSsAn1T9tYKJLmBseJ5kdj4dY+ui0+4p7Gx9+2CgzqDeChDr0DGFha +9IlixWUoYkxMC+V+xGRAWp7/SL97F7s8u8rea7woKUdpsmMnGh2whsoFiP6qMVagY5l7t 7JlIlJeRyhVS7//oR1KaOuEdbCfAjkuLzjtQXtRb0aPcSBBRjuSutMMULxgRoA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647123672; a=rsa-sha256; cv=none; b=hqxqRy6FTgL6BYp+zw8oZtZA75nduj/fZ92OupB5lx2MsI99JNNT4T9MirFjmmF2eH3uID sshIuKxaFGASG8AQY/uuMxweWpkuczxlpgyuI5CPmxNOubLSVxU18Jao4Ofar8tn9SE4Xx p+qExBKZTara6lbpeE9cCDYYzqdqFU4p52UaAV1uUW0rVqXVXnsh6+lj+qhtHIkZW0o++8 Zn6OlZrRAEUEdVNOFMpq+3YQbN7x+qADYLo/dlFhOKuvL/9VTVDo/vJY+LxbY8BGnzfrru mTUQpLa+JM0sAo6pRbbLperemqHxQm3rxrTQhVyNegIsVRO0jFwZZSW06rRvrA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=c3RwHwqb; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 3.22 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=c3RwHwqb; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 6FE9F32989 X-Spam-Score: 3.22 X-Migadu-Scanner: scn0.migadu.com X-TUID: E5N3yWD3lhBD --=-iBiXT2dya2M3jFs05wJ1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dominic Martinez schreef op vr 11-03-2022 om 15:53 [-0500]: > Maxime Devos writes: >=20 > > I doubt that all of these are compile-time tools.=C2=A0 At least most= =20 > > of > > them are probably inputs.=C2=A0 (The distinction is important for=20 > > cross- > > compilation.) >=20 > I think I'm confused on how to approach this because Go produces=20 > statically linked binaries. A lot of other Go packages also seem=20 > to use native-inputs. How does this interact with=20 > cross-compilation? All the inputs are used as source libraries=20 > here so I'm not sure how to tell if a runtime input is needed. Static linking is not relevant to inputs/native-inputs -- Guix inputs don't have a build-time/runtime distinction (*), instead they have a the-architecture-it-is-being-built-on/the-architecture-it-is-built-for distinction. 'inputs' =3D compiled for --target, 'native-inputs' =3D compiled for --system. (*) ignoring complications introduced by propagation. More concretely, consider the following case: * a program A depends on the Go library B * the Go library B depends on the C library libfoo (using whatever is Go's equivalent of 'dlopen') * to avoid things like LD_LIBRARY_PATH, the package definition in Guix replaces 'libfoo.so' by '/gnu/store/.../libfoo.so'. * the program A is being cross-compiled. To make sure that the cross-compiled A ends up using the libfoo.so compiled for --target instead of --system, B has to be in 'inputs' instead of 'native-inputs'. This also holds when no .so libraries are used, e.g. if B invokes some kind of binary with Go's equivalent of 'posix_spawn' and Guix hardcodes the binary location instead of relying on $PATH. I haven't tried this for Go packages in particular, but this is how things work for, say, C and Guile packages. Greetings, Maxime. --=-iBiXT2dya2M3jFs05wJ1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYi0cyBccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7t6gAQC5+RJwO0ziFVCUuYQkmYCb5k2W ThrogTm0tODSWgeVfAEAwvk8X4zv9WnrcEXlndq6zd4RvYDzz668O3kpoCVP3Qc= =DF5/ -----END PGP SIGNATURE----- --=-iBiXT2dya2M3jFs05wJ1--