unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Danny Milosavljevic <dannym@scratchpost.org>
Cc: guix-devel@gnu.org
Subject: Re: branch master updated: gnu: Add musl-cross.
Date: Wed, 06 May 2020 16:01:54 +0200	[thread overview]
Message-ID: <87imh9i2lp.fsf@gnu.org> (raw)
In-Reply-To: <20200503221719.06f58042@scratchpost.org> (Danny Milosavljevic's message of "Sun, 3 May 2020 22:17:19 +0200")

Hi,

Danny Milosavljevic <dannym@scratchpost.org> skribis:

> On Sun, 03 May 2020 21:26:23 +0200
> Ludovic Courtès <ludo@gnu.org> 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’.


      parent reply	other threads:[~2020-05-06 14:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20200502155209.18737.35721@vcs0.savannah.gnu.org>
2020-05-03 19:26 ` branch master updated: gnu: Add musl-cross Ludovic Courtès
2020-05-03 20:17   ` Danny Milosavljevic
2020-05-03 20:45     ` Vincent Legoll
2020-05-06 14:01     ` Ludovic Courtès [this message]

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=87imh9i2lp.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=dannym@scratchpost.org \
    --cc=guix-devel@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).