From: "Ludovic Courtès" <ludo@gnu.org>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: 33285@debbugs.gnu.org
Subject: bug#33285: Installing, then removing, a package yields a different profile
Date: Mon, 04 Feb 2019 19:02:16 +0100 [thread overview]
Message-ID: <877eefsa8n.fsf@gnu.org> (raw)
In-Reply-To: <87sgx4wjlv.fsf@elephly.net> (Ricardo Wurmus's message of "Mon, 04 Feb 2019 00:14:04 +0100")
Hello!
Ricardo Wurmus <rekado@elephly.net> skribis:
> Note that they differ in the inclusion of /gnu/store/h0905d946s3xarcfakan8jnblcdqxs3a-hello-2.10.drv as
> a derivation input.
>
> I guess that the problem might be in “profile-derivation”, which defines
> “inputs” like this:
>
> (define inputs
> (append (filter-map (lambda (drv)
> (and (derivation? drv)
> (gexp-input drv)))
> extras)
> (manifest-inputs manifest)))
>
> I pk’d at the value returned by manifest-inputs and found this:
>
> $ guix package -p .guix-profile -i hello
> The following package will be installed:
> hello 2.10 /gnu/store/md2plii4g5sk66wg9cgwc964l3xwhrm9-hello-2.10
>
>
> ;;; ((#<gexp-input #<package hello@2.10 gnu/packages/base.scm:68 31e4d80>:out>))
> 1 package in profile
> The following environment variable definitions may be needed:
> export PATH=".guix-profile/bin${PATH:+:}$PATH"
>
> $ guix package -p .guix-profile -i coreutils
> The following package will be installed:
> coreutils 8.30 /gnu/store/xzgfh8kdxilyymi1a8i97b1nci1iybhi-coreutils-8.30
>
>
> ;;; ((#<gexp-input #<package coreutils@8.30 gnu/packages/base.scm:338 39a7000>:out> #<gexp-input "/gnu/store/md2plii4g5sk66wg9cgwc964l3xwhrm9-hello-2.10":out>))
Good catch!
> Should manifest-inputs distinguish between a package entry and a file
> entry and paper over the differences?
Actually, to do things correctly, we should really store the .drv in the
‘manifest’ file. That way, manifest entries would always contains a
valid “lowerable” object (a package or a derivation record), as opposed
to a store reference that happens to be valid.
I’ll see if I can come up with a patch for this.
Thanks,
Ludo’.
next prev parent reply other threads:[~2019-02-04 18:03 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-06 6:25 bug#33285: Installing, then removing, a package yields a different profile Chris Marusich
2018-11-06 14:25 ` Ludovic Courtès
2018-11-07 7:08 ` Chris Marusich
2019-02-03 23:14 ` Ricardo Wurmus
2019-02-04 18:02 ` Ludovic Courtès [this message]
2019-02-06 13:19 ` Ludovic Courtès
2019-02-06 14:29 ` Ricardo Wurmus
2019-02-07 11:11 ` Jelle Licht
2019-02-09 3:44 ` Chris Marusich
2019-03-12 11:58 ` Ricardo Wurmus
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=877eefsa8n.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=33285@debbugs.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 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).