Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 172511 - require PDEPEND be post
Summary: require PDEPEND be post
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: PMS/EAPI (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: PMS/EAPI
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 187293
  Show dependency tree
 
Reported: 2007-03-28 07:22 UTC by SpanKY
Modified: 2007-03-31 09:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2007-03-28 07:22:16 UTC
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 Ciaran McCreesh 2007-03-28 07:27:08 UTC
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 Zac Medico gentoo-dev 2007-03-28 09:43:17 UTC
(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 SpanKY gentoo-dev 2007-03-30 22:52:42 UTC
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 Ciaran McCreesh 2007-03-30 23:26:38 UTC
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 Petteri Räty (RETIRED) gentoo-dev 2007-03-31 08:26:50 UTC
(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 Zac Medico gentoo-dev 2007-03-31 09:33:11 UTC
(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).