summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2022-01-22 13:17:11 -0800
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2022-01-22 13:17:55 -0800
commitd1ff6d69a33d8c12ce9edaece3be362e983fa66d (patch)
tree7e6ae4be82ecda84d90d2fc2292ddcf9be495a54 /dev-java/openjdk-bin
parentsys-cluster/kube-scheduler: 1.22.6 bump (diff)
downloadgentoo-d1ff6d69a33d8c12ce9edaece3be362e983fa66d.tar.gz
gentoo-d1ff6d69a33d8c12ce9edaece3be362e983fa66d.tar.bz2
gentoo-d1ff6d69a33d8c12ce9edaece3be362e983fa66d.zip
dev-java/openjdk-bin: fix installation directory
Bug: https://bugs.gentoo.org/831780 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'dev-java/openjdk-bin')
-rw-r--r--dev-java/openjdk-bin/openjdk-bin-11.0.14_p9-r1.ebuild (renamed from dev-java/openjdk-bin/openjdk-bin-11.0.14_p9.ebuild)5
1 files changed, 4 insertions, 1 deletions
diff --git a/dev-java/openjdk-bin/openjdk-bin-11.0.14_p9.ebuild b/dev-java/openjdk-bin/openjdk-bin-11.0.14_p9-r1.ebuild
index 019ca529d3b6..8a314444f21d 100644
--- a/dev-java/openjdk-bin/openjdk-bin-11.0.14_p9.ebuild
+++ b/dev-java/openjdk-bin/openjdk-bin-11.0.14_p9-r1.ebuild
@@ -71,7 +71,7 @@ src_unpack() {
}
src_install() {
- local dest="/opt/${PN}-${SLOT}"
+ local dest="/opt/${P}"
local ddest="${ED}/${dest#/}"
# on macOS if they would exist they would be called .dylib, but most
@@ -107,6 +107,9 @@ src_install() {
dodir "${dest}"
cp -pPR * "${ddest}" || die
+ # provide stable symlink
+ dosym "${P}" "/opt/${PN}-${SLOT}"
+
java-vm_install-env "${FILESDIR}"/${PN}-${SLOT}.env.sh
java-vm_set-pax-markings "${ddest}"
java-vm_revdep-mask