Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 941614 - dev-java/qdox-1.12.1-r6 - [libtool] [gcc-15] KeyError: javacup
Summary: dev-java/qdox-1.12.1-r6 - [libtool] [gcc-15] KeyError: javacup
Status: CONFIRMED
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: 2024-10-16 08:44 UTC by Toralf Förster
Modified: 2024-10-16 10:13 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.63 KB, text/plain)
2024-10-16 08:44 UTC, Toralf Förster
Details
dev-java:qdox-1.12.1-r6:20241015-234749.log (dev-java:qdox-1.12.1-r6:20241015-234749.log,4.68 KB, text/plain)
2024-10-16 08:44 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,40.78 KB, text/plain)
2024-10-16 08:44 UTC, Toralf Förster
Details
environment (environment,83.29 KB, text/plain)
2024-10-16 08:44 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.19 KB, application/x-xz)
2024-10-16 08:44 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,18.46 KB, application/x-xz)
2024-10-16 08:44 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,106.67 KB, text/plain)
2024-10-16 08:44 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,18.94 KB, application/x-xz)
2024-10-16 08:44 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 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).