diff --git a/.gitignore b/.gitignore index 191ee83..5b097a4 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/tomcat-9.0.30.redhat-4-src.zip +SOURCES/tomcat-9.0.50.redhat-00006-src.zip diff --git a/.pki-servlet-engine.metadata b/.pki-servlet-engine.metadata index b091fff..0d66dba 100644 --- a/.pki-servlet-engine.metadata +++ b/.pki-servlet-engine.metadata @@ -1 +1 @@ -154cbcee2ff93a9a8efab28dd256f9edac95efe2 SOURCES/tomcat-9.0.30.redhat-4-src.zip +d3342fad0113532635b6d2ec733e189abeadaf0d SOURCES/tomcat-9.0.50.redhat-00006-src.zip diff --git a/SOURCES/removeUnusedDependencies.patch b/SOURCES/removeUnusedDependencies.patch index 2485940..1aaa933 100644 --- a/SOURCES/removeUnusedDependencies.patch +++ b/SOURCES/removeUnusedDependencies.patch @@ -1,64 +1,26 @@ -diff -up ./build.properties.default.orig ./build.properties.default ---- ./build.properties.default.orig 2020-04-23 09:43:55.567688581 -0400 -+++ ./build.properties.default 2020-04-23 09:57:55.724988090 -0400 -@@ -274,35 +274,3 @@ findbugs.checksum.value=8c54502a8e1b78ea - findbugs.home=${base.path}/spotbugs-${findbugs.version} - findbugs.jar=${findbugs.home}/lib/spotbugs-ant.jar - findbugs.loc=${base-maven.loc}/com/github/spotbugs/spotbugs/${findbugs.version}/spotbugs-${findbugs.version}.tgz -- --# ----- SAAJ API, used by Code Signing for releases ----- --# ----- No longer part of JRE from Java 11 onwards ----- --# ----- CDDL Licensed ----- --saaj-api.version=1.3.5 --saaj-api.checksum.enabled=true --saaj-api.checksum.algorithm=MD5|SHA-1 --saaj-api.checksum.value=caae8b4bf2c551155815331e9e96256f|1c399a7fea4d0262a6a39750e419c24f0c769586 --saaj-api.home=${base.path}/saaj-api-${saaj-api.version} --saaj-api.jar=${saaj-api.home}/saaj-api-${saaj-api.version}.jar --saaj-api.loc=${base-maven.loc}/javax/xml/soap/saaj-api/${saaj-api.version}/saaj-api-${saaj-api.version}.jar -- --# ----- bnd & bndlib, version 4.0.0 or later ----- --# ----- provides OSGI metadata for JARs ----- --bnd.version=4.2.0 -- --# checksums for biz.aQute.bnd-4.2.0.jar, biz.aQute.bndlib-4.2.0.jar --bnd.checksum.enabled=true --bnd.checksum.algorithm=MD5|SHA-1 --bnd.checksum.value=ca26a671ea67bf75d83b1588bdd68923|d4bc96b2619f95e596bbf3f725f3b077e96c5d43 -- --bndlib.checksum.enabled=true --bndlib.checksum.algorithm=MD5|SHA-1 --bndlib.checksum.value=7519e890783ade99bb74608d0efbf8c4|c4fa30ac11cc0bf27b1f706ac8ebae8cec358e77 -- --bnd.home=${base.path}/bnd-${bnd.version} --bnd.jar=${bnd.home}/biz.aQute.bnd-${bnd.version}.jar --bnd.loc=${base-maven.loc}/biz/aQute/bnd/biz.aQute.bnd/${bnd.version}/biz.aQute.bnd-${bnd.version}.jar -- --bndlib.home=${base.path}/bndlib-${bnd.version} --bndlib.jar=${bndlib.home}/biz.aQute.bndlib-${bnd.version}.jar --bndlib.loc=${base-maven.loc}/biz/aQute/bnd/biz.aQute.bndlib/${bnd.version}/biz.aQute.bndlib-${bnd.version}.jar -diff -up ./build.xml.orig ./build.xml ---- ./build.xml.orig 2020-04-23 09:43:50.041699701 -0400 -+++ ./build.xml 2020-04-23 09:58:18.835941004 -0400 -@@ -69,7 +69,6 @@ +--- build.xml.orig 2021-12-09 13:29:38.000000000 -0500 ++++ build.xml 2022-06-24 15:11:09.283008874 -0400 +@@ -73,7 +73,6 @@ -- +- -@@ -219,9 +218,6 @@ +@@ -239,11 +238,6 @@ + - -- +- +- +- - - -@@ -272,7 +268,6 @@ +@@ -298,7 +292,6 @@ @@ -66,362 +28,276 @@ diff -up ./build.xml.orig ./build.xml -@@ -425,6 +420,7 @@ +@@ -453,6 +446,7 @@ + - -@@ -556,18 +552,6 @@ - - - -- -- -- -- -- -- -- -- -- -- -- + +@@ -964,7 +958,7 @@ + - ++ + + + - -@@ -755,25 +740,12 @@ - - - -- -- -- -- -- -- -- -- -- -- -- -+ - - +@@ -1032,7 +1027,7 @@ filesDir="${tomcat.classes}" filesId="files.annotations-api" -- manifest="${tomcat.manifests}/annotations-api.jar.manifest" + manifest="${tomcat.manifests}/annotations-api.jar.manifest" - addOSGi="true" /> -+ manifest="${tomcat.manifests}/annotations-api.jar.manifest" /> ++ /> - + -+ license="${tomcat.manifests}/servlet-api.jar.license" /> ++ /> - - + -+ manifest="${tomcat.manifests}/jsp-api.jar.manifest" /> ++ /> - - + -+ manifest="${tomcat.manifests}/el-api.jar.manifest" /> ++ /> - + -+ manifest="${tomcat.manifests}/websocket-api.jar.manifest" /> ++ /> - + -+ manifest="${tomcat.manifests}/jaspic-api.jar.manifest" /> ++ /> - - + -+ meta-inf="${tomcat.manifests}/tomcat-websocket.jar" /> ++ /> - -+ filesId="files.tomcat-juli" /> ++ /> - - + -+ filesId="files.catalina" /> ++ /> - - + -+ filesId="files.catalina-tribes" /> ++ /> - - -+ filesId="files.catalina-ssi" /> ++ /> - - + -+ filesId="files.catalina-ha" /> ++ /> - - - + -+ filesId="files.catalina-storeconfig" /> ++ /> - - + -+ filesId="files.tomcat-api" /> ++ /> - - + -+ filesId="files.tomcat-util" /> ++ /> - - + -+ filesId="files.tomcat-util-scan" /> ++ /> - - + -+ filesId="files.tomcat-coyote" /> ++ /> - + -+ filesId="files.tomcat-jni" /> ++ /> - - + -+ meta-inf="${tomcat.manifests}/jasper.jar" /> ++ /> - - + -+ filesId="files.jasper-el" /> ++ /> -+ filesId="files.tomcat-dbcp" /> ++ /> -+ depends="build-manifests,compile" > +- depends="build-manifests,setup-bnd,compile,package" > ++ depends="build-manifests,compile,package" > -@@ -1387,22 +1339,18 @@ - filesDir="${tomcat.classes}" - filesId="files.tomcat-embed-core" - notice="${tomcat.manifests}/servlet-api.jar.notice" -- license="${tomcat.manifests}/servlet-api.jar.license" -- addOSGi="true" /> -+ license="${tomcat.manifests}/servlet-api.jar.license" /> - -+ meta-inf="${tomcat.manifests}/jasper.jar" /> - -+ filesId="files.tomcat-embed-el" /> - -+ meta-inf="${tomcat.manifests}/tomcat-websocket.jar" /> +@@ -3137,7 +3132,7 @@ skip.installer property in build.propert - + ++ > -@@ -2749,34 +2697,6 @@ skip.installer property in build.propert - + + +@@ -3712,15 +3707,6 @@ Read the Building page on the Apache Tom - -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - -@@ -3261,38 +3181,6 @@ Read the Building page on the Apache Tom - - - -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- +- - -- +- - -- - - -- +- - - -@@ -3308,8 +3196,6 @@ Read the Building page on the Apache Tom - default="${tomcat.manifests}/default.license" /> - -- - - - -@@ -3323,22 +3209,9 @@ Read the Building page on the Apache Tom - - - -- -- -- -- - - - -- -- -- -- -- -- -- -- +diff -up ./java/org/apache/el/ExpressionFactoryImpl.java.orig ./java/org/apache/el/ExpressionFactoryImpl.java +--- ./java/org/apache/el/ExpressionFactoryImpl.java.orig 2022-06-24 15:17:45.976566618 -0400 ++++ ./java/org/apache/el/ExpressionFactoryImpl.java 2022-06-24 15:17:51.346506484 -0400 +@@ -33,7 +33,6 @@ import org.apache.el.util.MessageFactory + * + * @author Jacob Hookom [jacob@hookom.net] + */ +-@aQute.bnd.annotation.spi.ServiceProvider(value=ExpressionFactory.class) + public class ExpressionFactoryImpl extends ExpressionFactory { + + @Override +diff -up ./java/org/apache/juli/logging/LogFactory.java.orig ./java/org/apache/juli/logging/LogFactory.java +--- ./java/org/apache/juli/logging/LogFactory.java.orig 2022-06-24 15:17:21.628839270 -0400 ++++ ./java/org/apache/juli/logging/LogFactory.java 2022-06-24 15:17:37.625660134 -0400 +@@ -21,8 +21,6 @@ import java.nio.file.FileSystems; + import java.util.ServiceLoader; + import java.util.logging.LogManager; + +-import aQute.bnd.annotation.spi.ServiceConsumer; - - - - + /** + * This is a modified LogFactory that uses a simple {@link ServiceLoader} based + * discovery mechanism with a default of using JDK based logging. An +@@ -63,7 +61,6 @@ import aQute.bnd.annotation.spi.ServiceC + * @author Costin Manolache + * @author Richard A. Sitze + */ +-@ServiceConsumer(value=org.apache.juli.logging.Log.class) + public class LogFactory { + + private static final LogFactory singleton = new LogFactory(); +diff -up ./java/org/apache/tomcat/websocket/server/DefaultServerEndpointConfigurator.java.orig ./java/org/apache/tomcat/websocket/server/DefaultServerEndpointConfigurator.java +--- ./java/org/apache/tomcat/websocket/server/DefaultServerEndpointConfigurator.java.orig 2022-06-24 15:17:09.250977880 -0400 ++++ ./java/org/apache/tomcat/websocket/server/DefaultServerEndpointConfigurator.java 2022-06-24 15:17:14.091923670 -0400 +@@ -26,7 +26,6 @@ import javax.websocket.HandshakeResponse + import javax.websocket.server.HandshakeRequest; + import javax.websocket.server.ServerEndpointConfig; + +-@aQute.bnd.annotation.spi.ServiceProvider(value=ServerEndpointConfig.Configurator.class) + public class DefaultServerEndpointConfigurator + extends ServerEndpointConfig.Configurator { + +diff -up ./java/org/apache/tomcat/websocket/WsContainerProvider.java.orig ./java/org/apache/tomcat/websocket/WsContainerProvider.java +--- ./java/org/apache/tomcat/websocket/WsContainerProvider.java.orig 2022-06-24 15:16:58.046103352 -0400 ++++ ./java/org/apache/tomcat/websocket/WsContainerProvider.java 2022-06-24 15:17:03.098046783 -0400 +@@ -19,7 +19,6 @@ package org.apache.tomcat.websocket; + import javax.websocket.ContainerProvider; + import javax.websocket.WebSocketContainer; + +-@aQute.bnd.annotation.spi.ServiceProvider(value=ContainerProvider.class) + public class WsContainerProvider extends ContainerProvider { + + @Override diff --git a/SOURCES/tomcat-9.0-catalina-policy.patch b/SOURCES/tomcat-9.0-catalina-policy.patch index c8c5c08..0a460dc 100644 --- a/SOURCES/tomcat-9.0-catalina-policy.patch +++ b/SOURCES/tomcat-9.0-catalina-policy.patch @@ -1,8 +1,8 @@ ---- conf/catalina.policy.orig 2018-06-21 13:30:04.074492012 -0400 -+++ conf/catalina.policy 2018-06-21 13:30:02.111479809 -0400 -@@ -50,6 +50,30 @@ grant codeBase "file:${java.home}/lib/ex - permission java.security.AllPermission; - }; +--- conf/catalina.policy.orig 2021-12-09 13:29:38.000000000 -0500 ++++ conf/catalina.policy 2022-06-24 14:57:25.418254977 -0400 +@@ -56,6 +56,30 @@ grant codeBase "file:${java.home}/lib/ex + // permission java.security.AllPermission; + //}; +// ========== RHEL SPECIFIC CODE PERMISSIONS ======================================= + diff --git a/SOURCES/tomcat-9.0.30-CompilerOptionsRemoval.patch b/SOURCES/tomcat-9.0.30-CompilerOptionsRemoval.patch deleted file mode 100644 index 4c477b4..0000000 --- a/SOURCES/tomcat-9.0.30-CompilerOptionsRemoval.patch +++ /dev/null @@ -1,63 +0,0 @@ ---- java/org/apache/jasper/compiler/JDTCompiler.java.orig 2020-04-21 13:14:09.678677327 -0400 -+++ java/org/apache/jasper/compiler/JDTCompiler.java 2020-04-21 13:14:53.044535302 -0400 -@@ -313,25 +313,6 @@ public class JDTCompiler extends org.apa - } else if(opt.equals("1.8")) { - settings.put(CompilerOptions.OPTION_Source, - CompilerOptions.VERSION_1_8); -- // Version format changed from Java 9 onwards. -- // Support old format that was used in EA implementation as well -- } else if(opt.equals("9") || opt.equals("1.9")) { -- settings.put(CompilerOptions.OPTION_Source, -- CompilerOptions.VERSION_9); -- } else if(opt.equals("10")) { -- settings.put(CompilerOptions.OPTION_Source, -- CompilerOptions.VERSION_10); -- } else if(opt.equals("11")) { -- settings.put(CompilerOptions.OPTION_Source, -- CompilerOptions.VERSION_11); -- } else if(opt.equals("12")) { -- settings.put(CompilerOptions.OPTION_Source, -- CompilerOptions.VERSION_12); -- } else if(opt.equals("13")) { -- // Constant not available in latest ECJ version shipped with -- // Tomcat. May be supported in a snapshot build. -- // This is checked against the actual version below. -- settings.put(CompilerOptions.OPTION_Source, "13"); - } else { - log.warn(Localizer.getMessage("jsp.warning.unknown.sourceVM", opt)); - settings.put(CompilerOptions.OPTION_Source, -@@ -378,34 +359,6 @@ public class JDTCompiler extends org.apa - CompilerOptions.VERSION_1_8); - settings.put(CompilerOptions.OPTION_Compliance, - CompilerOptions.VERSION_1_8); -- // Version format changed from Java 9 onwards. -- // Support old format that was used in EA implementation as well -- } else if(opt.equals("9") || opt.equals("1.9")) { -- settings.put(CompilerOptions.OPTION_TargetPlatform, -- CompilerOptions.VERSION_9); -- settings.put(CompilerOptions.OPTION_Compliance, -- CompilerOptions.VERSION_9); -- } else if(opt.equals("10")) { -- settings.put(CompilerOptions.OPTION_TargetPlatform, -- CompilerOptions.VERSION_10); -- settings.put(CompilerOptions.OPTION_Compliance, -- CompilerOptions.VERSION_10); -- } else if(opt.equals("11")) { -- settings.put(CompilerOptions.OPTION_TargetPlatform, -- CompilerOptions.VERSION_11); -- settings.put(CompilerOptions.OPTION_Compliance, -- CompilerOptions.VERSION_11); -- } else if(opt.equals("12")) { -- settings.put(CompilerOptions.OPTION_TargetPlatform, -- CompilerOptions.VERSION_12); -- settings.put(CompilerOptions.OPTION_Compliance, -- CompilerOptions.VERSION_12); -- } else if(opt.equals("13")) { -- // Constant not available in latest ECJ version shipped with -- // Tomcat. May be supported in a snapshot build. -- // This is checked against the actual version below. -- settings.put(CompilerOptions.OPTION_TargetPlatform, "13"); -- settings.put(CompilerOptions.OPTION_Compliance, "13"); - } else { - log.warn(Localizer.getMessage("jsp.warning.unknown.targetVM", opt)); - settings.put(CompilerOptions.OPTION_TargetPlatform, diff --git a/SPECS/pki-servlet-engine.spec b/SPECS/pki-servlet-engine.spec index 0d57920..51a0b62 100644 --- a/SPECS/pki-servlet-engine.spec +++ b/SPECS/pki-servlet-engine.spec @@ -30,8 +30,8 @@ %global major_version 9 %global minor_version 0 -%global micro_version 30 -%global redhat_version 4 +%global micro_version 50 +%global redhat_version 00006 %global packdname apache-tomcat-%{version}.redhat-%{redhat_version}-src # Specification versions @@ -58,7 +58,7 @@ Name: pki-servlet-engine Epoch: 1 Version: %{major_version}.%{minor_version}.%{micro_version} -Release: 3%{?dist} +Release: 1%{?dist} Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API Group: System Environment/Daemons License: ASL 2.0 @@ -79,9 +79,8 @@ Source32: tomcat-named.service Patch0: tomcat-%{major_version}.%{minor_version}-bootstrap-MANIFEST.MF.patch Patch1: tomcat-%{major_version}.%{minor_version}-tomcat-users-webapp.patch -Patch2: tomcat-9.0.30-CompilerOptionsRemoval.patch -Patch3: tomcat-%{major_version}.%{minor_version}-catalina-policy.patch -Patch4: removeUnusedDependencies.patch +Patch2: tomcat-%{major_version}.%{minor_version}-catalina-policy.patch +Patch3: removeUnusedDependencies.patch BuildArch: noarch @@ -142,7 +141,6 @@ find . -type f \( -name "*.bat" -o -name "*.class" -o -name Thumbs.db -o -name " %patch1 -p0 %patch2 -p0 %patch3 -p0 -%patch4 -p0 # Since we don't support ECJ in RHEL anymore, remove the class that requires it %{__rm} -f java/org/apache/jasper/compiler/JDTCompiler.java @@ -459,6 +457,10 @@ fi %{_mavenpomdir}/JPP-tomcat-servlet-api.pom %changelog +* Fri Mar 04 2022 Coty Sutherland - 1:9.0.50-1 +- Update to JWS 5.6.1 distribution +- Resolves: rhbz#2057162 Rebase pki-servlet-engine to 9.0.50 + * Fri Jun 11 2021 Coty Sutherland - 1:9.0.30-3 - Reverts: rhbz#1969366 as it causes other issues