Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 687040 - dev-java/openjdk-8.212_p03-r3 binpkg merge - pkg_setup(): Build VM not found!
Summary: dev-java/openjdk-8.212_p03-r3 binpkg merge - pkg_setup(): Build VM not found!
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:
Blocks:
 
Reported: 2019-05-30 21:30 UTC by lperkins
Modified: 2019-05-31 18:46 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 lperkins 2019-05-30 21:30:53 UTC
I created a binpkg of openjdk:8.

Attempting to install said binpkg without some other JDK already on the system runs afoul of the requirements checking.

Is there actually a reason installing an openjdk binpkg should require already having a JDK on the system?  Or should the code check if it's installing a binpkg instead of compiling and bypass the requirement?



>>> Extracting info
 * Package:    dev-java/openjdk-8.212_p03-r3
 * Repository: gentoo
 * USE:        gentoo-vm amd64 kernel_linux jbootstrap elibc_glibc abi_x86_64 userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox
 * ERROR: dev-java/openjdk-8.212_p03-r3::gentoo failed (setup phase):
 *   Build VM not found!
 * 
 * Call stack:
 *     ebuild.sh, line 124:  Called pkg_setup
 *   environment, line 4413:  Called die
 * The specific snippet of code:
 *           [[ -n ${JDK_HOME} ]] || die "Build VM not found!";
 * 
 * If you need support, post the output of `emerge --info '=dev-java/openjdk-8.212_p03-r3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-java/openjdk-8.212_p03-r3::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=openjdk-bin-8  CLASSPATH="" JAVA_HOME="/opt/openjdk-bin-8.212_p03"
JAVACFLAGS="-source 8 -target 8" COMPILER=""
and of course, the output of emerge --info =openjdk-8.212_p03
 * The complete build log is located at '/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/homedir'
 * S: '/var/tmp/portage/dev-java/openjdk-8.212_p03-r3/work/openjdk-8.212_p03'
Comment 1 Georgy Yakovlev gentoo-dev 2019-05-31 09:04:53 UTC
no, there is no reason for that, probably an oversight. I'll look into that.
Comment 2 Larry the Git Cow gentoo-dev 2019-05-31 18:44:39 UTC
The bug has been closed via the following commit(s):

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

commit 51d82565fd24eb24ee71248b091a6bdc1b0d0c89
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2019-05-31 18:41:15 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2019-05-31 18:44:28 +0000

    dev-java/openjdk: don't die on binpkg installation if no jvm on host
    
    Closes: https://bugs.gentoo.org/687040
    Package-Manager: Portage-2.3.67, Repoman-2.3.13
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 dev-java/openjdk/openjdk-11.0.3_p7-r3.ebuild | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

Additionally, it has been referenced in the following commit(s):

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

commit 284b1f61cff4b549ab177d03c3bea3553b20ec62
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2019-05-31 18:40:08 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2019-05-31 18:44:27 +0000

    dev-java/openjdk: don't die on binpkg installation if no jvm on host
    
    Bug: https://bugs.gentoo.org/687040
    
    Package-Manager: Portage-2.3.67, Repoman-2.3.13
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 dev-java/openjdk/openjdk-8.212_p03-r3.ebuild | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)
Comment 3 Georgy Yakovlev gentoo-dev 2019-05-31 18:46:40 UTC
fixed, but since you've build your binpkg with old ebuild you may have to temporary install openjdk-bin:8 to pass the check and be able to install your openjdk:8 binpkg.

you don't have to run it or use it, it just have to be present at the time of check and you can remove it right away. it's quick as it's simply binpkg.