Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 932511 - dev-java/qdox-2.0.1 - should DEPEND on dev-java/javacup
Summary: dev-java/qdox-2.0.1 - should DEPEND on dev-java/javacup
Status: RESOLVED FIXED
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-05-22 21:07 UTC by Martin Mokrejš
Modified: 2024-05-25 14:11 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2024-05-22 21:07:17 UTC
# emerge --unmerge javacup qdox
...
# emerge -1 qdox
...

>>> Emerging (1 of 1) dev-java/qdox-2.0.1::gentoo
 * qdox-2.0.1.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                                                                                                                                                     [ ok ]
 * Using: openjdk-bin-17
>>> Unpacking source...
>>> Unpacking qdox-2.0.1.tar.gz to /var/tmp/portage/dev-java/qdox-2.0.1/work
>>> Source unpacked in /var/tmp/portage/dev-java/qdox-2.0.1/work
>>> Preparing source in /var/tmp/portage/dev-java/qdox-2.0.1/work/qdox-qdox-2.0.1 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-java/qdox-2.0.1/work/qdox-qdox-2.0.1 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-java/qdox-2.0.1/work/qdox-qdox-2.0.1 ...
 * Running jflex
Traceback (most recent call last):
  File "/usr/lib/python3.11/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:

Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/java_config_2/EnvironmentManager.py", line 69, in load_package
    pkg = Package(name, sorted (glob (self.pkg_path % name ), reverse=True)[0])
                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/java_config_2/EnvironmentManager.py", line 75, in load_package
    pkg = Virtual( name, self, self.virtual_path + name )
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/java_config_2/Virtual.py", line 39, in __init__
    self._config = EnvFileParser(file).get_config()
                   ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/java_config_2/FileParser.py", line 54, in __init__
    self.parse(file)
  File "/usr/lib/python3.11/site-packages/java_config_2/FileParser.py", line 17, in parse
    raise InvalidConfigError(file)
java_config_2.Errors.InvalidConfigError: /usr/share/java-config-2/virtuals/javacup

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.11/gjl", line 130, in <module>
    args = get_args(pkg)
           ^^^^^^^^^^^^^
  File "/usr/lib/python-exec/python3.11/gjl", line 38, in get_args
    classpath, library = get_pkg_args(pkg)
                         ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python-exec/python3.11/gjl", line 19, in get_pkg_args
    classpath = manager.build_dep_path([package.name()], "CLASSPATH", missing_deps)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/java_config_2/EnvironmentManager.py", line 322, in build_dep_path
    p = self.get_package(dep[-1])
        ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/java_config_2/EnvironmentManager.py", line 151, in get_package
    return self.load_package(pkgname)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/java_config_2/EnvironmentManager.py", line 80, in load_package
    raise UnexistingPackageError(name)
java_config_2.Errors.UnexistingPackageError: Package javacup was not found!
Couldn't get needed information
 * ERROR: dev-java/qdox-2.0.1::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 136:  Called src_compile
 *   environment, line 2419:  Called die
 * The specific snippet of code:
 *       jflex src/grammar/lexer.flex src/grammar/commentlexer.flex -d src/main/java/com/thoughtworks/qdox/parser/impl || die;
 * 
 * If you need support, post the output of `emerge --info '=dev-java/qdox-2.0.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-java/qdox-2.0.1::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=openjdk-bin-17  CLASSPATH="" JAVA_HOME="/opt/openjdk-bin-17.0.10_p7"
JAVACFLAGS="-source 1.8 -target 1.8" COMPILER=""
and of course, the output of emerge --info =qdox-2.0.1
 * The complete build log is located at '/var/tmp/portage/dev-java/qdox-2.0.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/qdox-2.0.1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-java/qdox-2.0.1/work/qdox-qdox-2.0.1'
 * S: '/var/tmp/portage/dev-java/qdox-2.0.1/work/qdox-qdox-2.0.1'

>>> Failed to emerge dev-java/qdox-2.0.1, Log file:

>>>  '/var/tmp/portage/dev-java/qdox-2.0.1/temp/build.log'
Comment 1 Martin Mokrejš 2024-05-22 21:17:11 UTC
# java-config -L
The following VMs are available for generation-2:
1)	IcedTea JDK 3.16.0 [icedtea-bin-8]
2)	OpenJDK 11.0.22_p7 [openjdk-11]
3)	OpenJDK 17.0.10_p7 [openjdk-17]
4)	OpenJDK 21.0.2_p13 [openjdk-21]
5)	Eclipse Temurin JDK 11.0.22_p7 [openjdk-bin-11]
*)	Eclipse Temurin JDK 17.0.10_p7 [openjdk-bin-17]
7)	Eclipse Temurin JDK 21.0.2_p13 [openjdk-bin-21]
8)	Eclipse Temurin JDK 8.402_p06 [openjdk-bin-8]
9)	Eclipse Temurin JRE 11.0.20.1_p1 [openjdk-jre-bin-11]
10)	Eclipse Temurin JRE 17.0.8.1_p1 [openjdk-jre-bin-17]
11)	Eclipse Temurin JRE 21.0.1_p12 [openjdk-jre-bin-21]
#
Comment 2 Volkmar W. Pogatzki 2024-05-23 07:25:50 UTC
Cannot reproduce. 

When did this system have its last successful 'emerge -uDNavt @world'?

Is there anything in /var/lib/portage/world which should not?
Try https://wiki.gentoo.org/wiki/User:Vaukai/checkworldfile

After cleaning you should really do an "emerge -eav @world".
Comment 3 Martin Mokrejš 2024-05-24 20:21:27 UTC
(In reply to Volkmar W. Pogatzki from comment #2)
> Cannot reproduce. 
> 
> When did this system have its last successful 'emerge -uDNavt @world'?

There are always blockers due to qt-5.x.y blocking qt-5.x.z update because many apps depend on qt-5.x.y. Then there are packages dropped from tree, currently rstudio and it deps. then randomly EAPIs get dropped so that packages in .usr/local/portage stop working. Then i think there was a commit which introduced removal of manifests from my /usr/local/portage.

Briefly, for looong while I can only survive with:

emerge -uNpv world | grep -v virtual |  grep -v uninstall | grep -v blocks | grep '^\[' | awk '{print $4}' | while read p; do emerge -uN1 --backtrack=30000 --keep-going =$p; done

It obtains a list of packages to be updated/installed but feeds them one-by-one to emerge.  Args like '--skipfirst' and --keep-going' are largely suboptimal and often times don't work.

> 
> Is there anything in /var/lib/portage/world which should not?
> Try https://wiki.gentoo.org/wiki/User:Vaukai/checkworldfile

No issues reported.

> 
> After cleaning you should really do an "emerge -eav @world".

I try time to time, it is not that outdated as you may think.
Comment 4 Martin Mokrejš 2024-05-24 20:27:02 UTC
It emerged now:

>>> Emerging (1 of 1) dev-java/qdox-2.0.1::gentoo
 * qdox-2.0.1.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                                                                                                                                                     [ ok ]
 * Using: openjdk-bin-17
>>> Unpacking source...
>>> Unpacking qdox-2.0.1.tar.gz to /var/tmp/portage/dev-java/qdox-2.0.1/work
>>> Source unpacked in /var/tmp/portage/dev-java/qdox-2.0.1/work
>>> Preparing source in /var/tmp/portage/dev-java/qdox-2.0.1/work/qdox-qdox-2.0.1 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-java/qdox-2.0.1/work/qdox-qdox-2.0.1 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-java/qdox-2.0.1/work/qdox-qdox-2.0.1 ...
 * Running jflex
Reading "src/grammar/lexer.flex"

Warning : Macro "CommentChar" has been declared but never used.

Warning : Macro "JavadocEnd" has been declared but never used.
Constructing NFA : 1,807 states in NFA
Converting NFA to DFA : 
..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
922 states before minimization, 675 states in minimized DFA
Writing code to "src/main/java/com/thoughtworks/qdox/parser/impl/JFlexLexer.java"
Reading "src/grammar/commentlexer.flex"
Constructing NFA : 222 states in NFA
Converting NFA to DFA : 
...............................................................................
97 states before minimization, 73 states in minimized DFA
Writing code to "src/main/java/com/thoughtworks/qdox/parser/impl/DefaultJavaCommentLexer.java"
 * Running byaccj for DefaultJavaCommentParser
 * Running byaccj for Parser
byaccj: 1 rule never reduced
byaccj: 138 shift/reduce conflicts, 4 reduce/reduce conflicts.
 * Running java-pkg-simple_src_compile
javac -source 1.8 -target 1.8 -d target/classes -encoding UTF-8 -classpath /usr/share/jflex/lib/jflex.jar:/usr/share/javacup/lib/javacup-runtime.jar @sources.lst
warning: [options] bootstrap class path not set in conjunction with -source 8
Note: src/main/java/com/thoughtworks/qdox/library/ClassLoaderLibrary.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
updated manifest
>>> Source compiled.
 * Skipping make test/check due to ebuild restriction.
>>> Test phase [disabled because of RESTRICT=test]: dev-java/qdox-2.0.1

>>> Install dev-java/qdox-2.0.1 into /var/tmp/portage/dev-java/qdox-2.0.1/image
>>> Completed installing dev-java/qdox-2.0.1 into /var/tmp/portage/dev-java/qdox-2.0.1/image

 * Final size of build directory: 5692 KiB (5.5 MiB)
 * Final size of installed tree:   356 KiB


>>> Installing (1 of 1) dev-java/qdox-2.0.1::gentoo



and it does not refer to ant-core anymore:

# grep -nr ant-core /usr/share/*/package.env
/usr/share/ant-contrib/package.env:7:DEPEND="ant-core:ant-ivy-2:bcel:commons-httpclient-3:xerces-2"
/usr/share/ant-core/package.env:1:DESCRIPTION="Compatibility link to ant-core for >=dev-java/ant-1.10.14"
/usr/share/ant-core/package.env:7:CLASSPATH="/usr/share/ant-core/lib/ant.jar"
/usr/share/ant-ivy-2/package.env:7:DEPEND="ant-core:bcpg:bcprov:commons-vfs-2:httpcomponents-client-4:httpcore:jakarta-oro-2.0:jsch:jsch-agent-proxy"
/usr/share/commons-vfs-2/package.env:7:DEPEND="ant-core:commons-collections:commons-httpclient-3:commons-logging:commons-net:jackrabbit-webdav:jsch"
/usr/share/javacup/package.env:9:BUILD_DEPEND="ant-core:jflex"
#
Comment 5 Volkmar W. Pogatzki 2024-05-24 21:35:02 UTC
(In reply to Martin Mokrejš from comment #3)
> [...]
> > 
> > After cleaning you should really do an "emerge -eav @world".
> 
> I try time to time, it is not that outdated as you may think.

And doesn't it solve all  those "package not found" issues?
Comment 6 Martin Mokrejš 2024-05-24 22:11:53 UTC
Evidently not but for about 4hrs I am running this again, after I synced. I assum maybe tomorrow it will finish.
Comment 7 Volkmar W. Pogatzki 2024-05-25 14:11:32 UTC
(In reply to Martin Mokrejš from comment #4)
> [...]
> >>> Installing (1 of 1) dev-java/qdox-2.0.1::gentoo
> 
> 
> 
> and it does not refer to ant-core anymore:
> [...]

Closing then.