Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 939525 - dev-java/bcel-6.10.0 compile failure: Error: unknown option: --module-path
Summary: dev-java/bcel-6.10.0 compile failure: Error: unknown option: --module-path
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: PullRequest
: 939537 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-09-12 16:06 UTC by Ulrich Müller
Modified: 2025-01-28 11:27 UTC (History)
3 users (show)

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


Attachments
emerge --info (emerge-info.txt,8.30 KB, text/plain)
2024-09-12 16:07 UTC, Ulrich Müller
Details
build.log (build.log,2.25 KB, text/plain)
2024-09-12 16:08 UTC, Ulrich Müller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Müller gentoo-dev 2024-09-12 16:06:57 UTC
>>> Compiling source in /tmp/portage/dev-java/bcel-6.10.0/work/bcel-6.10.0-src ...
javac -source 1.8 -target 1.8 -d target/classes -encoding UTF-8 -classpath /usr/share/commons-lang-3.6/lib/commons-lang.jar @sources.lst
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Error: unknown option: --module-path
Usage: jdeps <options> <classes...>
use -h, -? or -help for a list of possible options
 * ERROR: dev-java/bcel-6.10.0::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 136:  Called src_compile
 *   environment, line 2423:  Called die
 * The specific snippet of code:
 *       jdeps --module-path "$(java-pkg_getjars commons-lang-3.6)" --add-modules org.apache.commons.lang --generate-module-info src/main/java --multi-release 9 "${JAVA_JAR_FILENAME}" || die;
Comment 1 Ulrich Müller gentoo-dev 2024-09-12 16:07:32 UTC
Created attachment 902710 [details]
emerge --info
Comment 2 Ulrich Müller gentoo-dev 2024-09-12 16:08:02 UTC
Created attachment 902711 [details]
build.log
Comment 3 Ulrich Müller gentoo-dev 2024-09-12 16:09:04 UTC
Previous version dev-java/bcel-6.6.0 builds fine here.
Comment 4 Volkmar W. Pogatzki 2024-09-12 16:28:22 UTC
needs https://github.com/gentoo/gentoo/pull/38580
dev-java/bcel: 6.10.0-r1 restrict to >=virtual/jdk-11:*
Comment 5 Ulrich Müller gentoo-dev 2024-09-12 17:06:05 UTC
(In reply to Volkmar W. Pogatzki from comment #4)
> needs https://github.com/gentoo/gentoo/pull/38580
> dev-java/bcel: 6.10.0-r1 restrict to >=virtual/jdk-11:*

Both virtual/jdk-1.8.0-r9 and virtual/jdk-21 are installed on this system, so I fear that updating RDEPEND won't fix the problem.
Comment 6 Volkmar W. Pogatzki 2024-09-12 18:11:45 UTC
*** Bug 939537 has been marked as a duplicate of this bug. ***
Comment 7 Miroslav Šulc gentoo-dev 2024-09-12 18:32:19 UTC
(In reply to Ulrich Müller from comment #5)
> (In reply to Volkmar W. Pogatzki from comment #4)
> > needs https://github.com/gentoo/gentoo/pull/38580
> > dev-java/bcel: 6.10.0-r1 restrict to >=virtual/jdk-11:*
> 
> Both virtual/jdk-1.8.0-r9 and virtual/jdk-21 are installed on this system,
> so I fear that updating RDEPEND won't fix the problem.

it will, as your system picked jdk 1.8 for the compilation and modules were introduced in java 9.
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-09-12 18:36:17 UTC
(In reply to Ulrich Müller from comment #5)
> (In reply to Volkmar W. Pogatzki from comment #4)
> > needs https://github.com/gentoo/gentoo/pull/38580
> > dev-java/bcel: 6.10.0-r1 restrict to >=virtual/jdk-11:*
> 
> Both virtual/jdk-1.8.0-r9 and virtual/jdk-21 are installed on this system,
> so I fear that updating RDEPEND won't fix the problem.

The Java eclasses parse *DEPEND
Comment 9 Larry the Git Cow gentoo-dev 2024-09-14 08:33:05 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c99d89d43a9c868e3f06cbe6feb7dac70df0f534

commit c99d89d43a9c868e3f06cbe6feb7dac70df0f534
Author:     Volkmar W. Pogatzki <gentoo@pogatzki.net>
AuthorDate: 2024-09-12 14:09:37 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2024-09-14 08:32:06 +0000

    dev-java/bcel: 6.10.0-r1 restrict to >=virtual/jdk-11:*
    
    Closes: https://bugs.gentoo.org/939525
    Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
    Closes: https://github.com/gentoo/gentoo/pull/38580/commits/22b91715da18621a70f063a3428d419aa9c0f59e
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 dev-java/bcel/{bcel-6.10.0.ebuild => bcel-6.10.0-r1.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)