public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: James Potts <arek75@gmail.com>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Is || ( Atom... ) broken?
Date: Mon, 7 Jul 2014 07:45:28 -0500	[thread overview]
Message-ID: <CAO2dY5HpaCVWz0UHDDdi058pJYy+gQuqMXK4hdN+cjaPSKj_CQ@mail.gmail.com> (raw)
In-Reply-To: <CAGfcS_mdTAdU+NxRKG3Cg_dtYr4Oq6dK8QRUiWFSnVZk-snqKA@mail.gmail.com>

On Mon, Jul 7, 2014 at 6:14 AM, Rich Freeman <rich0@gentoo.org> wrote:
>
> On Mon, Jul 7, 2014 at 6:14 AM, Greg Turner <gmt@malth.us> wrote:
> > WTF is up with it?  Why does it love the first Atom so much more than the
> > others?
> >
> > It could be such a useful feature, but, in practice, it just never seems to
> > do what I want it to.  Is it a bug?
>
> Well, more like unspecified behavior.  PMS just says that the PM has
> to accept any package in the list.  It is silent on the matter of
> which one is to be preferred, or to what degree.
>
> As we saw with upower portage will jump through quite a few hoops to
> install the first dependency - it doesn't always figure out that
> installing one of the others is easier.  It is a bit hard to
> algorithmically define "easier" - should portage favor fewer package
> installs, fewer removals, fewer config file changes, avoiding changing
> the init system (and what constitutes an init system), etc?  Plus,
> there are a lot of potential permutations to deal with.
>
> You'd probably need to be more specific as to what is going on to get further.
>
> I think most would agree that there is room for improvement here.
>
> Rich
>

In this case, it would be nice if Portage would see if one package of
the set could be resolved without blocks or required config changes
(i.e. if one package can be installed *now* choose it over
earlier-listed not-installable packages).  The problem with this is
that it would take longer to resolve || () deps if the first one isn't
installable.  Not only that, but the workaround is easy:  Either
install the package you want first (upower-pm-utils, for example), or
at the same time as your "target" package, so I also don't see this as
high-priority.  I also don't see this as something needing changed in
PMS, as other PMs have different ways of handling the issue.

--James


  reply	other threads:[~2014-07-07 12:45 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-07 10:14 [gentoo-dev] Is || ( Atom... ) broken? Greg Turner
2014-07-07 11:02 ` [gentoo-dev] " Duncan
2014-07-07 13:06   ` Greg Turner
2014-07-07 11:14 ` [gentoo-dev] " Rich Freeman
2014-07-07 12:45   ` James Potts [this message]
2014-07-07 13:07     ` Kent Fredric
2014-07-07 23:42   ` Greg Turner
2014-07-08  4:39     ` [gentoo-dev] " Duncan
2014-07-08  5:42       ` Kent Fredric
2014-07-09  9:52       ` Greg Turner
2014-07-09 12:34         ` Duncan
2014-07-09 18:26           ` Greg Turner
2014-07-07 13:09 ` [gentoo-dev] " Samuli Suominen
2014-07-07 15:54 ` Ciaran McCreesh

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=CAO2dY5HpaCVWz0UHDDdi058pJYy+gQuqMXK4hdN+cjaPSKj_CQ@mail.gmail.com \
    --to=arek75@gmail.com \
    --cc=gentoo-dev@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