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

Bug 533482

Summary: app-arch/createrepo-0.9.9-r1: installs Python packages to /usr/lib (instead of lib64)
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: Current packagesAssignee: Alon Bar-Lev (RETIRED) <alonbl>
Severity: normal CC: alonbl, python
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 506276    

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-12-25 00:31:36 UTC
I've converted the ebuild to python-single-r1 but a number of Python-related issues remained:

1. files are installed to /usr/lib/python2.7 instead of /usr/lib64. Looks like upstream is doing some bad guessing instead of asking Python nicely for the path. Possibly could be solved by passing $(python_get_sitedir) to a variable in Makefile.

2. Files in site-packages are byte-compiled to .pyc but not optimized to .pyo. Once you fix the install path, you can use python_optimize to do the optimization at ebuild level.

3. Files in /usr/share/createrepo are not compiled at all. python_optimize could solve this, with appropriate path given.

4. Python scripts don't relly belong to /usr/share. Maybe /usr/lib/${PN} (the 'new' libexec) or /usr/libexec/${PN}...

I haven't check for non-obvious issues, just listing those obvious :).
Comment 1 Alon Bar-Lev (RETIRED) gentoo-dev 2014-12-25 11:07:13 UTC
Thanks! fixed all but (5), as it is bad package and hardcode paths, I am not interested to patch it... I am just glad it is still usable... there is no hope that upstream will fix anything.

I see there is a new C implementation[1], which might be better.

Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-12-25 11:25:04 UTC
Thanks a lot :).