From: Nikita Karetnikov <nikita@karetnikov.org>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: package.scm: (profile-derivation (%store) '())
Date: Sat, 21 Sep 2013 01:08:29 +0400 [thread overview]
Message-ID: <87a9j7b3qq.fsf@karetnikov.org> (raw)
In-Reply-To: <877gebdz2c.fsf@gnu.org> ("Ludovic Courtès"'s message of "Fri, 20 Sep 2013 22:21:15 +0200")
[-- Attachment #1: Type: text/plain, Size: 1272 bytes --]
> ‘%store’ is a SRFI-39 parameter (info "(guile) Parameters"), aka. a
> dynamically-scoped variable.
> It is initialized with the ‘parameterize’ form, which sets its value for
> the dynamic extent of its body.
I don’t understand what code initializes ‘%store’.
For example, I have one generation in the ‘test’ profile. So ‘test’
points to ‘test-1-link’. If I do
scheme@(guix scripts package)> (roll-back "test")
I get an error
guix/derivations.scm:428:17: In procedure derivation->output-path:
guix/derivations.scm:428:17: In procedure struct_vtable: Wrong type argument in position 1 (expecting struct): #f
Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue.
scheme@(guix scripts package) [1]>
This error is produced by (profile-derivation (%store) '()) since
‘%store’ is set to #f.
But why does this command work?
$ ./pre-inst-env guix package -p test --roll-back
switching from generation 1 to 0
As far as I understand, this code is called when the above command is
invoked:
;; First roll back if asked to.
(if (and (assoc-ref opts 'roll-back?) (not dry-run?))
(begin
(roll-back profile)
I don’t see any references to ‘%store’ here.
[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]
next prev parent reply other threads:[~2013-09-20 21:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-20 17:39 package.scm: (profile-derivation (%store) '()) Nikita Karetnikov
2013-09-20 20:21 ` Ludovic Courtès
2013-09-20 21:08 ` Nikita Karetnikov [this message]
2013-09-20 21:35 ` 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=87a9j7b3qq.fsf@karetnikov.org \
--to=nikita@karetnikov.org \
--cc=guix-devel@gnu.org \
--cc=ludo@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.