Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 941614

Summary: dev-java/qdox-1.12.1-r6 - [libtool] [gcc-15] KeyError: javacup
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Java team <java>
Status: CONFIRMED ---    
Severity: normal CC: gentoo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
dev-java:qdox-1.12.1-r6:20241015-234749.log
emerge-history.txt
environment
etc.clang.tar.xz
etc.portage.tar.xz
qlist-info.txt
temp.tar.xz

Description Toralf Förster gentoo-dev 2024-10-16 08:44:21 UTC
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-java/qdox-1.12.1-r6/work/qdox-qdox-1.12.1 ...
Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/java_config_2/EnvironmentManager.py", line 148, in get_package
    return self.packages[pkgname]
           ~~~~~~~~~~~~~^^^^^^^^^
KeyError: 'javacup'

During handling of the above exception, another exception occurred:

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_gnome_systemd-20241015-021428

  UNMASKED:
  <sys-devel/gcc-15.0.9999:15

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

GENTOO_VM=openjdk-bin-21  CLASSPATH="" JAVA_HOME="/opt/openjdk-bin-21.0.4_p7"
JAVACFLAGS="-source 1.8 -target 1.8" COMPILER=""
gcc-config -l:
 [1] x86_64-pc-linux-gnu-15 *
clang version 18.1.8
llvm-config: 19.1.1
Python 3.12.7
Available Ruby profiles:
  [1]   ruby32 (with Rubygems)
  [2]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.81.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 21.0.4_p7 [openjdk-bin-21]
Available Java Virtual Machines:
  [1]   openjdk-bin-21  system-vm


  HEAD of ::gentoo
commit 7b58d78eac795be0e2cfa33cf034c9d4252ff449
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Oct 15 22:18:23 2024 +0000

    2024-10-15 22:18:23 UTC

emerge -qpvO =dev-java/qdox-1.12.1-r6
[ebuild  N    ] dev-java/qdox-1.12.1-r6  USE="-ant-task -doc -source -test"
Comment 1 Toralf Förster gentoo-dev 2024-10-16 08:44:22 UTC
Created attachment 906019 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-10-16 08:44:23 UTC
Created attachment 906020 [details]
dev-java:qdox-1.12.1-r6:20241015-234749.log
Comment 3 Toralf Förster gentoo-dev 2024-10-16 08:44:24 UTC
Created attachment 906021 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2024-10-16 08:44:25 UTC
Created attachment 906022 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-10-16 08:44:26 UTC
Created attachment 906023 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-10-16 08:44:27 UTC
Created attachment 906024 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-10-16 08:44:28 UTC
Created attachment 906025 [details]
qlist-info.txt
Comment 8 Toralf Förster gentoo-dev 2024-10-16 08:44:29 UTC
Created attachment 906026 [details]
temp.tar.xz
Comment 9 Volkmar W. Pogatzki 2024-10-16 09:23:39 UTC
Cannot reproduce on a regular system.
Comment 10 Volkmar W. Pogatzki 2024-10-16 10:10:22 UTC
steps to reproduce:

1. emerge dev-java/qdox:1.12
2. emerge -C dev-java/javacup
3. ebuild qdox-1.12.1-r6 clean compile
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-10-16 10:13:01 UTC
(In reply to Volkmar W. Pogatzki from comment #10)
> steps to reproduce:
> 
> 1. emerge dev-java/qdox:1.12
> 2. emerge -C dev-java/javacup
> 3. ebuild qdox-1.12.1-r6 clean compile

That doesn't make it CANTFIX at all.

As I said on IRC, there's two issues:
1) the java-config error is pretty poor;
2) figuring out how toralf ended up with it not being pulled in, likely to do with the PDEPEND and the fact that jflex *MUST* have javacup installed for it to be usable at all (which makes PDEPEND kind of unsuitable for it).