Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 106253 - rox.eclass does not change permissions for all AppRun scripts
Summary: rox.eclass does not change permissions for all AppRun scripts
Status: RESOLVED DUPLICATE of bug 106774
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Sergey Kuleshov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-17 02:34 UTC by Peter Hyman
Modified: 2005-09-21 03:59 UTC (History)
0 users

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


Attachments
rox.eclass.patch file (rox.eclass.patch,687 bytes, patch)
2005-09-17 02:36 UTC, Peter Hyman
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 ***