From: Svante Signell <svante.signell@gmail.com>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: Status update+patches:Re: I managed to build guix natively on Debian GNU/Hurd , what's next?
Date: Wed, 04 Sep 2019 08:25:12 +0200 [thread overview]
Message-ID: <a241b6028c0adf1059a84ac5f85ee0e775d9d239.camel@gmail.com> (raw)
In-Reply-To: <3770127fed5eb6bf39eba4fb76a05c180c1b093e.camel@gmail.com>
On Wed, 2019-09-04 at 06:31 +0200, Svante Signell wrote:
>
> unpacking bootstrap Guile to '/gnu/store/ncp3yhr6c38kqvgb8c967vnhly59yf1m-
> guile-bootstrap-2.0'...
This stuff comes from gnu/packages/bootstrap.scm
#!~a
export GUILE_SYSTEM_PATH=~a/share/guile/2.0
export GUILE_SYSTEM_COMPILED_PATH=~a/lib/guile/2.0/ccache
exec -a \"~a0\" ~a \"~a@\"\n"
bash out out dollar guile-real dollar)))
(chmod guile #o555)
(chmod bin-dir #o555))))))
(builder
(add-text-to-store store
"build-bootstrap-guile.sh"
(format #f "
echo \"unpacking bootstrap Guile to '$out'...\"
~a $out
cd $out
~a -dc < $GUILE_TARBALL | ~a xv
# Use the bootstrap guile to create its own wrapper to set the load path.
GUILE_SYSTEM_PATH=$out/share/guile/2.0 \
GUILE_SYSTEM_COMPILED_PATH=$out/lib/guile/2.0/ccache \
$out/bin/guile -c ~s $out ~a
# Sanity check.
$out/bin/guile --version~%"
...
resulting in /gnu/store/f2zsfb7ywkjmv7rzbnrzxi68hrcijnsf-build-bootstrap-
guile.sh
echo "unpacking bootstrap Guile to '$out'..."
/gnu/store/dh3nk21gj69nmqx6mp97vq97b1xz0yia-mkdir $out
cd $out
/gnu/store/yaxqsba39qdlyv3wrz04i3705l0l0kyp-xz -dc < $GUILE_TARBALL |
/gnu/store/z8zria3rlr8p24kx4gk6wwlmfpyp4lhv-tar xv
# Use the bootstrap guile to create its own wrapper to set the load path.
GUILE_SYSTEM_PATH=$out/share/guile/2.0
GUILE_SYSTEM_COMPILED_PATH=$out/lib/guile/2.0/ccache $out/bin/guile -c "(begin
(use-modules (ice-9 match)) (match (command-line) ((_ out bash) (let ((bin-dir
(string-append out \"/bin\")) (guile (string-append out \"/bin/guile\")) (guile-
real (string-append out \"/bin/.guile-real\")) (dollar (string (integer->char
36)))) (chmod bin-dir 493) (rename-file guile guile-real) (call-with-output-file
guile (lambda (p) (format p \"#!~a\\nexport
GUILE_SYSTEM_PATH=~a/share/guile/2.0\\nexport
GUILE_SYSTEM_COMPILED_PATH=~a/lib/guile/2.0/ccache\\nexec -a \\\"~a0\\\" ~a
\\\"~a@\\\"\\n\" bash out out dollar guile-real dollar))) (chmod guile 365)
(chmod bin-dir 365)))))" $out /gnu/store/l79x4bhi7gw87xq0dwjia55qvdr0d4lz-bash
# Sanity check.
$out/bin/guile --version
I would like to run this script manually:
I've found that
out=/gnu/store/ncp3yhr6c38kqvgb8c967vnhly59yf1m-guile-bootstrap-2.0
But how to set GUILE_TARBALL and ~a?
BTW: What is ~a, something guile-specific?
next prev parent reply other threads:[~2019-09-04 6:25 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-29 19:25 I managed to build guix natively on Debian GNU/Hurd , what's next? Svante Signell
2019-08-29 22:51 ` Svante Signell
2019-08-29 23:36 ` Ricardo Wurmus
2019-08-30 12:00 ` Svante Signell
2019-08-30 17:14 ` Julien Lepiller
2019-08-30 18:25 ` Svante Signell
2019-08-30 21:07 ` Svante Signell
2019-08-30 21:30 ` Ricardo Wurmus
2019-08-30 21:52 ` Svante Signell
2019-08-30 22:17 ` Ricardo Wurmus
2019-08-31 8:06 ` Svante Signell
2019-08-31 8:13 ` Julien Lepiller
2019-08-31 9:24 ` Svante Signell
2019-08-31 9:41 ` Julien Lepiller
2019-08-31 12:12 ` Ricardo Wurmus
2019-08-31 17:27 ` Svante Signell
2019-09-01 9:11 ` Svante Signell
2019-09-01 9:32 ` Efraim Flashner
2019-09-01 13:28 ` Svante Signell
2019-09-01 18:01 ` Svante Signell
2019-09-03 12:07 ` Status update+patches:Re: " Svante Signell
2019-09-03 12:58 ` Ricardo Wurmus
2019-09-03 13:56 ` Svante Signell
2019-09-03 14:34 ` Svante Signell
2019-09-03 21:13 ` Svante Signell
2019-09-03 21:26 ` Ricardo Wurmus
2019-09-03 21:46 ` Svante Signell
2019-09-03 22:01 ` Ricardo Wurmus
2019-09-04 4:31 ` Svante Signell
2019-09-04 6:25 ` Svante Signell [this message]
2019-09-04 7:52 ` Ricardo Wurmus
2019-09-04 18:24 ` Svante Signell
2019-09-04 21:44 ` Ricardo Wurmus
2019-09-08 20:55 ` Ludovic Courtès
2019-09-10 8:10 ` Svante Signell
2019-09-20 15:59 ` Svante Signell
2019-09-20 17:03 ` Ricardo Wurmus
2019-09-20 17:49 ` Svante Signell
2019-09-20 18:48 ` Svante Signell
2019-09-20 19:12 ` Jonathan Brielmaier
2019-09-21 11:26 ` Svante Signell
2019-09-21 16:47 ` Svante Signell
2019-09-22 8:45 ` Need help: Re: Status update+patches:Re: I managed to ... GNU/Hurd Svante Signell
2019-09-24 13:06 ` Summary Re: Need help: " Svante Signell
2019-09-20 22:18 ` Status update+patches:Re: I managed to build guix natively on Debian GNU/Hurd , what's next? Ricardo Wurmus
2019-09-21 8:10 ` Svante Signell
2019-08-30 21:56 ` Julien Lepiller
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=a241b6028c0adf1059a84ac5f85ee0e775d9d239.camel@gmail.com \
--to=svante.signell@gmail.com \
--cc=guix-devel@gnu.org \
--cc=rekado@elephly.net \
/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.