Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 953249 - media-tv/mythtv-33.1-r3 does not compile, ERROR: javac not found but required by BD-J
Summary: media-tv/mythtv-33.1-r3 does not compile, ERROR: javac not found but required...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Wilson M. Michaels
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-05 16:39 UTC by Frank Noack
Modified: 2025-04-12 10:12 UTC (History)
3 users (show)

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


Attachments
emerge.info.txt (mythtv_emerge.info,21.50 KB, text/plain)
2025-04-05 16:40 UTC, Frank Noack
Details
proposed changes for solving bug 953249 (proposal_bug_953249,2.86 KB, text/plain)
2025-04-05 20:19 UTC, Volkmar W. Pogatzki
Details
build-log with eclass debug information (debug_build.log,11.32 KB, text/plain)
2025-04-08 16:15 UTC, Frank Noack
Details
build-log with eclass debug information (debug_build.log,11.41 KB, text/plain)
2025-04-08 16:25 UTC, Frank Noack
Details
patched ebuild (mythtv-33.1-r3.ebuild,10.53 KB, text/plain)
2025-04-09 17:49 UTC, Frank Noack
Details
builg.log with JAVA_PKG_DEBUG=true (java_pkg_debug_build.log,11.32 KB, text/plain)
2025-04-11 17:37 UTC, Frank Noack
Details
config.ep from latest build test (config.ep,213.61 KB, text/plain)
2025-04-11 17:50 UTC, Frank Noack
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Noack 2025-04-05 16:39:03 UTC
Since a few weeks always when I try to compile the current mythtv it crashes with the mentioned error.  

Reproducible: Always




emerge -pqv '=media-tv/mythtv-33.1-r3::gentoo'
[ebuild   R   ] media-tv/mythtv-33.1-r3  USE="X alsa autostart cdda cdr dvb dvd exif java lame opengl perl pulseaudio raw systemd v4l vaapi vdpau wrapper x264 xml xmltv xvid -asi -cec -ceton -debug -fftw -hdhomerun -ieee1394 -jack -lcd -libass -lirc -nvdec -oss -python -vbox -vpx -x265 -zeroconf" INPUT_DEVICES="-joystick" 

# javac -version 
javac 21.0.6
Comment 1 Frank Noack 2025-04-05 16:40:21 UTC
Created attachment 923594 [details]
emerge.info.txt
Comment 2 Volkmar W. Pogatzki 2025-04-05 20:19:11 UTC
Created attachment 923600 [details]
proposed changes for solving bug 953249

I cannot reproduce that error but just noticed the ebuild is missing virtual/jdk and virtual/jre. It also sets fixed values "1.8" for javac's -source and -target options.
Would the attached changes solve your problem?
Comment 3 Frank Noack 2025-04-06 06:59:37 UTC
Sorry, I am not so familiar with applying a patch. Could you please explain what I have to do for that?
Comment 4 Mike Gilbert gentoo-dev 2025-04-06 19:32:04 UTC
Please include the package category in the bug summary.
Comment 5 Frank Noack 2025-04-07 15:54:17 UTC
The patch successfully applied now:
# patch -p 1  < mythtv.patch
patching file media-tv/mythtv/files/mythtv-33.1-build.xml.patch
patching file media-tv/mythtv/mythtv-33.1-r3.ebuild

>>> Emerging (1 of 1) media-tv/mythtv-33.1-r3::gentoo
 * mythtv-33.1.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                [ ok ]
>>> Unpacking source...
>>> Unpacking mythtv-33.1.tar.gz to /var/tmp/portage/media-tv/mythtv-33.1-r3/work
>>> Source unpacked in /var/tmp/portage/media-tv/mythtv-33.1-r3/work
>>> Preparing source in /var/tmp/portage/media-tv/mythtv-33.1-r3/work/mythtv-33.1/mythtv ...
 * Applying mythtv-33.1-build.xml.patch ...                                                                                                                                      [ ok ]
 * Applying mythtv-33.1-libva.patch ...                                                                                                                                          [ ok ]
 * Applying mythtv-33.1-ffmpeg-binutils-2.41.patch ...                                                                                                                           [ ok ]
 * Applying mythtv-33.1-linux-headers-6.5.patch ...                                                                                                                              [ ok ]
 * Applying mythtv-33.1-python3.12.patch ...


After updating the manifest I have got the same error again.
Comment 6 Volkmar W. Pogatzki 2025-04-08 07:27:13 UTC
I still cannot reproduce. Need more info:

Your /etc/portage/make.conf should have[1]:
ECLASS_DEBUG_OUTPUT=on 

Then, the build log should display lines starting with:
debug: Using: openjdk...
debug: java.pkg_setup-vm:
debug: java-pkg_javac-args: 
debug: want source:
debug: want target:
* Using: openjdk...

Please post that block of information.


[1]https://wiki.gentoo.org/wiki/Java_Developer_Guide#Variables

FYI: https://github.com/gentoo/gentoo/pull/40420#pullrequestreview-2745081201
Comment 7 Frank Noack 2025-04-08 16:15:09 UTC
Created attachment 924105 [details]
build-log with eclass debug information

Added the requested information
Comment 8 Frank Noack 2025-04-08 16:25:53 UTC
Created attachment 924106 [details]
build-log with eclass debug information

Now the eclass debug information with the patched ebuild. The first one was without the provided patch. sorry
Comment 9 Volkmar W. Pogatzki 2025-04-08 18:54:02 UTC
(In reply to Frank Noack from comment #8)
> Created attachment 924106 [details]
> build-log with eclass debug information
> 
> Now the eclass debug information with the patched ebuild. The first one was
> without the provided patch. sorry

I don't see any "debug: Using: openjdk".
Are you sure you used the ebuild updated with the second part of attachment.cgi?id=923600?
And prepended USE=java to your command?

If so, please also add JAVA_PKG_DEBUG=true to /etc/portage/make.conf and let's have another log.
Comment 10 Frank Noack 2025-04-09 17:49:33 UTC
Created attachment 924241 [details]
patched ebuild

I think the patch was properly attached.
Comment 11 Frank Noack 2025-04-11 17:37:12 UTC
Created attachment 924397 [details]
builg.log with  JAVA_PKG_DEBUG=true
Comment 12 Frank Noack 2025-04-11 17:50:06 UTC
Created attachment 924398 [details]
config.ep from latest build test
Comment 13 Volkmar W. Pogatzki 2025-04-12 10:12:06 UTC
(In reply to Frank Noack from comment #11)
> Created attachment 924397 [details]
> builg.log with  JAVA_PKG_DEBUG=true

Still no "debug: Using: openjdk". 

No idea what your system is missing. 
Cannot reproduce you problem, cannot help, sorry.