Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 445592 - Gentoo renaming of python-config incompatible with upstream
Summary: Gentoo renaming of python-config incompatible with upstream
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on: 488392 488394 488396 488398 488400
Blocks:
  Show dependency tree
 
Reported: 2012-12-02 10:40 UTC by Michał Górny
Modified: 2015-12-23 18:09 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 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-12-02 10:40:33 UTC
Upstream installs 'python${SLOT}-config'. Gentoo installs 'python-config-${SLOT}'. Why?

Right now I have to hack a random package to get it to find python-config. That's a bad thing and shouldn't happen. I already imagine random packages failing to build for other distros because they were designed for Gentoo's rename wannabe.

I suggest we get back to the old name. We can do that on the p.masked ebuilds now to unleash all the breakage at once.
Comment 1 Dirkjan Ochtman (RETIRED) gentoo-dev 2012-12-02 10:44:42 UTC
Do we know the rationale for differing from upstream? If it's simply historic, then I'm all for changing it back.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-12-02 10:52:19 UTC
A quick grep shows the following packages are hacked around for python-config:
- dev-libs/libxml2,
- dev-libs/newt [in patch],
- sys-apps/systemd,
- sys-libs/tdb,
- www-servers/uwsgi.
Comment 4 Arfrever Frehtes Taifersar Arahesis 2012-12-02 11:12:50 UTC
liquidx introduced python-config-${version} versioning in CPython 2.4 26 days after upstream changed versioning in CPython 2.5 from python-config${version} to python${version}-config. (Upstream never backported versioning to 2.4 branch.)

http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-lang/python/python-2.4.3-r1.ebuild?revision=1.18&view=markup#l187
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-lang/python/python-2.4.3-r2.ebuild?hideattic=0&view=log
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-lang/python/python-2.4.3-r2.ebuild?revision=1.1&view=markup#l191
Comment 5 Arfrever Frehtes Taifersar Arahesis 2012-12-02 11:15:19 UTC
Python 2.5 was released on 2006-09-19 (after all above changes).
http://www.python.org/download/releases/2.5/
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-12-02 11:23:22 UTC
We still need a plan.

Can you estimate how wide the use of python-config-* can be? If that's just those ebuilds, we can probably get with fixing them and adding versioned deps there. If it's something better, we'd probably need a compat symlink.
Comment 7 Mike Gilbert gentoo-dev 2012-12-02 17:30:46 UTC
(In reply to comment #6)
> We still need a plan.
> 
> Can you estimate how wide the use of python-config-* can be? If that's just
> those ebuilds, we can probably get with fixing them and adding versioned
> deps there. If it's something better, we'd probably need a compat symlink.

We would also need to push out an update for eselect-python, which generates the /usr/bin/python-config wrapper.

I think compat symlinks would be wise choice.
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-12-02 18:21:57 UTC
Ok, the rename removed from p.masked ebuilds and compatibility symlinks added instead. I guess we'd think of phasing it out after the relevant versions go stable.

/var/cvsroot/gentoo-x86/dev-lang/python/python-2.7.3-r3.ebuild,v  <--  python-2.7.3-r3.ebuild
new revision: 1.4; previous revision: 1.3
/var/cvsroot/gentoo-x86/dev-lang/python/python-2.5.4-r5.ebuild,v  <--  python-2.5.4-r5.ebuild
new revision: 1.4; previous revision: 1.3
/var/cvsroot/gentoo-x86/dev-lang/python/python-3.2.3-r2.ebuild,v  <--  python-3.2.3-r2.ebuild
new revision: 1.4; previous revision: 1.3
/var/cvsroot/gentoo-x86/dev-lang/python/python-3.3.0-r1.ebuild,v  <--  python-3.3.0-r1.ebuild
new revision: 1.4; previous revision: 1.3
/var/cvsroot/gentoo-x86/dev-lang/python/python-3.1.5-r1.ebuild,v  <--  python-3.1.5-r1.ebuild
new revision: 1.4; previous revision: 1.3
/var/cvsroot/gentoo-x86/dev-lang/python/python-2.6.8-r1.ebuild,v  <--  python-2.6.8-r1.ebuild
new revision: 1.4; previous revision: 1.3
Comment 9 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-09-04 13:20:02 UTC
Ok, it seems that newest ~arch packages are finally free of python-config-X.Y references. I think we should remove the compat symlink from ~arch soon, at least from py3.4.
Comment 10 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-12-23 18:09:09 UTC
That's fixed in new revisions of all supported Python versions already.