From: Chris Marusich <cmmarusich@gmail.com>
To: 33285@debbugs.gnu.org
Subject: bug#33285: Installing, then removing, a package yields a different profile
Date: Mon, 05 Nov 2018 22:25:46 -0800 [thread overview]
Message-ID: <8736seyb6d.fsf@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1678 bytes --]
Hi,
I've noticed that if I do the following...
guix package -p .guix-profile -i hello
guix package -p .guix-profile -i coreutils
guix package -p .guix-profile -r coreutils
...I get profile generations like the following:
.guix-profile-1-link -> /gnu/store/mbvwb1pv8ps0l39gil41g4zj3khx3r8p-profile
.guix-profile-2-link -> /gnu/store/m6cwnnxcccnd8bga52jxn74vm67n7ry1-profile
.guix-profile-3-link -> /gnu/store/qfpmx9rz7kxa8w8r2pz4vj8ilbi70dcp-profile
However, the 1st and 3rd generations are practically the same:
--8<---------------cut here---------------start------------->8---
$ diff -r /gnu/store/mbvwb1pv8ps0l39gil41g4zj3khx3r8p-profile /gnu/store/qfpmx9rz7kxa8w8r2pz4vj8ilbi70dcp-profile
diff -r /gnu/store/mbvwb1pv8ps0l39gil41g4zj3khx3r8p-profile/etc/profile /gnu/store/qfpmx9rz7kxa8w8r2pz4vj8ilbi70dcp-profile/etc/profile
11c11
< export PATH="${GUIX_PROFILE:-/gnu/store/mbvwb1pv8ps0l39gil41g4zj3khx3r8p-profile}/bin${PATH:+:}$PATH"
---
> export PATH="${GUIX_PROFILE:-/gnu/store/qfpmx9rz7kxa8w8r2pz4vj8ilbi70dcp-profile}/bin${PATH:+:}$PATH"
[1] marusich@garuda.local:/tmp/tmp.ZOTdkBr4rD
$
--8<---------------cut here---------------end--------------->8---
Now, this isn't really a problem, since it isn't wasting space, and it
doesn't take long to build. It's more of a curiosity. Why is it that
profile generations 1 and 3 don't both point to the same profile in the
store? Is this expected behavior?
I wasn't sure what would happen when I tried this. I had guessed
(incorrectly) that generation 3 would point to the same profile that had
been built for generation 1, so I was a little surprised by this.
--
Chris
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
next reply other threads:[~2018-11-06 6:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-06 6:25 Chris Marusich [this message]
2018-11-06 14:25 ` bug#33285: Installing, then removing, a package yields a different profile 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
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=8736seyb6d.fsf@gmail.com \
--to=cmmarusich@gmail.com \
--cc=33285@debbugs.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).