Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 660404 - dev-util/android-studio-3.1.3.0.173.4819257 not creating link to current jre
Summary: dev-util/android-studio-3.1.3.0.173.4819257 not creating link to current jre
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: 2018-07-04 21:51 UTC by Adam Giergun
Modified: 2018-07-20 20:56 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 Adam Giergun 2018-07-04 21:51:03 UTC
Recent ~amd64 version of android-studio package (dev-util/android-studio-3.1.3.0.173.4819257) doesn't create symlink /opt/android-studio/jre pointing to /etc/java-config-2/current-system-vm, as last stable version dev-util/android-studio-3.1.2.0.173.4720617 does. As a result no code building is possible, because android-studio is complaining about lack of JRE. Creating this symlink manually helps restoring normal behavior.
Comment 1 Adam Giergun 2018-07-04 22:56:59 UTC
Another options, which seems to work, is to manually unpack jre (Android Studio embedded JDK) folder from android-studio-ide-173.4819257-linux.zip to /opt/android-studio/
Comment 2 Jason Zaman gentoo-dev 2018-07-20 05:59:35 UTC
hm okay the jre symlink is needed if "Use Embedded JDK" is ticked under "File->Project Structure"

I removed it because of https://bugs.gentoo.org/613868 so looks like the right way is to move JAVA_HOME before the bundled jdk parts in studio.sh
Comment 3 Larry the Git Cow gentoo-dev 2018-07-20 06:41:47 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50b76a4c5cbb02f0cb677e9be122597cbdd22d76

commit 50b76a4c5cbb02f0cb677e9be122597cbdd22d76
Author:     Jason Zaman <perfinion@gentoo.org>
AuthorDate: 2018-07-20 06:33:04 +0000
Commit:     Jason Zaman <perfinion@gentoo.org>
CommitDate: 2018-07-20 06:40:26 +0000

    dev-util/android-studio: keep jre symlink but use JAVA_HOME first
    
    Closes: https://bugs.gentoo.org/660404
    Package-Manager: Portage-2.3.40, Repoman-2.3.9

 ...> android-studio-3.1.3.0.173.4819257-r1.ebuild} |  6 +++-
 .../files/0001-use-java-home-before-bundled.patch  | 39 ++++++++++++++++++++++
 2 files changed, 44 insertions(+), 1 deletion(-)