From: "pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de>
To: John Darrington <john@darrington.wattle.id.au>
Cc: guix-devel@gnu.org
Subject: Re: Install hook
Date: Sun, 19 Mar 2017 14:41:09 +0100 [thread overview]
Message-ID: <0c3559f8-520a-43fc-56d1-2c03c8d6ad90@pelzflorian.de> (raw)
In-Reply-To: <20170319131413.GA3671@jocasta.intra>
[-- Attachment #1.1: Type: text/plain, Size: 2297 bytes --]
On 03/19/2017 02:14 PM, John Darrington wrote:
> The problem as I understand it is as follows:
>
> Two (or more) packages both contain a file: /gnu/store/.../xyz/foo
>
> So long as those two packages are not both installed into the same profile at
> the same time, this is not a problem. However if the user chooses to
> install both packages concurrently, then there is a potential conflict and
> Guix "resolves" this conflict by arbitrarily choosing the xyz/foo from one
> package or the other.
>
> One could put a "hook" on package A which (through some method) says: "When
> this package (A) is installed, then the xyz/foo file from THIS package must
> be the one installed into the profile, and not any other one."
>
> That will work fine so long as only package A has such a hook. But what
> happens if package B also contains an identical hook? Both packages' hooks
> will then insist that their xyz/foo is the one which must be installed.
>
> Nothing will have been solved. There will still be a conflict, just shifted
> up a level.
>
>
> The issue as I see it is that neither file is the "right" one to install -
> or to put it another way - BOTH are the right ones.
>
> The solutions which I think have been discussed previously are:
>
> 1. Add an option to the "guix package --install" command to allow the user
> to specify which packages' files should take priority.
>
> 2. Use some kind of heuristic based on date installed and other info to
> guess which one is "right".
>
> 3. ... probably some other suggestions which I've probably forgotten.
>
>
> Also, I think we talked about consolidating the warning messages when these
> conflicts occur, so that a less overwhelming number of them are emitted.
>
> J'
>
No, normally gschemas.compiled is one file storing information about all
GSettings application. It must thus be created from files provided by
multiple packages.
For example, gnome-calculator ships
org.gnome.calculator.gschema.xml
and gnome-maps ships
org.gnome.Maps.gschema.xml
and from both source files a file gschemas.compiled needs to be created
when gnome-calculator and gnome-maps are installed to the same profile.
This single file then stores settings of both packages.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2017-03-19 13:41 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-19 10:30 Install hook Florian Pelz
2017-03-19 11:23 ` John Darrington
2017-03-19 12:14 ` Julien Lepiller
2017-03-19 12:50 ` pelzflorian (Florian Pelz)
2017-03-19 13:14 ` John Darrington
2017-03-19 13:41 ` pelzflorian (Florian Pelz) [this message]
2017-03-21 2:03 ` John Darrington
2017-03-21 8:11 ` Ricardo Wurmus
2017-03-21 10:06 ` pelzflorian (Florian Pelz)
2017-03-21 20:51 ` Florian Pelz
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=0c3559f8-520a-43fc-56d1-2c03c8d6ad90@pelzflorian.de \
--to=pelzflorian@pelzflorian.de \
--cc=guix-devel@gnu.org \
--cc=john@darrington.wattle.id.au \
/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.