Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 618134 - media-libs/lensfun-0.3.2 installs Python modules in wrong directory
Summary: media-libs/lensfun-0.3.2 installs Python modules in wrong directory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-10 18:53 UTC by Tomasz Golinski
Modified: 2024-01-08 14:48 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 Tomasz Golinski 2017-05-10 18:53:00 UTC
equery f lensfun
 * Searching for lensfun ...
 * Contents of media-libs/lensfun-0.3.2:
[...]
/usr/lib64/python3.4
/usr/lib64/python3.4/site-packages
/usr/lib64/python3.4/site-packages/lib64
/usr/lib64/python3.4/site-packages/lib64/python3.4
/usr/lib64/python3.4/site-packages/lib64/python3.4/site-packages
/usr/lib64/python3.4/site-packages/lib64/python3.4/site-packages/lensfun
/usr/lib64/python3.4/site-packages/lib64/python3.4/site-packages/lensfun-0.3.2-py3.4.egg-info
/usr/lib64/python3.4/site-packages/lib64/python3.4/site-packages/lensfun/__init__.py
[...]

These files should be in /usr/lib64/python3.4/site-packages

It causes lensfun-update-data script to fail with:

Traceback (most recent call last):
  File "/usr/bin/lensfun-update-data", line 46, in <module>
    import lensfun
ImportError: No module named 'lensfun'
Comment 1 Markus Meier gentoo-dev 2017-05-28 09:27:19 UTC
Thanks for the report, should be fixed with this commit:

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12ebfda1e70d2aefd8e48f028939ffe85fe00762
Comment 2 Larry the Git Cow gentoo-dev 2024-01-08 14:48:27 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33d990af2c52a4adb9a50976c324d66c66cd1804

commit 33d990af2c52a4adb9a50976c324d66c66cd1804
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2024-01-05 15:39:27 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2024-01-08 14:48:18 +0000

    install-qa-check.d/60python-site: Forbid lib & usr package names
    
    Forbid `lib`, `$(get_libdir)` and `usr` as package names, to catch
    accidentally duplicating sitedir as prefix.
    
    Bug: https://bugs.gentoo.org/618134
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 metadata/install-qa-check.d/60python-site | 2 ++
 1 file changed, 2 insertions(+)