Bug 1985566 - aqute-bnd missing dependencies in Rawhide
Summary: aqute-bnd missing dependencies in Rawhide
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: aqute-bnd
Version: rawhide
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Mikolaj Izdebski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1987389 1987990
TreeView+ depends on / blocked
 
Reported: 2021-07-23 23:04 UTC by Jerry James
Modified: 2021-08-03 14:02 UTC (History)
5 users (show)

Fixed In Version: aqute-bnd-5.2.0-4.fc35
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-08-03 14:01:21 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jerry James 2021-07-23 23:04:17 UTC
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:

Comment 1 Jerry James 2021-07-23 23:13:45 UTC
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.

Comment 2 Mattias Ellert 2021-08-02 18:31:52 UTC
Pull request:
https://src.fedoraproject.org/rpms/aqute-bnd/pull-request/9

Comment 3 Mikolaj Izdebski 2021-08-03 13:50:01 UTC
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.

Comment 4 Fedora Update System 2021-08-03 13:58:22 UTC
FEDORA-2021-5b4c309992 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-5b4c309992

Comment 5 Fedora Update System 2021-08-03 14:01:21 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.