Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 831780 - dev-java/tomcat-servlet-api-10.0.16 - ejavac failed - Home for VM 'openjdk-bin-11' does not exist: /usr/lib/jvm/openjdk-bin-11
Summary: dev-java/tomcat-servlet-api-10.0.16 - ejavac failed - Home for VM 'openjdk-bi...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
: 831777 831778 831801 831803 831804 831808 831811 831814 831815 831820 831822 831825 831827 831885 (view as bug list)
Depends on:
Blocks: jdk11
  Show dependency tree
 
Reported: 2022-01-22 09:19 UTC by Toralf Förster
Modified: 2023-04-28 14:35 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,19.10 KB, text/plain)
2022-01-22 09:19 UTC, Toralf Förster
Details
dev-java:tomcat-servlet-api-10.0.16:20220122-091743.log (dev-java:tomcat-servlet-api-10.0.16:20220122-091743.log,2.86 KB, text/plain)
2022-01-22 09:19 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,354.70 KB, text/plain)
2022-01-22 09:19 UTC, Toralf Förster
Details
environment (environment,92.09 KB, text/plain)
2022-01-22 09:19 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,20.08 KB, application/x-bzip)
2022-01-22 09:19 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,21.00 KB, application/x-bzip)
2022-01-22 09:19 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-01-22 09:19:15 UTC
 * Compiling ...
* Home for VM 'openjdk-bin-11' does not exist: /usr/lib/jvm/openjdk-bin-11
* Invalid value for GENTOO_VM: openjdk-bin-11
 * ERROR: dev-java/tomcat-servlet-api-10.0.16::gentoo failed (compile phase):
 *   ejavac failed
 * 
 * Call stack:

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop-j4-20220118-000004

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.3.1
 [2] x86_64-pc-linux-gnu-11.2.1 *
clang/llvm (if any):
/usr/lib/llvm/13
13.0.0
Python 3.9.10
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.58.1 *
GENTOO_VM=openjdk-bin-11  CLASSPATH="" JAVA_HOME="/opt/openjdk-bin-11.0.14_p9"
JAVACFLAGS="-source 1.8 -target 1.8" COMPILER=""
The following VMs are available for generation-2:
*)	AdoptOpenJDK 11.0.14_p9 [openjdk-bin-11]
2)	AdoptOpenJDK 8.312_p07 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:

  HEAD of ::gentoo
commit a107af997646116168b4768c42acb92ba66de0bb
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Jan 22 08:52:30 2022 +0000

    2022-01-22 08:52:29 UTC

emerge -qpvO dev-java/tomcat-servlet-api
[ebuild     U ] dev-java/tomcat-servlet-api-10.0.16 [10.0.14] USE="-source"
Comment 1 Toralf Förster gentoo-dev 2022-01-22 09:19:16 UTC
Created attachment 763109 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-01-22 09:19:17 UTC
Created attachment 763110 [details]
dev-java:tomcat-servlet-api-10.0.16:20220122-091743.log
Comment 3 Toralf Förster gentoo-dev 2022-01-22 09:19:19 UTC
Created attachment 763111 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-01-22 09:19:20 UTC
Created attachment 763112 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-01-22 09:19:21 UTC
Created attachment 763113 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-01-22 09:19:23 UTC
Created attachment 763114 [details]
temp.tar.bz2
Comment 7 Volkmar W. Pogatzki 2022-01-22 16:48:43 UTC
*** Bug 831801 has been marked as a duplicate of this bug. ***
Comment 8 Volkmar W. Pogatzki 2022-01-22 16:49:01 UTC
*** Bug 831827 has been marked as a duplicate of this bug. ***
Comment 9 Volkmar W. Pogatzki 2022-01-22 16:49:29 UTC
*** Bug 831825 has been marked as a duplicate of this bug. ***
Comment 10 Volkmar W. Pogatzki 2022-01-22 16:49:46 UTC
*** Bug 831822 has been marked as a duplicate of this bug. ***
Comment 11 Volkmar W. Pogatzki 2022-01-22 16:49:57 UTC
*** Bug 831820 has been marked as a duplicate of this bug. ***
Comment 12 Volkmar W. Pogatzki 2022-01-22 16:50:08 UTC
*** Bug 831815 has been marked as a duplicate of this bug. ***
Comment 13 Volkmar W. Pogatzki 2022-01-22 16:50:20 UTC
*** Bug 831814 has been marked as a duplicate of this bug. ***
Comment 14 Volkmar W. Pogatzki 2022-01-22 16:50:30 UTC
*** Bug 831808 has been marked as a duplicate of this bug. ***
Comment 15 Volkmar W. Pogatzki 2022-01-22 16:51:03 UTC
*** Bug 831804 has been marked as a duplicate of this bug. ***
Comment 16 Volkmar W. Pogatzki 2022-01-22 16:51:20 UTC
*** Bug 831778 has been marked as a duplicate of this bug. ***
Comment 17 Volkmar W. Pogatzki 2022-01-22 16:51:32 UTC
*** Bug 831777 has been marked as a duplicate of this bug. ***
Comment 18 Volkmar W. Pogatzki 2022-01-22 16:51:50 UTC
*** Bug 831803 has been marked as a duplicate of this bug. ***
Comment 19 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-22 17:40:08 UTC
*** Bug 831811 has been marked as a duplicate of this bug. ***
Comment 20 Tiernan Hubble 2022-01-22 18:21:40 UTC
It looks like dev-java/openjdk-bin-11.0.14_p9 installs directly to /opt/openjdk-bin-11, but every other openjdk-bin package installs to a path including the full package version (e.g. /opt/openjdk-bin-8.312_p07) with a symlink to the slot version (e.g. /opt/openjdk-bin-8).

This breaks symlinks in /usr/lib/jvm/, and also the config paths in "/usr/share/java-config-2/vm/openjdk-bin-11" are still set to the full version path which doesn't exist (/opt/openjdk-bin-11.0.14_p9).

Also, if you have a previous version of openjdk-bin:11 installed when emerging 11.0.14_p9, it installs to the old version directory (/opt/openjdk-bin-11.0.13_p8) because it's a symlink to /opt/openjdk-bin-11.

I suspect this is the same underlying cause as #831839
Comment 21 Larry the Git Cow gentoo-dev 2022-01-22 21:18:00 UTC
The bug has been referenced in the following commit(s):

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

commit d1ff6d69a33d8c12ce9edaece3be362e983fa66d
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2022-01-22 21:17:11 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2022-01-22 21:17:55 +0000

    dev-java/openjdk-bin: fix installation directory
    
    Bug: https://bugs.gentoo.org/831780
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 ...penjdk-bin-11.0.14_p9.ebuild => openjdk-bin-11.0.14_p9-r1.ebuild} | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Comment 22 Georgy Yakovlev archtester gentoo-dev 2022-01-22 21:41:56 UTC
831839 seems to be different.

I reverted installation dir changes.
Comment 23 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-23 15:52:57 UTC
*** Bug 831885 has been marked as a duplicate of this bug. ***
Comment 24 Volkmar W. Pogatzki 2023-04-28 14:35:04 UTC
tomcat-servlet-api-10.0.16 is gone. Closing