Description of problem: The scala package failed the mass rebuild. The last command it ran was: bnd wrap --properties /builddir/build/SOURCES/scala-compiler-bnd.properties --output scala-compiler.jar --version 2.13.6.v20210514-180743-VFINAL-9468b9a scala-compiler.jar.no /usr/bin/build-classpath: Could not find osgi-annotation Java extension for this JVM /usr/bin/build-classpath: Could not find osgi-core Java extension for this JVM /usr/bin/build-classpath: Could not find osgi-compendium Java extension for this JVM /usr/bin/build-classpath: error: Some specified jars were not found Error: Could not find or load main class aQute.bnd.main.bnd Caused by: java.lang.ClassNotFoundException: aQute.bnd.main.bnd The file /usr/bin/bnd contains this: BASE_JARS="aqute-bnd slf4j/slf4j-api slf4j/slf4j-simple osgi-annotation osgi-core osgi-compendium" but the aqute-bnd package, which owns /usr/bin/bnd, does not have Requires on any of the packages that provide those jars: $ rpm -q --requires aqute-bnd (java-headless or java-11-headless) /usr/bin/bash config(aqute-bnd) = 5.2.0-2.fc35 javapackages-filesystem javapackages-tools The necessary Requires are present in F34 and earlier. Version-Release number of selected component (if applicable): aqute-bnd-5.2.0-2.fc35.noarch How reproducible: Always. Steps to Reproduce: 1. Try to build scala in mock 2. 3. Actual results: The bnd command fails, because the aqute-bnd package does not have Requires on the packages that provide the jars it needs to run. Expected results: Successful run of the bnd command. Additional info:
Even after manually installing the missing dependencies in a mock chroot, I still get: $ bnd wrap --properties /builddir/build/SOURCES/scala-compiler-bnd.properties --output scala-compiler.jar --version 2.13.6.v20210514-180743-VFINAL-9468b9a scala-compiler.jar.no Error: Could not find or load main class aQute.bnd.main.bnd Caused by: java.lang.ClassNotFoundException: aQute.bnd.main.bnd Something is wrong with %{_javadir}/aqute-bnd/biz.aQute.bnd.jar. It only contains pom.xml and pom.properties. There are no class files in that jar.
Pull request: https://src.fedoraproject.org/rpms/aqute-bnd/pull-request/9
Thank you for the pull request. Proposed pull request builds fine in Koji and it passed automated testing. I've manually verified that: - it fixes auto-requires - bnd command can be ran - biz.aQute.bnd.jar is non-empty Pull request merged.
FEDORA-2021-5b4c309992 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-5b4c309992
FEDORA-2021-5b4c309992 has been pushed to the Fedora 35 stable repository. If problem still persists, please make note of it in this bug report.