unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Efraim Flashner <efraim@flashner.co.il>
To: Andy Tai <atai@atai.org>
Cc: help-guix@gnu.org
Subject: Re: bootstrapping scenario for a package
Date: Tue, 21 Dec 2021 16:11:28 +0200	[thread overview]
Message-ID: <YcHgkEoOFGUBt2iR@3900XT> (raw)
In-Reply-To: <CAJsg1E-GA-BWpv4xt2Lkj95BA2EX-a8dgPgvtVRwE+bY1vvhoQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1522 bytes --]

On Sun, Dec 19, 2021 at 11:03:25PM -0800, Andy Tai wrote:
> Hi, I was trying to update mono to the current release version.  The
> build step as documented actually says to download a minimal C#
> compiler from the mono site which is then used to compile the rest of
> the source to build the full system.   I looked and did not find the
> source of this minimal compiler--so it is a black box in a way.
> 
> In free software it is ideal to build everything from source.   I
> wonder how is such a package handled in Guix?   What is the strategy
> for bootstrapping?   Thanks

For circular dependencies our first attempt is to use a minimal variant
of the package that's missing features to build the full package. For
something like a language that depends on a working implementation of
itself we'll see if we can bootstrap it using either a previous version
of itself, a different implementation or a slimmed down version that has
enough working to be able to build itself.

Some notable examples are rust, bootstrapped from mrustc, and a chain of
rust compilers. Also go, bootstrapped from gccgo or go-1.4 (written in
C). One where this fails is GHC, where even going back to the early 90's
it was near impossible to find an implementation that didn't depend on a
previous version.

-- 
Efraim Flashner   <efraim@flashner.co.il>   רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      reply	other threads:[~2021-12-21 14:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-20  7:03 bootstrapping scenario for a package Andy Tai
2021-12-21 14:11 ` Efraim Flashner [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=YcHgkEoOFGUBt2iR@3900XT \
    --to=efraim@flashner.co.il \
    --cc=atai@atai.org \
    --cc=help-guix@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.
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).