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

Bug 660404

Summary: dev-util/android-studio-3.1.3.0.173.4819257 not creating link to current jre
Product: Gentoo Linux Reporter: Adam Giergun <adasss>
Component: Current packagesAssignee: Jason Zaman <perfinion>
Status: RESOLVED FIXED    
Severity: normal CC: jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=613868
https://github.com/gentoo/gentoo/pull/9299
Whiteboard:
Package list:
Runtime testing required: ---

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(-)