From: ludo@gnu.org (Ludovic Courtès)
To: Nikita Karetnikov <nikita@karetnikov.org>
Cc: guix-devel@gnu.org
Subject: Re: Bootstrapping GHC
Date: Mon, 30 Sep 2013 21:29:33 +0200 [thread overview]
Message-ID: <87li2e5crm.fsf@gnu.org> (raw)
In-Reply-To: <87siwma8j6.fsf@karetnikov.org> (Nikita Karetnikov's message of "Mon, 30 Sep 2013 14:49:49 +0400")
Nikita Karetnikov <nikita@karetnikov.org> skribis:
> I’ve been thinking about GHC recently. (A quick reminder: there are
> binary versions [1], but we can’t use them because some binaries point
> to ‘/bin/sh’.) I believe the following should work for x86_64 and i686:
I don’t know GHC, but apparently it can be bootstrapped from
intermediate generated C files:
http://www.haskell.org/ghc/docs/6.4.1/html/building/sec-porting-ghc.html
Wouldn’t that be better than fiddling with binaries out-of-band?
> Questions:
>
> 1. We’d have to host the binaries (step 2) somewhere and repeat the
> process whenever the hash of ‘/bin/sh’ changes. How often will this
> happen?
The hash of /bin/sh? Where did you see /bin/sh? :-)
> 2. Does Guix allow to fetch files from multiple places? Is it possible
> to use ‘url-fetch’ plus a local file? Could you show an example?
The ‘uri’ argument can be a list:
(origin
(method url-fetch)
(uri (list "http://..." "file://..."))
(sha256 ...))
However, ‘url-fetch’ doesn’t support file://.
The other option would be to allow ‘source’ to be a list; that’s easily
implemented, just not done yet.
HTH,
Ludo’.
next prev parent reply other threads:[~2013-09-30 19:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-30 10:49 Bootstrapping GHC Nikita Karetnikov
2013-09-30 19:29 ` Ludovic Courtès [this message]
2013-10-01 2:03 ` Nikita Karetnikov
2013-10-01 7:04 ` Ludovic Courtès
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87li2e5crm.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=guix-devel@gnu.org \
--cc=nikita@karetnikov.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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.