Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 568884

Summary: [Future EAPI] Ban package.provided in profiles
Product: Gentoo Hosted Projects Reporter: Ulrich Müller <ulm>
Component: PMS/EAPIAssignee: PMS/EAPI <pms>
Status: RESOLVED FIXED    
Severity: normal CC: esigra, itumaykin+gentoo, prefix
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: in-eapi-7
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 174380    

Description Ulrich Müller gentoo-dev 2015-12-20 16:06:01 UTC
As discussed in the gentoo-dev mailing list:
https://archives.gentoo.org/gentoo-dev/message/d7d732454cdfb8404549ec38c6e53ba8

package.provided is listed in PMS as "strongly deprecated" and "optional" since a long time. We should finally ban it in the next EAPI.

(This is _not_ about package.provided in /etc/portage/profile which is Portage
only and unspecified by PMS. 


CCing prefix. Some of the prefix profiles contain a package.provided with entries like sys-darwin/libsystem-71 or sys-linux/glibc-0. However, I don't see the packages listed there in any dependency, neither in the Portage tree nor in the prefix overlay. So, are these package.provided files still needed for anything?
Comment 1 Fabian Groffen gentoo-dev 2015-12-21 15:10:00 UTC
These entries were there to satisfy Portage itself.  The glibc one may be necessary to satisfy deps from ebuilds, but they should be mostly conditionalised, for we have musl and more these days.

That said, I can image it can go.
Comment 2 Ulrich Müller gentoo-dev 2015-12-21 17:23:49 UTC
(In reply to Fabian Groffen from comment #1)
> The glibc one may be necessary to satisfy deps from ebuilds, [...]

Notice that it's sys-*linux*/glibc-0. There is no such dependency anywhere. (There are some ebuilds with a USE conditional dependency on sys-libs/glibc which however doesn't occur in any package.provided.)
Comment 3 Ulrich Müller gentoo-dev 2016-07-10 19:45:45 UTC
Coming back to this. AIUI the package.provided files in prefix profiles are not needed any more, therefore I am going to remove them in a week from now.
Comment 4 Ulrich Müller gentoo-dev 2016-07-21 19:32:42 UTC
(In reply to Ulrich Müller from comment #3)
> Coming back to this. AIUI the package.provided files in prefix profiles are
> not needed any more, therefore I am going to remove them in a week from now.

This part is done.
Comment 5 Larry the Git Cow gentoo-dev 2018-03-28 05:50:35 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=8621aa9b29e74dabdb426363a96d12ec2e036a15

commit 8621aa9b29e74dabdb426363a96d12ec2e036a15
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2018-03-26 16:28:36 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2018-03-28 05:49:03 +0000

    Disallow package.provided in EAPI 7
    
    Bug: https://bugs.gentoo.org/568884
    Closes: https://github.com/mgorny/portage/issues/12

 pym/portage/eapi.py                  |  4 ++++
 pym/portage/package/ebuild/config.py | 22 ++++++++++++++++------
 2 files changed, 20 insertions(+), 6 deletions(-)}
Comment 6 Larry the Git Cow gentoo-dev 2018-04-30 22:14:40 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/pms.git/commit/?id=9b0e2ab4234179238c6b1bdef3c93e57f5b4f4bd

commit 9b0e2ab4234179238c6b1bdef3c93e57f5b4f4bd
Author:     Ulrich Müller <ulm@gentoo.org>
AuthorDate: 2016-01-30 21:25:26 +0000
Commit:     Ulrich Müller <ulm@gentoo.org>
CommitDate: 2018-03-30 16:35:43 +0000

    EAPI 7: package.provided is banned.
    
    Bug: https://bugs.gentoo.org/568884

 eapi-differences.tex |  4 ++++
 profiles.tex         | 23 +++++++++++++++++++----
 2 files changed, 23 insertions(+), 4 deletions(-)}