guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: branch master updated: gnu: Add musl-cross.


From: Ludovic Courtès
Subject: Re: branch master updated: gnu: Add musl-cross.
Date: Wed, 06 May 2020 16:01:54 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

Hi,

Danny Milosavljevic <address@hidden> skribis:

> On Sun, 03 May 2020 21:26:23 +0200
> Ludovic Courtès <address@hidden> wrote:
>
>> I understand cross-base.scm is becoming messy and we would need an
>> abstraction to facilitate its use.  Still, to me it sounds like a better
>> option over big monolithic packages.
>> 
>> WDYT?
>
> In general I'm all for using our cross toolchain mechanism.
>
> However, this is the toolchain used by heads[1]--and they have reproducible
> builds.
>
> The use case is to be able to build heads in Guix without modification.
>
> Their attestation of secure boot actually verifies (and asks the user and
> documents the correct hashes in their README) whether the output hashes are
> correct--so the toolchain doesn't need to be just similar, it needs to make
> exactly the same executables.

OK, I see the practical need.

If we take a step back, I think that Heads would be stronger by using
Guix all the way down: it’d benefit from not just reproducible builds,
but also provenance tracking and a reduced set of bootstrap binaries.
In this grand scheme of things, the secure boot attestation of binaries
“built their way” should be compared with the benefits of having
binaries “built our way”.

There are also practical issues: building a whole toolchain as part of
this one package is expensive for our build farm and for users of said
package.

> Also, they are using musl instead of glibc.  I don't think we have a musl-gcc
> yet and I've never done a musl gcc before.
> Could be easy, could be hard--who knows.

I think it should be simpler than the MinGW or even GNU/Hurd
cross-toolchains that we have.  :-)

> That said, I'm all for it.
>
> However, I need heads for work--and one way or another it has to actually
> build the official version :)

Yup, makes sense!

Let’s just try and see how Heads and Guix can build upon each other
eventually.

Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]