13 Commits

Author SHA256 Message Date
022aafa20b Accepting request 1222906 from Java:packages
Fix runtime problems with unshaded objectweb-asm

OBS-URL: https://build.opensuse.org/request/show/1222906
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jersey?expand=0&rev=12
2024-11-09 19:58:25 +00:00
aeb124d815 OBS-URL: https://build.opensuse.org/package/show/Java:packages/jersey?expand=0&rev=30 2024-11-08 22:49:17 +00:00
b7e119df30 Accepting request 1221267 from Java:packages
Fix conflict/choice of providers

OBS-URL: https://build.opensuse.org/request/show/1221267
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jersey?expand=0&rev=11
2024-11-05 14:41:18 +00:00
74615e2d00 OBS-URL: https://build.opensuse.org/package/show/Java:packages/jersey?expand=0&rev=28 2024-11-04 21:29:47 +00:00
664edcc472 OBS-URL: https://build.opensuse.org/package/show/Java:packages/jersey?expand=0&rev=27 2024-11-04 20:47:43 +00:00
4b7e706448 Accepting request 1219567 from Java:packages
try to satisfy legaldb

OBS-URL: https://build.opensuse.org/request/show/1219567
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jersey?expand=0&rev=10
2024-10-30 16:37:05 +00:00
6f3abf0a69 OBS-URL: https://build.opensuse.org/package/show/Java:packages/jersey?expand=0&rev=25 2024-10-30 12:54:38 +00:00
1e3459e385 OBS-URL: https://build.opensuse.org/package/show/Java:packages/jersey?expand=0&rev=24 2024-10-30 11:08:24 +00:00
0683da4e3a OBS-URL: https://build.opensuse.org/package/show/Java:packages/jersey?expand=0&rev=23 2024-10-30 07:54:16 +00:00
5213691b9e Accepting request 1205333 from Java:packages
fix build on sle15 and sle12

OBS-URL: https://build.opensuse.org/request/show/1205333
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jersey?expand=0&rev=9
2024-10-03 15:40:10 +00:00
a49debe246 fix build on sle15 and sle12
OBS-URL: https://build.opensuse.org/package/show/Java:packages/jersey?expand=0&rev=21
2024-10-03 00:01:27 +00:00
17f081a488 OBS-URL: https://build.opensuse.org/package/show/Java:packages/jersey?expand=0&rev=20 2024-10-02 16:07:58 +00:00
5821c06e76 OBS-URL: https://build.opensuse.org/package/show/Java:packages/jersey?expand=0&rev=19 2024-09-29 14:45:37 +00:00
4 changed files with 75 additions and 41 deletions

View File

@@ -0,0 +1,11 @@
--- jersey-2.28/containers/jetty-http/src/main/java/org/glassfish/jersey/jetty/JettyHttpContainerFactory.java 2024-10-30 04:43:55.503938128 +0100
+++ jersey-2.28/containers/jetty-http/src/main/java/org/glassfish/jersey/jetty/JettyHttpContainerFactory.java 2024-10-30 04:44:57.714388706 +0100
@@ -293,7 +293,7 @@
.build();
@Override
- protected Thread newThread(Runnable runnable) {
+ public Thread newThread(Runnable runnable) {
return threadFactory.newThread(runnable);
}
}

11
jersey-asm-version.patch Normal file
View File

@@ -0,0 +1,11 @@
--- jersey-2.28/core-server/src/main/java/org/glassfish/jersey/server/internal/scanning/AnnotationAcceptingListener.java 2024-10-30 04:43:55.553938491 +0100
+++ jersey-2.28/core-server/src/main/java/org/glassfish/jersey/server/internal/scanning/AnnotationAcceptingListener.java 2024-11-08 23:37:03.260572966 +0100
@@ -164,7 +164,7 @@
private boolean isAnnotated;
private AnnotatedClassVisitor() {
- super(Opcodes.ASM5);
+ super(Opcodes.ASM7);
}
public void visit(final int version, final int access, final String name,

View File

@@ -1,3 +1,32 @@
-------------------------------------------------------------------
Fri Nov 8 22:46:04 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Added patch:
* jersey-asm-version.patch
+ our fix runtime errors because of the removal of repackaged
version of asm
+ Opcodes.ASM5 is too low for the system objectweb-asm version
-------------------------------------------------------------------
Mon Nov 4 21:29:39 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Fix conflict/choice of providers
-------------------------------------------------------------------
Wed Oct 30 07:53:13 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Build more modules since we have the dependencies
- Added patch:
* java-util-concurrent-ThreadFactory-newThread.patch
+ overriding method cannot be protected if the interface
method is public
-------------------------------------------------------------------
Wed Oct 2 23:59:58 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Disable wadl-doclet unconditionally, since it is broken with
all java versions
-------------------------------------------------------------------
Wed Feb 21 10:46:33 UTC 2024 - Gus Kenion <gus.kenion@suse.com>

View File

@@ -22,7 +22,7 @@ Version: 2.28
Release: 0
Summary: JAX-RS (JSR 311) production quality Reference Implementation
# Some files in core-server are under ASL 2.0 license
License: Apache-2.0 AND (EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0)
License: Apache-2.0 AND (EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0) AND BSD-2-Clause
URL: https://github.com/eclipse-ee4j/jersey
Source0: https://github.com/eclipse-ee4j/jersey/archive/%{version}/%{name}-%{version}.tar.gz
Source1: http://www.apache.org/licenses/LICENSE-2.0.txt
@@ -32,6 +32,8 @@ Patch0: jersey-2.17-mvc-jsp-servlet31.patch
Patch2: 0002-Port-to-glassfish-jsonp-1.0.patch
Patch3: 0003-Port-to-hibernate-validation-5.x.patch
Patch4: jersey-2.28-contended.patch
Patch5: java-util-concurrent-ThreadFactory-newThread.patch
Patch6: jersey-asm-version.patch
BuildRequires: fdupes
BuildRequires: maven-local
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-annotations)
@@ -39,23 +41,34 @@ BuildRequires: mvn(com.fasterxml.jackson.core:jackson-databind)
BuildRequires: mvn(com.fasterxml.jackson.module:jackson-module-jaxb-annotations)
BuildRequires: mvn(com.google.guava:guava)
BuildRequires: mvn(com.sun.istack:istack-commons-maven-plugin)
BuildRequires: mvn(jakarta.ws.rs:jakarta.ws.rs-api)
BuildRequires: mvn(javax.activation:javax.activation-api)
BuildRequires: mvn(javax.annotation:javax.annotation-api)
BuildRequires: mvn(javax.inject:javax.inject)
BuildRequires: mvn(javax.persistence:persistence-api)
BuildRequires: mvn(javax.servlet:javax.servlet-api)
BuildRequires: mvn(javax.validation:validation-api)
BuildRequires: mvn(javax.ws.rs:javax.ws.rs-api)
BuildRequires: mvn(javax.xml.bind:jaxb-api)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.httpcomponents:httpclient)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.eclipse.jetty:jetty-client)
BuildRequires: mvn(org.eclipse.jetty:jetty-continuation)
BuildRequires: mvn(org.eclipse.jetty:jetty-server)
BuildRequires: mvn(org.eclipse.jetty:jetty-util)
BuildRequires: mvn(org.eclipse.jetty:jetty-webapp)
BuildRequires: mvn(org.glassfish.hk2:hk2-bom:pom:)
BuildRequires: mvn(org.glassfish.hk2:hk2-locator)
BuildRequires: mvn(org.glassfish.hk2:osgi-resource-locator)
BuildRequires: mvn(org.jvnet.mimepull:mimepull)
BuildRequires: mvn(org.osgi:osgi.core)
BuildRequires: mvn(org.ow2.asm:asm)
BuildRequires: mvn(org.simpleframework:simple-common)
BuildRequires: mvn(org.simpleframework:simple-http)
BuildRequires: mvn(org.simpleframework:simple-transport)
BuildRequires: mvn(xerces:xercesImpl)
#!BuildRequires: istack-commons-maven-plugin
BuildArch: noarch
%if %{without jp_minimal}
BuildRequires: mvn(com.github.spullara.mustache.java:compiler)
@@ -63,16 +76,11 @@ BuildRequires: mvn(io.reactivex:rxjava)
BuildRequires: mvn(javax.el:javax.el-api)
BuildRequires: mvn(javax.enterprise:cdi-api)
BuildRequires: mvn(javax.json:javax.json-api)
BuildRequires: mvn(javax.persistence:persistence-api)
BuildRequires: mvn(javax.servlet.jsp:jsp-api)
BuildRequires: mvn(javax.servlet:javax.servlet-api)
BuildRequires: mvn(javax.servlet:servlet-api)
BuildRequires: mvn(javax.transaction:javax.transaction-api)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.codehaus.jettison:jettison)
BuildRequires: mvn(org.eclipse.jetty:jetty-continuation)
BuildRequires: mvn(org.eclipse.jetty:jetty-server)
BuildRequires: mvn(org.eclipse.jetty:jetty-util)
BuildRequires: mvn(org.eclipse.jetty:jetty-webapp)
BuildRequires: mvn(org.freemarker:freemarker)
BuildRequires: mvn(org.glassfish.grizzly:grizzly-http-server)
BuildRequires: mvn(org.glassfish.grizzly:grizzly-http-servlet)
@@ -83,14 +91,9 @@ BuildRequires: mvn(org.hamcrest:hamcrest-library)
BuildRequires: mvn(org.hibernate:hibernate-validator)
BuildRequires: mvn(org.hibernate:hibernate-validator-cdi)
BuildRequires: mvn(org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.2_spec)
BuildRequires: mvn(org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec)
BuildRequires: mvn(org.jboss.weld.se:weld-se-core)
BuildRequires: mvn(org.jboss:jboss-vfs)
BuildRequires: mvn(org.jvnet.mimepull:mimepull)
BuildRequires: mvn(org.mockito:mockito-all)
BuildRequires: mvn(org.simpleframework:simple-common)
BuildRequires: mvn(org.simpleframework:simple-http)
BuildRequires: mvn(org.simpleframework:simple-transport)
BuildRequires: mvn(org.testng:testng)
%endif
@@ -114,11 +117,7 @@ Summary: Javadoc for %{name}
This package contains javadoc for %{name}.
%prep
%setup -q
%patch -P 0 -p1
%patch -P 2 -p1
%patch -P 3 -p1
%patch -P 4 -p1
%autosetup -p1
find . -name "*.jar" -print -delete
find . -name "*.class" -print -delete
@@ -162,22 +161,18 @@ find core-* containers/{grizzly2,jdk,jetty}-http media/sse ext/{entity-filtering
%pom_change_dep -r org.glassfish:jakarta.json org.glassfish:javax.json
%pom_change_dep -r org.osgi:org.osgi.core org.osgi:osgi.core
%pom_change_dep -r org.osgi:org.osgi.compendium org.osgi:osgi.cmpn
%pom_change_dep -r jakarta.ws.rs:jakarta.ws.rs-api javax.ws.rs:javax.ws.rs-api
# Fix NoClassDefFound in tests
%pom_add_dep javax.json:javax.json-api:1.0 media/json-processing
# Fix misc EE API references
%pom_change_dep javax:javaee-api javax.enterprise:cdi-api:'${cdi.api.version}':provided ext/cdi/jersey-cdi1x-transaction
%pom_add_dep org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec:1.0.0.Alpha3:provided ext/cdi/jersey-cdi1x-transaction
%pom_add_dep org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.2_spec:1.0.0.Alpha3:provided ext/cdi/jersey-cdi1x-validation
%pom_add_dep javax.transaction:javax.transaction-api:1.3:provided ext/cdi/jersey-cdi1x-transaction
#pom_add_dep org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.2_spec:1.0.0.Alpha3:provided ext/cdi/jersey-cdi1x-validation
# Fix reference to JDK tools jar
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 13}%{!?pkg_vcmp:0}
# uses com.sun.javadoc apis removed in JDK 13
%pom_disable_module wadl-doclet ext
%endif
%pom_xpath_remove "pom:dependencies/pom:dependency[pom:artifactId = 'tools']/pom:scope" ext/wadl-doclet
%pom_xpath_remove "pom:dependencies/pom:dependency[pom:artifactId = 'tools']/pom:systemPath" ext/wadl-doclet
# Don't use obsolete servlet API version
%pom_remove_dep -r org.mortbay.jetty:servlet-api-2.5
@@ -259,21 +254,18 @@ rm media/multipart/src/test/java/org/glassfish/jersey/media/multipart/internal/M
# Additional modules to disable when jp_minimal is activated
%if %{with jp_minimal}
%pom_disable_module containers
%pom_disable_module security
%pom_disable_module grizzly2-http containers
%pom_disable_module grizzly2-servlet containers
%pom_disable_module json-jettison media
%pom_disable_module json-processing media
%pom_disable_module multipart media
%pom_disable_module sse media
%pom_disable_module bean-validation ext
%pom_disable_module cdi ext
%pom_disable_module metainf-services ext
%pom_disable_module mvc ext
%pom_disable_module mvc-bean-validation ext
%pom_disable_module mvc-freemarker ext
%pom_disable_module mvc-jsp ext
%pom_disable_module mvc-mustache ext
%pom_disable_module proxy-client ext
%pom_disable_module rx ext
%endif
@@ -288,19 +280,10 @@ sed -i -e 's/javax\.annotation\.\*;version="!"/javax.annotation.*/' $(find -name
# Make optional dep on javax.activation
sed -i -e 's/javax\.activation\.\*;/javax.activation.*;resolution:=optional;/' core-common/pom.xml
%pom_add_dep javax.activation:javax.activation-api::provided core-common
%pom_add_dep javax.xml.bind:jaxb-api::provided core-server ext/entity-filtering ext/wadl-doclet
%pom_add_dep javax.xml.bind:jaxb-api::provided core-server ext/entity-filtering
# All aggregation poms conflict because they have the same aId
%{mvn_file} "org.glassfish.jersey.connectors:project" %{name}/connectors-project
%{mvn_file} "org.glassfish.jersey.containers:project" %{name}/containers-project
%{mvn_file} "org.glassfish.jersey.ext:project" %{name}/ext-project
%{mvn_file} "org.glassfish.jersey.ext.cdi:project" %{name}/ext-cdi-project
%{mvn_file} "org.glassfish.jersey.ext.rx:project" %{name}/ext-rx-project
%{mvn_file} "org.glassfish.jersey.inject:project" %{name}/inject-project
%{mvn_file} "org.glassfish.jersey.media:project" %{name}/media-project
%{mvn_file} "org.glassfish.jersey.security:project" %{name}/security-project
%{mvn_file} "org.glassfish.jersey.test-framework:project" %{name}/test-framework-project
%{mvn_file} "org.glassfish.jersey.test-framework.providers:project" %{name}/test-framework-providers-project
%mvn_package :project __noinstall
# Package test framework separately
%{mvn_package} "org.glassfish.jersey.test-framework*:" test-framework