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

Bug 106253

Summary: rox.eclass does not change permissions for all AppRun scripts
Product: Gentoo Linux Reporter: Peter Hyman <pete4abw>
Component: EclassesAssignee: Sergey Kuleshov (RETIRED) <svyatogor>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: rox.eclass.patch file

Description Peter Hyman 2005-09-17 02:34:47 UTC
rox.eclass changes permissions for certain files to 0755. However, some rox apps
(eg. OroboROX) have subdirectories that themselves have AppRun or AppletRun
scripts. These are not accounted for. This causes Application Directories in Rox
not to function as expected.

Reproducible: Always
Steps to Reproduce:
1. emerge oroborox (for example)
2. navigate to /usr/lib/rox/OroboROX/Configure directory
3. Click on any of the Application Subdirectories (Schemes/Windows, etc)

Actual Results:  
Clicking on the Configure directory (from the above example), instead of the
AppRun script in each directory running, Rox simply changes to that directory
and displays the contents.

Expected Results:  
Rox should execute the AppRun script and the AppRun scripts should be marked
world executable

The attached patch for rox.eclass implements the find command with xargs instead
of a hard coded chmod command for the Application's root directory. This allows
any and all AppRun or AppletRun scripts to be changed.

find ${D}/usr/lib/rox/${APPNAME} -name 'AppRun' | xargs chmod 0755 >/dev/null 2>&1
find ${D}/usr/lib/rox/${APPNAME} -name 'AppletRun' | xargs chmod 0755 >/dev/null
2>&1

Without this, user would have to sudo and change any AppRun or AppletRun scripts
that were not touched manually. This could be dangerous.
Comment 1 Peter Hyman 2005-09-17 02:36:35 UTC
Created attachment 68656 [details, diff]
rox.eclass.patch file

Provides alternate method to touch all AppRun and AppletRun files in all rox
application subdirectories using the find command.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-09-21 03:59:21 UTC

*** This bug has been marked as a duplicate of 106774 ***