unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Danny Milosavljevic <dannym@scratchpost.org>
To: Leo Famulari <leo@famulari.name>, ludo@gnu.org
Cc: "guix-devel@gnu.org" <guix-devel@gnu.org>
Subject: Prevent native-inputs references ending up in the final binary
Date: Sat, 20 Jan 2018 11:40:59 +0100	[thread overview]
Message-ID: <20180120114059.34736dda@scratchpost.org> (raw)
In-Reply-To: <20180120001317.GD18016@jasmine.lan>

Hi Leo,

> Although native-inputs are typically things that are only required while
> building [0], there's nothing that prevents a built package from keeping
> references to native-inputs.

We should change that in core-updates-next, if possible.
 
I think that native-inputs shouldn't end up in the final binary as a
reference, especially when cross-compiling
(but we don't do cross-compilation much in Guix - usually, we let
qemu-arm emulate the ARM CPU on x86_64 and just call the target tool :) ).

If there are indeed parts of the same package, one a native part and one a
runtime dependency part, I actually write the same package reference twice,
once in the inputs, once in the native-inputs, in my custom package
definitions.

In a "previous life" I did a lot of Linux cellphone development and,
there, it was kinda important that a x86_64 toolchain doesn't end
up being referenced in an ARM binary, so the habit stuck - and I
think it's important to distinguish the mold used to form a product
from an integral part of that product.

  reply	other threads:[~2018-01-20 10:41 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-18 15:19 Is it necessary to download the native inputs while installing packages? Fis Trivial
2018-01-18 17:36 ` Tobias Geerinckx-Rice
2018-01-18 19:56   ` Leo Famulari
2018-01-18 20:01     ` Tobias Geerinckx-Rice
2018-01-18 20:54     ` Fis Trivial
2018-01-19 13:24       ` Ludovic Courtès
2018-01-20  0:13       ` Leo Famulari
2018-01-20 10:40         ` Danny Milosavljevic [this message]
2018-01-20 15:47           ` Prevent native-inputs references ending up in the final binary Tobias Geerinckx-Rice
2018-01-21 22:37             ` Leo Famulari
2018-01-21 22:47               ` Tobias Geerinckx-Rice
2018-01-24 14:26                 ` Ludovic Courtès
2018-01-26  0:56           ` Fis Trivial
2018-01-26  1:05             ` Tobias Geerinckx-Rice

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180120114059.34736dda@scratchpost.org \
    --to=dannym@scratchpost.org \
    --cc=guix-devel@gnu.org \
    --cc=leo@famulari.name \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).