Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 533482 - app-arch/createrepo-0.9.9-r1: installs Python packages to /usr/lib (instead of lib64)
Summary: app-arch/createrepo-0.9.9-r1: installs Python packages to /usr/lib (instead o...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alon Bar-Lev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: no-symlink-lib
  Show dependency tree
 
Reported: 2014-12-25 00:31 UTC by Michał Górny
Modified: 2014-12-25 11:25 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 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 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.

[1] https://github.com/Tojaj/createrepo_c
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-12-25 11:25:04 UTC
Thanks a lot :).