First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 172511
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: PMS/EAPI Bugs <pms-bugs@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: SpanKY <vapier@gentoo.org>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 172511 depends on: Show dependency tree
Bug 172511 blocks: 187293
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-03-28 07:22 0000
if PDEPEND is simply a suggestion that the packages listed should be merged
after, then what's the point ?

portage currently requires PDEPEND-ed packages to be merged post (i believe),
and the description reads:
  PDEPEND
    This should contain a list of all packages that will have to be installed
after the program has been merged.

------- Comment #1 From Ciaran McCreesh 2007-03-28 07:27:08 0000 -------
Portage doesn't require it. Consider the following slightly oversimplified
case:

* vim PDEPENDs upon gentoo-syntax
* gvim PDEPENDs upon gentoo-syntax
* gentoo-syntax RDEPENDs upon || ( vim gvim )
* user does install vim gvim

It's perfectly sensible for the resolver to do the order as vim gentoo-syntax
gvim.

Or, more simply, what if a PDEPEND is already installed?

Saying that PDEPEND has to come after doesn't make sense. PDEPENDed packages
have to have a complete dep specification anyway; there's no gain to be had
from forcing a particular ordering on top of this.

------- Comment #2 From Zac Medico 2007-03-28 09:43:17 0000 -------
(In reply to comment #0)
> portage currently requires PDEPEND-ed packages to be merged post (i believe),

It makes a best effort to, but it's not a hard requirement since there would be
no benefit and it would unnecessarily limit the possibilities when planning the
installation order.

------- Comment #3 From SpanKY 2007-03-30 22:52:42 0000 -------
if the current behavior is murky and every one is OK with that, then i'll fix
up our docs ...

we should earmark this thing for removal come EAPI-1 then since it's clearly
useless as you cannot depend on it doing anything specific

------- Comment #4 From Ciaran McCreesh 2007-03-30 23:26:38 0000 -------
Well, it's useful in that RDEPEND is fairly strict in terms of where
dependencies can come in, whereas PDEPEND is sufficiently vague not to trigger
cycles.

------- Comment #5 From Petteri Räty 2007-03-31 08:26:50 0000 -------
(In reply to comment #3)
> 
> we should earmark this thing for removal come EAPI-1 then since it's clearly
> useless as you cannot depend on it doing anything specific
> 

Well would first need to have an alternative.

------- Comment #6 From Zac Medico 2007-03-31 09:33:11 0000 -------
(In reply to comment #3)
> we should earmark this thing for removal come EAPI-1 then since it's clearly
> useless as you cannot depend on it doing anything specific

It's useful if you want to pull in a package without forcing an order
constraint.  Order constraints should not be forced unless they are really
necessary because they take away freedom from the resolver and may prevent it
from solving the problem as efficiently as possible (or worse, result in an
unbreakable cycle).

First Last Prev Next    No search results available      Search page      Enter new bug