From: Rene <pacoon@protonmail.com>
To: "guix-devel@gnu.org" <guix-devel@gnu.org>
Subject: create a symlink
Date: Wed, 18 Apr 2018 22:54:54 -0400 [thread overview]
Message-ID: <pY9dUjkjx0GLNpsehoc7_PsQ9fOAz2Mo5VIbNFk8fbzjEGI8EMBqwOn8cN2KUa5tEIrsMVn3B7zqXcKQgG0HYrlipO-Oe4AqDh_YCVPZ8Fg=@protonmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1335 bytes --]
Hello,
In 'gnu/build/install.scm', I try to create a symlink from '/gnu/store/..hurd-0.9' to /hurd during 'guix system init '.
But Guix waits for a string, is it possible to use a package to do the symlink?
--------CODE---------------
(let ((hurd-1 (string-append target
"/hurd")))
(let try ()
(catch 'system-error
(lambda ()
(symlink hurd hurd-1))
(lambda args
;; If hurd-1 already exists, overwrite it.
(if (= EEXIST (system-error-errno args))
(begin
(delete-file hurd-1)
(try))
(apply throw args))))))
-----------------------
-----------ERROR-------------
In guix/scripts/system.scm:
181: 4 [#<procedure b1fd9c0 at guix/scripts/system.scm:183:4 (state)> #]
In ice-9/eval.scm:
432: 3 [eval # #]
In ice-9/boot-9.scm:
157: 2 [catch system-error #<procedure afcd888 at ice-9/eval.scm:416:20 ()> ...]
157: 1 [catch system-error #<procedure afcd858 at guix/ui.scm:359:2 ()> ...]
In unknown file:
?: 0 [symlink # "/home/jin/subhurd/rfs/hurd"]
ERROR: In procedure symlink:
ERROR: Wrong type (expecting string): #<package hurd@0.9 gnu/packages/hurd.scm:251 98c7120>
--------------------------
Thank you
Rene
[-- Attachment #2: Type: text/html, Size: 14950 bytes --]
next reply other threads:[~2018-04-19 2:55 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-19 2:54 Rene [this message]
2018-04-19 6:26 ` create a symlink Danny Milosavljevic
2018-04-19 21:23 ` Joshua Branson
2018-04-21 14:31 ` Rene
2018-04-27 5:20 ` Rene
2018-04-27 15:08 ` Danny Milosavljevic
2019-03-07 22:11 ` Rene
2019-03-08 8:15 ` Danny Milosavljevic
-- strict thread matches above, loose matches on Subject: below --
2019-03-08 21:13 Rene
2019-03-09 8:22 ` Danny Milosavljevic
2019-03-12 20:57 Rene
2019-03-13 11:25 ` Danny Milosavljevic
2019-03-13 14:52 ` Ludovic Courtès
2019-03-25 23:06 ` Danny Milosavljevic
2019-03-28 1:54 Rene
2019-04-03 7:12 ` Chris Marusich
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='pY9dUjkjx0GLNpsehoc7_PsQ9fOAz2Mo5VIbNFk8fbzjEGI8EMBqwOn8cN2KUa5tEIrsMVn3B7zqXcKQgG0HYrlipO-Oe4AqDh_YCVPZ8Fg=@protonmail.com' \
--to=pacoon@protonmail.com \
--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).