From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: package.provided messes up emerging of package slots?
Date: Mon, 12 Sep 2011 23:18:02 +0200 [thread overview]
Message-ID: <20110912231802.30b4fcd2@rohan> (raw)
In-Reply-To: <j4lr6i$cj7$1@dough.gmane.org>
On Mon, 12 Sep 2011 23:48:01 +0300
Nikos Chantziaras <realnc@arcor.de> wrote:
> > If you provide xyz-1.2.3 then portage does not know what *you* did
> > to achieve that and makes no attempt to deal with it at all. You are
> > expected to completely 100% deal with all of xyz, including all
> > slots. "man 5 portage" mentions that the version number is there in
> > package.provided so that portage can alert you if some other package
> > has a dep on a version of xyz you did not provide.
>
> Yes, on a *version*, not on a *slot*, which is in effect a different
> package but simply using the same name.
I can't explain that (and reading the portage sources is not something
that fills me with joy).
I can think up a few possibilities ranging from the .provided code
predates slots and has never been touched since all the way up to there
being some real conflict you and I don't know about.
>
>
> > Seen in that light, the behaviour is indeed sensible, just not
> > consistent if you haven't read the docs yet. I don't think it's
> > wise to try and change portage's behaviour with this, as Michael
> > said in another sub-thread portage has no idea what you did so it
> > can't even try to take control of different slots for fear it might
> > clobber all your manual hard work
>
> As I mentioned in my other post, portage should stop working
> altogether then, because conflicts can arise with any other package.
> But portage *does* allows me to install package "foo" if I have
> "bar-1.0" listed in package.provided. For the same reason, it should
> allow me install "foo:2" if I have a "foo" in package.provided that
> belongs to the "foo:1" slot.
If portage tries to clobber a file you provided, then portage will see
it and collision-protect will do it's job. If you clobber an existing
file while installing something you provided, well that's your fault
and you should have paid attention. So I don't think the foo|bar
scenario you describe is anything worth worrying about.
Maybe it really is just a case of "You provided xyz, you will
therefore provide everything about xyz, even slots". I know that's the
starting position I would take if I were Zac.
--
Alan McKinnnon
alan.mckinnon@gmail.com
next prev parent reply other threads:[~2011-09-12 21:40 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-12 15:41 [gentoo-user] package.provided messes up emerging of package slots? Nikos Chantziaras
2011-09-12 16:31 ` Pandu Poluan
2011-09-12 16:49 ` [gentoo-user] " Nikos Chantziaras
2011-09-12 20:31 ` Alan McKinnon
2011-09-12 20:48 ` Nikos Chantziaras
2011-09-12 21:18 ` Alan McKinnon [this message]
2011-09-12 16:42 ` [gentoo-user] " Michael Schreckenbauer
2011-09-12 17:04 ` [gentoo-user] " Nikos Chantziaras
2011-09-12 17:17 ` Michael Schreckenbauer
2011-09-12 18:31 ` Nikos Chantziaras
2011-09-12 19:02 ` Michael Schreckenbauer
2011-09-12 20:42 ` Nikos Chantziaras
2011-09-12 21:18 ` Michael Schreckenbauer
2011-09-12 22:11 ` Nikos Chantziaras
2011-09-12 22:26 ` Michael Schreckenbauer
2011-09-12 23:17 ` Nikos Chantziaras
-- strict thread matches above, loose matches on Subject: below --
2011-09-12 20:49 Pandu Poluan
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=20110912231802.30b4fcd2@rohan \
--to=alan.mckinnon@gmail.com \
--cc=gentoo-user@lists.gentoo.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox