From: Nikita Karetnikov <nikita@karetnikov.org>
To: guix-devel@gnu.org
Subject: Bootstrapping GHC
Date: Mon, 30 Sep 2013 14:49:49 +0400 [thread overview]
Message-ID: <87siwma8j6.fsf@karetnikov.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 1048 bytes --]
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:
1. We fetch the source version [2] (manually), adjust ‘/bin/sh’, and
build everything using a non-Guix GHC.
2. Then we copy the needed binaries somewhere.
3. After that we write a build recipe. It should fetch the binary
version of GHC [1], fix ‘/bin/sh’, and replace some binaries with the
binaries from the second step.
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?
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?
[1] http://www.haskell.org/ghc/dist/7.0.1/ghc-7.0.1-i386-unknown-linux.tar.bz2
[2] http://www.haskell.org/ghc/dist/7.0.1/ghc-7.0.1-src.tar.bz2
[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]
next reply other threads:[~2013-09-30 10:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-30 10:49 Nikita Karetnikov [this message]
2013-09-30 19:29 ` Bootstrapping GHC Ludovic Courtès
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=87siwma8j6.fsf@karetnikov.org \
--to=nikita@karetnikov.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 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.