Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 456844 - dev-libs/gobject-introspection: installs Python modules outside of python-specific directory
Summary: dev-libs/gobject-introspection: installs Python modules outside of python-spe...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-11 20:24 UTC by Michał Górny
Modified: 2013-02-12 02:47 UTC (History)
1 user (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 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-02-11 20:24:17 UTC
dev-libs/gobject-introspection installs Python modules into /usr/lib64/gobject-introspection instead of implementation-specific directories. This makes implementation dependencies incorrect and breaks byte-compiling of Python modules.

Please modify the ebuild to install files into directory specified as $(python_get_sitedir).
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-02-12 00:24:24 UTC
Well, I've taken a second look at this and it seems that this is not necessarily wrong. Considering that the modules are supposedly used by g-ir-scanner only and never imported directly by other packages, I would say that external dir is fine and hasufell just caused unnecessary confusion.

In any case, I'm fine with either way. If you'd like to change the install location, it would be as simple as using:

src_install() {
    gnome2_src_install \
        pkgpyexecdir="$(python_get_sitedir)"/giscanner
Comment 2 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-02-12 02:47:31 UTC
We are just following a deliberate upstream decision; they don't want to "encourage pollution of the global namespace for internal components", which presumably means they regard the contents of /usr/lib64/gobject-introspection as private modules that third party code should never import.

See https://bugzilla.gnome.org/show_bug.cgi?id=574501

If you think this is wrong, please file an upstream bug and convince them :)