Bug 1987912 - jakarta-annotations version problem while building jakarta-json
Summary: jakarta-annotations version problem while building jakarta-json
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: jakarta-annotations
Version: 35
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Mikolaj Izdebski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1987587
TreeView+ depends on / blocked
 
Reported: 2021-07-29 16:50 UTC by Jerry James
Modified: 2021-08-15 00:05 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-08-15 00:05:50 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jerry James 2021-07-29 16:50:44 UTC
Description of problem:
The jakarta-json package failed the mass rebuild (bug 1987587) like this:

[INFO] --- maven-bundle-plugin:5.1.1:bundle (default-bundle) @ jsonp-jaxrs ---
[WARNING] Bundle org.glassfish:jsonp-jaxrs:bundle:1.1.6 : No
translation found for macro: range;[==,+)
[ERROR] Bundle org.glassfish:jsonp-jaxrs:bundle:1.1.6 : Invalid syntax
for version: , for cmd: range, arguments; [range, [==,+)]
[ERROR] Error(s) found in bundle configuration

Running the build with -X shows:

[DEBUG] Final Manifest:
#-----------------------------------------------------------------------
Manifest-Version: 1.0
Bnd-LastModified: 1627075105810
Build-Jdk-Spec: 11
Bundle-Description: Jakarta RESTful Web Services MessageBodyReader and M
 essageBodyWriter to support JsonValue API of Jakarta JSON Processing
Bundle-License: https://projects.eclipse.org/license/epl-2.0, https://pr
 ojects.eclipse.org/license/secondary-gpl-2.0-cp
Bundle-ManifestVersion: 2
Bundle-Name: Jakarta JSON Processing Media for Jakarta RESTful Web Servi
 ces
Bundle-SymbolicName: org.glassfish.jsonp-jaxrs
Bundle-Version: 1.1.5
Created-By: Apache Maven Bundle Plugin
Export-Package: org.glassfish.json.jaxrs;uses:="javax.json,javax.ws.rs,j
 avax.ws.rs.core,javax.ws.rs.ext";version="1.1.5"
Import-Package:
 javax.annotation;version="${range;[==,+)}",
 javax.json;version="[1.1,2)",
 javax.ws.rs;version="[2.1,3)",
 javax.ws.rs.core;version="[2.1,3)",
 javax.ws.rs.ext;version="[2.1,3)"
Tool: Bnd-5.2.0
#-----------------------------------------------------------------------

The version of javax.annotation is missing.  Is this due to the removal of spec-version-maven-plugin support from the jakarta-annotation package?

Version-Release number of selected component (if applicable):
jakarta-annotations-1.3.5-10.fc35

How reproducible:
Always

Steps to Reproduce:
1. fedpkg clone jakarta-json
2. cd jakarta-json
3. fedpkg srpm
4. mock -r fedora-rawhide-x86_64 --rebuild jakarta-json-1.1.6-3.fc35.src.rpm

Actual results:
The error shown above.

Expected results:
A good version for javax.annotation is computed, allowing the build to proceed.

Additional info:

Comment 1 Ben Cotton 2021-08-10 13:43:37 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 35 development cycle.
Changing version to 35.

Comment 2 Mikolaj Izdebski 2021-08-13 09:46:59 UTC
In commit 6aa9d768eb429982f1420fb0b3a4959767f20a19 spec-version-maven-plugin was removed.
Due to that several build properties (spec.bundle.version, spec.bundle.symbolic-name, spec.extension.name, spec.implementation.version, spec.specification.version), leading to incorrect bundle manifest.

Comment 3 Mikolaj Izdebski 2021-08-13 10:03:14 UTC
Fixed in commit d4c45b362fad6c0d8290a7b133500f4922fbf727

Comment 4 Sergio Basto 2021-08-14 14:56:54 UTC
if you add `BuildRequires:  junit` , you should be able to build it on rawhide and F35

Comment 5 Sergio Basto 2021-08-14 14:58:27 UTC
soory wrong bug last comment if for jakarta-json


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