On Tue, 2009-04-21 at 16:03 +0100, Ciaran McCreesh wrote: > On Tue, 21 Apr 2009 05:11:15 +0300 > Mart Raudsepp <l...@gentoo.org> wrote: > > > * SLOT-OPERATOR-DEPS > > > > An outstanding problem to me as a package maintainer is the lack of > > means to know which slot the PM actually picked for the package, as > > some of my co-maintained packages have no use of := if it can't know > > which version was picked to act accordingly in src_configure. > > The best installed version that matches the spec is always picked > for :=. We originally considered making this more complicated, or > possibly making ways of saying "all installed slots", but neither > appears to have a legitimate use case. The latter in particular would > only encourage abuse (people might mistakenly think it's a solution to > the Python / Ruby ABIs thing).
I don't think that really works in all cases, e.g in combination with PDEPEND or such. But if there is such a guarantee per spec, it's at least covering the common and most reasonable cases. So to make this easy for everybody in the future, do you perhaps have a concrete ebuild code example that shows how exactly to do it in an ebuild pkg_setup or src_configure exactly? My main open issue with SLOT-OPERATOR-DEPS is about the :* syntax, and specifically how that potentially works un-intuituvely with some future syntax regarding list of slots. The feature concept itself seems sound and reasonable, but I think we might be able to do better with the syntax for the long run when slot lists come into play. I need to lay down for a while now (caught a cold), but I'll work on a detailed description of what I have in mind - after thinking it more through to myself - in some 5-7 hours from now. It is also possible that this thinking will result in the conclusion that the proposed syntax is best afterall, but I'll see what I come up with. Still have REPLACED_BY_VERSIONS stuff to think through too, but I don't expect any big controversies from there from me, I hope. -- Mart Raudsepp Gentoo Developer Mail: l...@gentoo.org Weblog: http://planet.gentoo.org/developers/leio
signature.asc
Description: This is a digitally signed message part