[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Prevent native-inputs references ending up in the final binary
From: |
Tobias Geerinckx-Rice |
Subject: |
Re: Prevent native-inputs references ending up in the final binary |
Date: |
Fri, 26 Jan 2018 02:05:09 +0100 |
Hullo,
On Fri, 2018-01-26 at 00:56 +0000, Fis Trivial wrote:
> On 01/20/2018 06:40 PM, Danny Milosavljevic wrote:
> > 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.
> >
>
> I'm no expert, but can this little utility from nix help?
> https://nixos.org/patchelf.html
In what way?
Patchelf re-writes library and/or loader paths in compiled binaries.
It's cool, but I don't immediately see the connexion...
Kind regards,
T G-R
- Re: Is it necessary to download the native inputs while installing packages?, (continued)
- Re: Is it necessary to download the native inputs while installing packages?, Tobias Geerinckx-Rice, 2018/01/18
- Re: Is it necessary to download the native inputs while installing packages?, Fis Trivial, 2018/01/18
- Re: Is it necessary to download the native inputs while installing packages?, Ludovic Courtès, 2018/01/19
- Re: Is it necessary to download the native inputs while installing packages?, Leo Famulari, 2018/01/19
- Prevent native-inputs references ending up in the final binary, Danny Milosavljevic, 2018/01/20
- Re: Prevent native-inputs references ending up in the final binary, Tobias Geerinckx-Rice, 2018/01/20
- Re: Prevent native-inputs references ending up in the final binary, Leo Famulari, 2018/01/21
- Re: Prevent native-inputs references ending up in the final binary, Tobias Geerinckx-Rice, 2018/01/21
- Re: Prevent native-inputs references ending up in the final binary, Ludovic Courtès, 2018/01/24
- Re: Prevent native-inputs references ending up in the final binary, Fis Trivial, 2018/01/25
- Re: Prevent native-inputs references ending up in the final binary,
Tobias Geerinckx-Rice <=