Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 833008 - media-tv/kodi-19.3-r1: CMake Error at /usr/share/cmake/Modules/FindJava.cmake:171 (message): Error executing java -version
Summary: media-tv/kodi-19.3-r1: CMake Error at /usr/share/cmake/Modules/FindJava.cmake...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-09 20:45 UTC by gerion
Modified: 2022-02-09 22:11 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,564.59 KB, text/x-log)
2022-02-09 20:45 UTC, gerion
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gerion 2022-02-09 20:45:22 UTC
Kodi does not compile. See the attached build.log:
```
--   core_add_optional_subdirs_from_filelist: OPTION OPENGLES not enabled for xbmc/rendering/gles, skipping subdir
-- core_add_optional_subdirs_from_filelist - reading file: /var/tmp/portage/media-tv/kodi-19.3-r1/work/xbmc-19.3-Matrix/cmake/treedata/optional/common/python.txt
--   core_add_optional_subdirs_from_filelist - adding subdir: /var/tmp/portage/media-tv/kodi-19.3-r1/work/xbmc-19.3-Matrix/xbmc/interfaces/legacy -> build/interfaces/legacy
--   core_add_optional_subdirs_from_filelist - adding subdir: /var/tmp/portage/media-tv/kodi-19.3-r1/work/xbmc-19.3-Matrix/xbmc/interfaces/legacy/wsgi -> build/interfaces/legacy/wsgi
--   core_add_optional_subdirs_from_filelist - adding subdir: /var/tmp/portage/media-tv/kodi-19.3-r1/work/xbmc-19.3-Matrix/xbmc/interfaces/python -> build/interfaces/python
--   core_add_optional_subdirs_from_filelist - adding subdir: /var/tmp/portage/media-tv/kodi-19.3-r1/work/xbmc-19.3-Matrix/xbmc/interfaces/swig -> build/swig
CMake Error at /usr/share/cmake/Modules/FindJava.cmake:171 (message):
  Error executing java -version
Call Stack (most recent call first):
  xbmc/interfaces/swig/CMakeLists.txt:32 (find_package)


-- Configuring incomplete, errors occurred!
```

Reproducible: Always
Comment 1 gerion 2022-02-09 20:45:52 UTC
Created attachment 764718 [details]
build.log
Comment 2 gerion 2022-02-09 20:54:11 UTC
Actually, I have openjdk-bin installed. It's only set to a deinstalled version (eselect java). However, I did not found java as dependency within the ebuild, so I leave this bug open.
Comment 3 Craig Andrews gentoo-dev 2022-02-09 21:57:03 UTC
That sounds like a bug in eselect java, the java package, and/or the java eclasses.
Comment 4 gerion 2022-02-09 22:11:43 UTC
Setting the java version to a really installed one: `eselect java-vm set system ...` fixes the problem.

And, nevermind, the Kodi ebuild actually contains virtual/jre as dependency. I thought that this dependency was missing (I grepped for openjdk). So I'm closing this bug.