Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 106774 - rox.eclass fails to byte compile all python modules
Summary: rox.eclass fails to byte compile all python modules
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Sergey Kuleshov (RETIRED)
URL:
Whiteboard:
Keywords: Inclusion
: 106253 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-09-21 03:56 UTC by Peter Hyman
Modified: 2005-11-28 03:38 UTC (History)
0 users

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


Attachments
rox.eclass cumulative patch (rox.eclass.cum.patch,1.13 KB, patch)
2005-09-21 03:58 UTC, Peter Hyman
Details | Diff
rox.eclass file (rox.eclass,3.11 KB, text/plain)
2005-09-21 11:20 UTC, Peter Hyman
Details
rox.eclass.cumulative.patch (rox.eclass.cum.patch,3.05 KB, patch)
2005-09-23 03:10 UTC, Peter Hyman
Details | Diff
rox.eclass (rox.eclass,3.08 KB, text/plain)
2005-09-23 03:11 UTC, Peter Hyman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Hyman 2005-09-21 03:56:42 UTC
All ROX applications have py files. When first run, python will attempt to byte
compile them. However, since users don't have w permission in the ROX, they do
not compile and are interpreted. While this does not seem to affect
functionality, ROX ebuilds should provide users with byte compiled files at
install time. The attached patch includes patches from bug #106253 and includes
the python code from the python.eclass to create the pyc and pyo files. I mark
this as a major bug since without these changes, ROX does not fully compile its
packages.
Comment 1 Peter Hyman 2005-09-21 03:58:16 UTC
Created attachment 68927 [details, diff]
rox.eclass cumulative patch
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-09-21 03:59:22 UTC
*** Bug 106253 has been marked as a duplicate of this bug. ***
Comment 3 Peter Hyman 2005-09-21 04:35:01 UTC
Just a note on the duplicate marking for bug #106253. That bug noted a different
problem of the eclass NOT handling the chmod a+x for AppRun or AppletRun files
in subdirectories under the main Application dir. That patch (included here)
uses the find command to recurse through all subdirs. This occured with the
Oroborox (see bug #106247) and MusicBox (see bug #100426)applications for
example. These apps will fail if the AppRun files in subdirs are not changed as
per this eclass patch.
Comment 4 Peter Hyman 2005-09-21 11:20:41 UTC
Created attachment 68948 [details]
rox.eclass file

Full rox.eclass file with patch applied. Required for new rox ebuilds.
Comment 5 Peter Hyman 2005-09-23 03:10:29 UTC
Created attachment 69059 [details, diff]
rox.eclass.cumulative.patch

Made some additional changes and cleanups (corrected spelling, changed chmod
code to be consistent (i.e. 0755 -> a+x, 755 -> a+x). Added >/dev/null 2>&1 to
python byte compile code to shush errors.
Comment 6 Peter Hyman 2005-09-23 03:11:09 UTC
Created attachment 69060 [details]
rox.eclass

Updated rox.eclass file
Comment 7 Sergey Kuleshov (RETIRED) gentoo-dev 2005-09-25 04:06:46 UTC
in cvs. thak you for great job and valuable updates.

P.S. I reverted back a+x -> 755 though ;)