Fix version for istack-commons-* build requirement

"istack-commons-*" are present in version 2.21.9 from AppStream and in
version 4.1.1 as part of jaxb module and if version is not specified the
latest get installed.

The 4.1.1 from jaxb module is built using java 11 (it is required) but
the glassfish-jaxb is built using java 8 so it fails.

Limiting the istack-commons-* version to < 3.0 will install the 2.1.1
and the package can be built.

Resolves: https://issues.redhat.com/browse/RHEL-30061
This commit is contained in:
Marco Fargetta 2023-11-30 10:55:20 +01:00 committed by Endi S. Dewata
parent 10b1a95b1e
commit 305777fbb1

View File

@ -9,8 +9,8 @@ URL: http://jaxb.java.net
Source0: https://jaxb.java.net/%{version}/jaxb-ri-%{version}.src.zip Source0: https://jaxb.java.net/%{version}/jaxb-ri-%{version}.src.zip
BuildRequires: maven-local BuildRequires: maven-local
BuildRequires: mvn(com.sun.istack:istack-commons-runtime) BuildRequires: mvn(com.sun.istack:istack-commons-runtime) < 3.0
BuildRequires: mvn(com.sun.istack:istack-commons-tools) BuildRequires: mvn(com.sun.istack:istack-commons-tools) < 3.0
BuildRequires: mvn(com.sun:tools) BuildRequires: mvn(com.sun:tools)
BuildRequires: mvn(com.sun.xml.fastinfoset:FastInfoset) BuildRequires: mvn(com.sun.xml.fastinfoset:FastInfoset)
BuildRequires: mvn(javax.xml.bind:jaxb-api) BuildRequires: mvn(javax.xml.bind:jaxb-api)