Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 726712 - dev-java/openjdk{-bin}-11*: Please provide stable symlinks so packages can depend on it
Summary: dev-java/openjdk{-bin}-11*: Please provide stable symlinks so packages can d...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Georgy Yakovlev
URL:
Whiteboard:
Keywords:
Depends on: 691524
Blocks:
  Show dependency tree
 
Reported: 2020-06-01 21:44 UTC by Harald Judt
Modified: 2020-06-01 22:07 UTC (History)
0 users

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 Harald Judt 2020-06-01 21:44:46 UTC
As instructed by gyakovlev on #gentoo-proxy-maintainers, I am asking for the openjdk-bin and openjdk packages to install a stable symlink, so packages can depend on these JDK/JRE major versions directly. Otherwise, the packages will break with every small openjdk-11 version update.

e.g. /opt/openjdk-bin-11/bin/java

Reproducible: Always
Comment 1 Larry the Git Cow gentoo-dev 2020-06-01 21:53:42 UTC
The bug has been closed via the following commit(s):

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

commit c2f51aac03f62434b09fe47de071cce72b199e2d
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2020-06-01 21:51:52 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2020-06-01 21:53:17 +0000

    dev-java/openjdk-bin: revbump, provide stable symlink in /opt
    
    Closes: https://bugs.gentoo.org/726712
    Package-Manager: Portage-2.3.100, Repoman-2.3.22
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 ...{openjdk-bin-11.0.7_p10.ebuild => openjdk-bin-11.0.7_p10-r1.ebuild} | 3 +++
 1 file changed, 3 insertions(+)
Comment 2 Georgy Yakovlev archtester gentoo-dev 2020-06-01 21:55:52 UTC
for openjdk:11 stable location is always at
/usr/$(get_libdir)/openjdk-11/bin/java


for openjdk-bin:11 it's not at
/opt/openjdk-bin-11/bin/java

you still have to implement logic on your side to allow switching.
I suggest a wrapper that checks presence of /usr/lib64 location first
and falls back to /opt/ location second.
Comment 3 Larry the Git Cow gentoo-dev 2020-06-01 22:07:46 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f2246c7a7d3bb9b142d4c1e115f1878ca72450f

commit 8f2246c7a7d3bb9b142d4c1e115f1878ca72450f
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2020-06-01 22:07:10 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2020-06-01 22:07:31 +0000

    dev-java/openjdk-jre-bin: provide stable symlink for jre:11
    
    Bug: https://bugs.gentoo.org/726712
    Package-Manager: Portage-2.3.100, Repoman-2.3.22
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 ...-jre-bin-11.0.7_p10.ebuild => openjdk-jre-bin-11.0.7_p10-r1.ebuild} | 3 +++
 1 file changed, 3 insertions(+)