Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 215944 - [QA] app-misc/gramps-3.0.0 - Precompiled python object files in /usr/share
Summary: [QA] app-misc/gramps-3.0.0 - Precompiled python object files in /usr/share
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Steve Dibb (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-02 20:29 UTC by Sandro Bonazzola
Modified: 2008-06-04 04:04 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gramps-3.0.0-pycompile.patch (a.diff,959 bytes, patch)
2008-05-14 16:15 UTC, Ali Polatel (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sandro Bonazzola 2008-04-02 20:29:15 UTC
emerge =app-misc/gramps-3.0.0
QA Notice: Precompiled python object files do not belong in /usr/share
/usr/share/gramps/ProgressDialog.pyo
/usr/share/gramps/PlaceUtils.pyo
/usr/share/gramps/UndoHistory.pyo
...

I don't really know why this warning is here, I thought that a package could have python modules in it's pkgdir, even compiled. But if this is the police for python object files, then gramps need a patch.
Comment 1 Christian Faulhammer (RETIRED) gentoo-dev 2008-04-03 06:49:13 UTC
Just leave the cc field alone, even if you know where to assign it.

This is due to python-updater I think, as it searches /usr/lib/python-<old>/ for packages to be remegerged.  So this is a bug.  Will have a look later or tomorrow.
Comment 2 Christian Faulhammer (RETIRED) gentoo-dev 2008-04-09 13:29:53 UTC
Haven't got to it, though I tried some things, still have to dig into the Makefiles.  Anyway, will be away for some weeks now, so don't expect too much activity here.
Comment 3 Christian Faulhammer (RETIRED) gentoo-dev 2008-04-29 00:48:03 UTC
After some time of succesless trying, I can tell: It is not a simple task.  Modifying --datadir only affect some files, moving them manually around breaks "hard" (on configure) coded paths in the executables.

Python team: Is /usr/lib/pythonxx/site-packages/ something canonical on which I can point my finger on so Gramps upstream has to move?  Or is there any sane/good way to make the py{c,o} files visible in the path where python-update can see it?
Comment 4 Christian Faulhammer (RETIRED) gentoo-dev 2008-05-09 20:35:35 UTC
Ok, I contacted upstream.  Let's see what their answer is.
Comment 5 Ali Polatel (RETIRED) gentoo-dev 2008-05-14 16:15:42 UTC
Created attachment 153103 [details, diff]
gramps-3.0.0-pycompile.patch

Here is a patch to fix byte compilation of python modules.
It's untested. Please test back and report :)
Comment 6 Ali Polatel (RETIRED) gentoo-dev 2008-05-14 16:20:03 UTC
> It's untested. Please test back and report :)

ahh.. test and report back :)

Comment 7 Christian Faulhammer (RETIRED) gentoo-dev 2008-05-14 17:24:52 UTC
Works just fine.  Thank you very much!
Comment 8 Sandro Bonazzola 2008-05-14 18:52:38 UTC
Verified in portage, the patch solves the issue. Thanks for the fix.