Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 594584 - dev-util/android-studio-2.2.0.12.145.3276617 - missing execute permission bits
Summary: dev-util/android-studio-2.2.0.12.145.3276617 - missing execute permission bits
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jason Zaman
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-21 07:49 UTC by killerpsi23
Modified: 2016-10-04 15:35 UTC (History)
1 user (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 killerpsi23 2016-09-21 07:49:14 UTC
Execute permission bits exist after extracting, but become lost when installing into 'image' directory.

Missing of permission bits will cause android-studio reports "Permission Denied" when building projects.
Comment 1 Diogo Pereira 2016-09-21 21:25:31 UTC
I can confirm this. Android Studio tries to run /opt/android-studio/jre/bin/java, which does not have the execute bit set.
Comment 2 William L. Thomson Jr. 2016-09-23 23:13:20 UTC
The fix is minor, add the jre directory to those being fperms'd. However that just fixes the bundled jdk posing as a jre. I opt'd to remove it entirely and switch to using a system installed VM. The package already depended on a jdk, which it was not really using. Now it is using that, and I also unbundled a few jars, more can be done, some need to be updated before they can be swapped out for system. Updated as in gentoo packages are behind.

https://github.com/gentoo/gentoo/pull/2394
Comment 3 Jason Zaman gentoo-dev 2016-10-04 15:35:17 UTC
committed in 844ff714334633a5ae03ac348cee75ae78423c3b

Thanks for the PR! I made a small change so the gradle version isnt hardcoded for future bumps.