Gentoo Archives: gentoo-dev

From: heroxbd@g.o
To: gentoo-dev@l.g.o
Cc: Benda Xu <heroxbd@g.o>, Zongyu Zhang <zzy2529420793@×××××.com>
Subject: [gentoo-dev] [PATCH] java-vm-2.eclass: keep EPREFIX in the dosym first argument.
Date: Mon, 16 Mar 2020 03:22:22
Message-Id: 20200316032203.74266-1-heroxbd@gentoo.org
From: Benda Xu <heroxbd@g.o>

first parameter of dosym() is interpreted verbatim.

Suggested-By: Zongyu Zhang <zzy2529420793@×××××.com>
Signed-off-by: Benda Xu <heroxbd@g.o>
---
 eclass/java-vm-2.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eclass/java-vm-2.eclass b/eclass/java-vm-2.eclass
index d71b7285996d..d51a46ce2479 100644
--- a/eclass/java-vm-2.eclass
+++ b/eclass/java-vm-2.eclass
@@ -186,7 +186,7 @@ set_java_env() {
 
 	# Make the symlink
 	dodir "${JAVA_VM_DIR}"
-	dosym ${java_home#${EPREFIX}} ${JAVA_VM_DIR}/${VMHANDLE}
+	dosym ${java_home} ${JAVA_VM_DIR}/${VMHANDLE}
 }
 
 
@@ -228,7 +228,7 @@ java-vm_install-env() {
 
 	# Make the symlink
 	dodir "${JAVA_VM_DIR}"
-	dosym "${java_home#${EPREFIX}}" "${JAVA_VM_DIR}/${VMHANDLE}"
+	dosym "${java_home}" "${JAVA_VM_DIR}/${VMHANDLE}"
 }
 
 
-- 
2.25.0