From: Chris Marusich <cmmarusich@gmail.com>
To: Hartmut Goebel <h.goebel@crazy-compilers.com>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: Uninstalling a "unknown" package installs new stuff -> totally unexpected
Date: Fri, 10 Nov 2017 20:25:04 -0800 [thread overview]
Message-ID: <87bmk9cuhr.fsf@gmail.com> (raw)
In-Reply-To: <87tvy1oaxi.fsf@gmail.com> (Chris Marusich's message of "Fri, 10 Nov 2017 17:34:33 -0800")
[-- Attachment #1: Type: text/plain, Size: 1734 bytes --]
Chris Marusich <cmmarusich@gmail.com> writes:
> It may be technically possible to implement a different profile
> generation mechanism which allows the removal of a package by
> "un-symlinking" it from a previous profile generation. However, if we
> did that, it would mean that a profile generation might now depend on a
> profile generation that came before it.
I'd like to correct something I said in my last reply.
I just remembered that we have a declarative description of what is
installed in a profile at $PROFILE/manifest. In my last email, I may
have incorrectly described what happens during the removal of a package.
Judging by the code in guix/profiles.scm, it looks like we actually do
re-use the existing store items that are referenced by the previous
profile generation. Packages won't be upgraded unless you explicitly
ask for it (e.g., with the "-u" option). So, when G_vm removes p_1 from
the profile (i.e., when G_vm builds a new profile in which p_1 is not
present), G_vm will in fact re-use the same package versions in the new
generation that were installed in the previous generation. When I
suggested that the builds you were seeing occurred because G_vm would
want to build newer versions of all the packages, I believe was mistaken
- I apologize for any confusion I may have caused.
That said, I still think it's true that if G_vm is very different than
G_host, it is likely that G_vm will wind up doing a lot of builds for
things that G_host has "already" built (but which aren't installed in
the profile itself). Guix uses derivations to do a lot of stuff under
the covers, so I think this is likely to occur when G_vm and G_host are
very different.
--
Chris
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
prev parent reply other threads:[~2017-11-11 4:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-09 10:12 Uninstalling a "unknown" package installs new stuff -> totally unexpected Hartmut Goebel
2017-11-11 1:34 ` Chris Marusich
2017-11-11 4:25 ` Chris Marusich [this message]
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=87bmk9cuhr.fsf@gmail.com \
--to=cmmarusich@gmail.com \
--cc=guix-devel@gnu.org \
--cc=h.goebel@crazy-compilers.com \
/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.