Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 380787 - dev-python/PyQt4: Implement versioning of libpythonplugin.so
Summary: dev-python/PyQt4: Implement versioning of libpythonplugin.so
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-26 21:42 UTC by Markos Chandras (RETIRED)
Modified: 2018-08-17 16:17 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 Markos Chandras (RETIRED) gentoo-dev 2011-08-26 21:42:06 UTC
Log from IRC

[08:41:52] <thorbenk> Hello everyone :-)
[08:42:37] <thorbenk> I have found a bug in the PyQt4 package: /usr/lib64/qt4/plugins/designer/libpythonplugin.so is linked against _python3.2_, whereas I have chosen python 2.7 as my main python via eselect
[08:42:58] <thorbenk> I can see via ldd: libpython3.2.so.1.0 => /usr/lib64/libpython3.2.so.1.0 (0x00007f754e52e000)
[08:43:34] <thorbenk> the problem: the libpythonplugin.so is used to load our designer-wrapped widgets written in python 2.7
[08:43:49] <thorbenk> Of course this fails, as it interpretes our code within python 3.2
Comment 1 Davide Pesavento (RETIRED) gentoo-dev 2011-08-26 21:51:27 UTC
Right, although not easy to fix. Maybe we should build libpythonplugin.so only for the active python version... other ideas?
Comment 2 Michael Palimaka (kensington) gentoo-dev 2012-07-12 11:37:05 UTC
I am not too familiar with these packages but KDE uses a wrapper[1] for pykde, perhaps we could borrow something like that?

[1]: http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=blob;f=kde-base/pykde4/files/kpythonpluginfactorywrapper.c;
Comment 3 Davide Pesavento (RETIRED) gentoo-dev 2013-12-26 02:21:27 UTC
Ok so, I don't think versioning the plugin is feasible, however we might be able to let the user decide which python version the plugin must be built against via PYTHON_SINGLE_TARGET.

@python: can we use python-single-r1 (in addition to python-r1) to achieve this?
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-12-26 08:52:34 UTC
(In reply to Davide Pesavento from comment #3)
> Ok so, I don't think versioning the plugin is feasible, however we might be
> able to let the user decide which python version the plugin must be built
> against via PYTHON_SINGLE_TARGET.
> 
> @python: can we use python-single-r1 (in addition to python-r1) to achieve
> this?

No, mixing the two is not possible. You can use 'python_wrapper_setup' in python-r1 to get the 'best' impl (that would be first enabled of 2.7, 2.6, 3.3, 3.2, ...) but nothing to get extra control.
Comment 5 Davide Pesavento (RETIRED) gentoo-dev 2018-08-17 16:17:32 UTC
PyQt4 is gone.