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

Bug 950615

Summary: dev-java/open-test-reporting-events-0.2.0_pre1: unsupported MAVEN_PROVIDES format
Product: Gentoo Linux Reporter: Fabio Rossi <rossi.f>
Component: Current packagesAssignee: Java team <java>
Status: CONFIRMED ---    
Severity: normal CC: gentoo, rossi.f
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/40913
Whiteboard:
Package list:
Runtime testing required: ---

Description Fabio Rossi 2025-03-05 10:09:23 UTC
currently MAVEN_PROVIDES is a multiline string while only open-test-reporting-events-0.2.0_pre1 implements it as an array. This generates an exception with java-ebuilder in org.gentoo.java.ebuilder.portage.PortageParser.parseEbuild
Comment 1 Volkmar W. Pogatzki 2025-03-05 12:08:31 UTC
Have you tried with java-ebuilder-9999?
If that one works, please reassign this bug there asking for a new release.

I gave up using java-ebuilder some time ago, so cannot tell.
Comment 2 Fabio Rossi 2025-03-05 14:08:19 UTC
Yes, using 9999

Parsing portage tree @ /usr/portage ...
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
	at org.gentoo.java.ebuilder.portage.PortageParser.parseEbuild(PortageParser.java:401)
	at org.gentoo.java.ebuilder.portage.PortageParser.parsePackage(PortageParser.java:422)
	at org.gentoo.java.ebuilder.portage.PortageParser.parseCategory(PortageParser.java:240)
	at org.gentoo.java.ebuilder.portage.PortageParser.parseCategories(PortageParser.java:225)
	at org.gentoo.java.ebuilder.portage.PortageParser.parseTree(PortageParser.java:145)
	at org.gentoo.java.ebuilder.Main.refreshCache(Main.java:380)
	at org.gentoo.java.ebuilder.Main.main(Main.java:48)
make: *** [cache.mk:5: /var/lib/java-ebuilder/cache/pre-stage1-cache.raw] Error 1

BTW open-test-reporting-events-0.2.0_pre1 is the only one using array format for MAVEN_PROVIDES. All the other packages are using multiline string format, e.g. dev-java/ant-1.10.15.
Comment 3 Volkmar W. Pogatzki 2025-03-05 14:22:27 UTC
(In reply to Fabio Rossi from comment #2)
> Yes, using 9999
> [...]
> BTW open-test-reporting-events-0.2.0_pre1 is the only one using array format
> for MAVEN_PROVIDES. All the other packages are using multiline string
> format, e.g. dev-java/ant-1.10.15.

Ah, good you found the reason. Will you please provide a pull request adjusting it, possibly combined with vbump to final 0.2.0?

BTW: For bumping to latest JUnit5 we'd need to package the other modules as well which would need immutables/immutables packaged.