Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 173667 - package.provided - request for more elaboration and alternative suggestion
Summary: package.provided - request for more elaboration and alternative suggestion
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: PMS/EAPI (show other bugs)
Hardware: All Other
: High normal (vote)
Assignee: PMS/EAPI
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-07 13:27 UTC by Fabian Groffen
Modified: 2023-05-11 06:21 UTC (History)
2 users (show)

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 Fabian Groffen gentoo-dev 2007-04-07 13:27:21 UTC
The use of package.provided is strongly deprecated in current PMS.  It is in use in the default-darwin profile, and beyond that in some overlays.

The argumentation behind the deprecation of package.provided is a bit short and does some hand waving on severe adverse effects.  My best guess is that this is a hint towards package.provided entries for instance not being considered in the has_version function.  Some elaboration on this point would be nice to back up the deprecation.

Next to this deprecation, since it is in use, I'd like it when PMS would suggest an alternative for package.provided which is better.  I was thinking on this point whether a new style virtual package would do.  This, however, requires for each package used like this a virtual to exist.  I don't know if this is desirable for things like sys-apps/shadow.

Reproducible: Always

Steps to Reproduce:
Comment 1 Ciaran McCreesh 2007-04-11 14:24:34 UTC
It violates all kinds of requirements for installed packages -- slot and use are simple examples. The alternative is to do things properly -- that is to say, when a package is depended upon, it needs to be installed.
Comment 2 Brian Harring (RETIRED) gentoo-dev 2007-04-11 19:00:41 UTC
it's not too hard to extend package.provided down the line to support slot/use deps, thus enabling a way to inject flags/slot in...

Re: "doing things properly", the point of package.provided is to avoid having to install crap ebuilds that do nothing.  Need a wee bit more reasons then "It's not proper".
Comment 3 Ciaran McCreesh 2007-04-11 19:09:56 UTC
Then a future specification can include a complete, proper solution. No point mandating support for yet another horrible hack for something that's being moved out of the tree anyway...
Comment 4 Fabian Groffen gentoo-dev 2007-04-11 19:16:59 UTC
(In reply to comment #3)
> Then a future specification can include a complete, proper solution. No point
> mandating support for yet another horrible hack for something that's being
> moved out of the tree anyway...

While that is sort of true, I still need it.  And in that sense I agree package.mask isn't the best thing to do.  All I want here is to know that a new-style-virtual isn't causing other problems, or that a use-based depend isn't adding as much as trouble as the package.mask is.  Because that's essentially the way around this thing.  And that doesn't feel like a much cleaner approach at first to me, and has to be added to each and every ebuild that uses it.
Comment 5 Ciaran McCreesh 2007-04-11 19:21:04 UTC
You also need non-PMS things (prefix) for your whole port, no? In which case you're dependent upon Portage specifically anyway...
Comment 6 Fabian Groffen gentoo-dev 2007-04-11 19:29:52 UTC
If that is the opinion of the PMS-team then fine, but I still think the argumentation behind the deprecation in the version I've checked is rather weak and not very convincingly.

However, if the PMS-team and I differ in opinion on that point, I see no reason to keep this bug alive any longer.
Comment 7 Ciaran McCreesh 2007-04-11 20:12:31 UTC
Personally I'm in favour of WONTFIXing this and leaving the wording as-is. spb?
Comment 8 Stephen Bennett (RETIRED) gentoo-dev 2007-04-11 21:32:15 UTC
I'm inclined to agree that this should be left out until a proper solution is worked out. Marking this as LATER to be resolved in a future version of the document.
Comment 9 Ulrich Müller gentoo-dev 2023-05-11 06:21:27 UTC
package.provided was dropped in EAPI 7.