Compare commits
No commits in common. "a10" and "c8-beta" have entirely different histories.
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
|||||||
tomcat-10.1.49.redhat-00007-src.zip
|
SOURCES/tomcat-9.0.62.redhat-00018-src.zip
|
||||||
|
|||||||
1
.tomcat.metadata
Normal file
1
.tomcat.metadata
Normal file
@ -0,0 +1 @@
|
|||||||
|
5becf21ed1eb5c031c31d5f295ce499234e98f82 SOURCES/tomcat-9.0.62.redhat-00018-src.zip
|
||||||
40
SOURCES/JmxRemoteLifecycleListener.patch
Normal file
40
SOURCES/JmxRemoteLifecycleListener.patch
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
diff --git a/java/org/apache/catalina/mbeans/JmxRemoteLifecycleListener.java b/java/org/apache/catalina/mbeans/JmxRemoteLifecycleListener.java
|
||||||
|
index f62f8d1..db19960 100644
|
||||||
|
--- a/java/org/apache/catalina/mbeans/JmxRemoteLifecycleListener.java
|
||||||
|
+++ b/java/org/apache/catalina/mbeans/JmxRemoteLifecycleListener.java
|
||||||
|
@@ -611,34 +611,28 @@ public class JmxRemoteLifecycleListener extends SSLHostConfig implements Lifecyc
|
||||||
|
* Better to use the internal API than re-invent the wheel.
|
||||||
|
*/
|
||||||
|
@SuppressWarnings("restriction")
|
||||||
|
- private static class JmxRegistry extends sun.rmi.registry.RegistryImpl {
|
||||||
|
+ private static class JmxRegistry {
|
||||||
|
private static final long serialVersionUID = -3772054804656428217L;
|
||||||
|
private final String jmxName;
|
||||||
|
private final Remote jmxServer;
|
||||||
|
public JmxRegistry(int port, RMIClientSocketFactory csf,
|
||||||
|
RMIServerSocketFactory ssf, String jmxName, Remote jmxServer) throws RemoteException {
|
||||||
|
- super(port, csf, ssf);
|
||||||
|
this.jmxName = jmxName;
|
||||||
|
this.jmxServer = jmxServer;
|
||||||
|
}
|
||||||
|
- @Override
|
||||||
|
public Remote lookup(String name)
|
||||||
|
throws RemoteException, NotBoundException {
|
||||||
|
return (jmxName.equals(name)) ? jmxServer : null;
|
||||||
|
}
|
||||||
|
- @Override
|
||||||
|
public void bind(String name, Remote obj)
|
||||||
|
throws RemoteException, AlreadyBoundException, AccessException {
|
||||||
|
}
|
||||||
|
- @Override
|
||||||
|
public void unbind(String name)
|
||||||
|
throws RemoteException, NotBoundException, AccessException {
|
||||||
|
}
|
||||||
|
- @Override
|
||||||
|
public void rebind(String name, Remote obj)
|
||||||
|
throws RemoteException, AccessException {
|
||||||
|
}
|
||||||
|
- @Override
|
||||||
|
public String[] list() throws RemoteException {
|
||||||
|
return new String[] { jmxName };
|
||||||
|
}
|
||||||
8
SOURCES/fix-malformed-dtd.patch
Normal file
8
SOURCES/fix-malformed-dtd.patch
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
diff -up ./java/org/apache/tomcat/util/modeler/mbeans-descriptors.dtd.orig ./java/org/apache/tomcat/util/modeler/mbeans-descriptors.dtd
|
||||||
|
--- ./java/org/apache/tomcat/util/modeler/mbeans-descriptors.dtd.orig 2023-02-07 14:11:25.294179017 -0500
|
||||||
|
+++ ./java/org/apache/tomcat/util/modeler/mbeans-descriptors.dtd 2023-02-07 14:11:28.629196705 -0500
|
||||||
|
@@ -1,4 +1,3 @@
|
||||||
|
-<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!--
|
||||||
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
|
contributor license agreements. See the NOTICE file distributed with
|
||||||
7
SOURCES/java-9-start-up-parameters.conf
Normal file
7
SOURCES/java-9-start-up-parameters.conf
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# Add the JAVA 9 specific start-up parameters required by Tomcat
|
||||||
|
JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.base/java.lang=ALL-UNNAMED"
|
||||||
|
JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.base/java.io=ALL-UNNAMED"
|
||||||
|
JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.base/java.util=ALL-UNNAMED"
|
||||||
|
JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.base/java.util.concurrent=ALL-UNNAMED"
|
||||||
|
JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED"
|
||||||
|
export JDK_JAVA_OPTIONS
|
||||||
74
SOURCES/remove-bnd-annotation.patch
Normal file
74
SOURCES/remove-bnd-annotation.patch
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
diff --git a/build.xml b/build.xml
|
||||||
|
index 5a0be1b..2131211 100644
|
||||||
|
--- a/build.xml
|
||||||
|
+++ b/build.xml
|
||||||
|
@@ -3062,7 +3062,7 @@ skip.installer property in build.properties" />
|
||||||
|
|
||||||
|
<target name="download-compile"
|
||||||
|
description="Download components necessary to compile"
|
||||||
|
- depends="setup-bnd">
|
||||||
|
+ >
|
||||||
|
|
||||||
|
<!-- Download Commons Daemon -->
|
||||||
|
<antcall target="downloadgz-2">
|
||||||
|
diff --git a/java/org/apache/el/ExpressionFactoryImpl.java b/java/org/apache/el/ExpressionFactoryImpl.java
|
||||||
|
index a6faeb6..5afbda7 100644
|
||||||
|
--- a/java/org/apache/el/ExpressionFactoryImpl.java
|
||||||
|
+++ b/java/org/apache/el/ExpressionFactoryImpl.java
|
||||||
|
@@ -33,7 +33,7 @@ import org.apache.el.util.MessageFactory;
|
||||||
|
*
|
||||||
|
* @author Jacob Hookom [jacob@hookom.net]
|
||||||
|
*/
|
||||||
|
-@aQute.bnd.annotation.spi.ServiceProvider(value=ExpressionFactory.class)
|
||||||
|
+//@aQute.bnd.annotation.spi.ServiceProvider(value=ExpressionFactory.class)
|
||||||
|
public class ExpressionFactoryImpl extends ExpressionFactory {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
diff --git a/java/org/apache/juli/logging/LogFactory.java b/java/org/apache/juli/logging/LogFactory.java
|
||||||
|
index 56c805a..bd6eb0d 100644
|
||||||
|
--- a/java/org/apache/juli/logging/LogFactory.java
|
||||||
|
+++ b/java/org/apache/juli/logging/LogFactory.java
|
||||||
|
@@ -21,7 +21,7 @@ import java.nio.file.FileSystems;
|
||||||
|
import java.util.ServiceLoader;
|
||||||
|
import java.util.logging.LogManager;
|
||||||
|
|
||||||
|
-import aQute.bnd.annotation.spi.ServiceConsumer;
|
||||||
|
+//import aQute.bnd.annotation.spi.ServiceConsumer;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This is a modified LogFactory that uses a simple {@link ServiceLoader} based
|
||||||
|
@@ -63,7 +63,7 @@ import aQute.bnd.annotation.spi.ServiceConsumer;
|
||||||
|
* @author Costin Manolache
|
||||||
|
* @author Richard A. Sitze
|
||||||
|
*/
|
||||||
|
-@ServiceConsumer(value=org.apache.juli.logging.Log.class)
|
||||||
|
+//@ServiceConsumer(value=org.apache.juli.logging.Log.class)
|
||||||
|
public class LogFactory {
|
||||||
|
|
||||||
|
private static final LogFactory singleton = new LogFactory();
|
||||||
|
diff --git a/java/org/apache/tomcat/websocket/WsContainerProvider.java b/java/org/apache/tomcat/websocket/WsContainerProvider.java
|
||||||
|
index 3cb8873..7bc50f6 100644
|
||||||
|
--- a/java/org/apache/tomcat/websocket/WsContainerProvider.java
|
||||||
|
+++ b/java/org/apache/tomcat/websocket/WsContainerProvider.java
|
||||||
|
@@ -19,7 +19,7 @@ package org.apache.tomcat.websocket;
|
||||||
|
import javax.websocket.ContainerProvider;
|
||||||
|
import javax.websocket.WebSocketContainer;
|
||||||
|
|
||||||
|
-@aQute.bnd.annotation.spi.ServiceProvider(value=ContainerProvider.class)
|
||||||
|
+//@aQute.bnd.annotation.spi.ServiceProvider(value=ContainerProvider.class)
|
||||||
|
public class WsContainerProvider extends ContainerProvider {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
diff --git a/java/org/apache/tomcat/websocket/server/DefaultServerEndpointConfigurator.java b/java/org/apache/tomcat/websocket/server/DefaultServerEndpointConfigurator.java
|
||||||
|
index 5c385ed..2e4e82e 100644
|
||||||
|
--- a/java/org/apache/tomcat/websocket/server/DefaultServerEndpointConfigurator.java
|
||||||
|
+++ b/java/org/apache/tomcat/websocket/server/DefaultServerEndpointConfigurator.java
|
||||||
|
@@ -26,7 +26,7 @@ import javax.websocket.HandshakeResponse;
|
||||||
|
import javax.websocket.server.HandshakeRequest;
|
||||||
|
import javax.websocket.server.ServerEndpointConfig;
|
||||||
|
|
||||||
|
-@aQute.bnd.annotation.spi.ServiceProvider(value=ServerEndpointConfig.Configurator.class)
|
||||||
|
+//@aQute.bnd.annotation.spi.ServiceProvider(value=ServerEndpointConfig.Configurator.class)
|
||||||
|
public class DefaultServerEndpointConfigurator
|
||||||
|
extends ServerEndpointConfig.Configurator {
|
||||||
|
|
||||||
@ -1,6 +1,7 @@
|
|||||||
--- build.xml.orig
|
diff -up ./build.xml.orig ./build.xml
|
||||||
+++ build.xml
|
--- build.xml.orig 2021-07-07 10:53:55.493742841 +0800
|
||||||
@@ -1124,7 +1124,7 @@
|
+++ build.xml 2021-07-07 11:09:43.107968515 +0800
|
||||||
|
@@ -1020,7 +1020,7 @@
|
||||||
filesDir="${tomcat.classes}"
|
filesDir="${tomcat.classes}"
|
||||||
filesId="files.annotations-api"
|
filesId="files.annotations-api"
|
||||||
manifest="${tomcat.manifests}/annotations-api.jar.manifest"
|
manifest="${tomcat.manifests}/annotations-api.jar.manifest"
|
||||||
@ -9,7 +10,7 @@
|
|||||||
|
|
||||||
<!-- Servlet Implementation JAR File -->
|
<!-- Servlet Implementation JAR File -->
|
||||||
<jarIt jarfile="${servlet-api.jar}"
|
<jarIt jarfile="${servlet-api.jar}"
|
||||||
@@ -1133,48 +1133,48 @@
|
@@ -1029,41 +1029,41 @@
|
||||||
manifest="${tomcat.manifests}/servlet-api.jar.manifest"
|
manifest="${tomcat.manifests}/servlet-api.jar.manifest"
|
||||||
notice="${tomcat.manifests}/servlet-api.jar.notice"
|
notice="${tomcat.manifests}/servlet-api.jar.notice"
|
||||||
license="${tomcat.manifests}/servlet-api.jar.license"
|
license="${tomcat.manifests}/servlet-api.jar.license"
|
||||||
@ -38,14 +39,6 @@
|
|||||||
filesId="files.websocket-api"
|
filesId="files.websocket-api"
|
||||||
manifest="${tomcat.manifests}/websocket-api.jar.manifest"
|
manifest="${tomcat.manifests}/websocket-api.jar.manifest"
|
||||||
- addOSGi="true" />
|
- addOSGi="true" />
|
||||||
+ addOSGi="false" />
|
|
||||||
|
|
||||||
<!-- WebSocket Client API JAR File -->
|
|
||||||
<jarIt jarfile="${websocket-client-api.jar}"
|
|
||||||
filesDir="${tomcat.classes}"
|
|
||||||
filesId="files.websocket-client-api"
|
|
||||||
manifest="${tomcat.manifests}/websocket-client-api.jar.manifest"
|
|
||||||
- addOSGi="true" />
|
|
||||||
+ addOSGi="false" />
|
+ addOSGi="false" />
|
||||||
|
|
||||||
<!-- JASPIC API JAR File -->
|
<!-- JASPIC API JAR File -->
|
||||||
@ -65,7 +58,7 @@
|
|||||||
|
|
||||||
<!-- Bootstrap JAR File -->
|
<!-- Bootstrap JAR File -->
|
||||||
<jarIt jarfile="${bootstrap.jar}"
|
<jarIt jarfile="${bootstrap.jar}"
|
||||||
@@ -1186,68 +1186,68 @@
|
@@ -1075,61 +1075,61 @@
|
||||||
<jarIt jarfile="${tomcat-util.jar}"
|
<jarIt jarfile="${tomcat-util.jar}"
|
||||||
filesDir="${tomcat.classes}"
|
filesDir="${tomcat.classes}"
|
||||||
filesId="files.tomcat-util"
|
filesId="files.tomcat-util"
|
||||||
@ -97,14 +90,6 @@
|
|||||||
filesDir="${tomcat.classes}"
|
filesDir="${tomcat.classes}"
|
||||||
filesId="files.tomcat-coyote"
|
filesId="files.tomcat-coyote"
|
||||||
- addOSGi="true" />
|
- addOSGi="true" />
|
||||||
+ addOSGi="false" />
|
|
||||||
|
|
||||||
<!-- OpenSSL FFM - Coyote -->
|
|
||||||
<jarIt jarfile="${tomcat-coyote-ffm.jar}"
|
|
||||||
filesDir="${tomcat.classes}"
|
|
||||||
filesId="files.tomcat-coyote-ffm"
|
|
||||||
manifest="${tomcat.manifests}/tomcat-coyote-ffm.jar.manifest"
|
|
||||||
- addOSGi="true" />
|
|
||||||
+ addOSGi="false" />
|
+ addOSGi="false" />
|
||||||
|
|
||||||
<!-- WebSocket implementation JAR File -->
|
<!-- WebSocket implementation JAR File -->
|
||||||
@ -145,7 +130,7 @@
|
|||||||
|
|
||||||
<!-- Catalina Ant Tasks JAR File -->
|
<!-- Catalina Ant Tasks JAR File -->
|
||||||
<jarIt jarfile="${catalina-ant.jar}"
|
<jarIt jarfile="${catalina-ant.jar}"
|
||||||
@@ -1258,27 +1258,27 @@
|
@@ -1140,27 +1140,27 @@
|
||||||
<jarIt jarfile="${catalina-storeconfig.jar}"
|
<jarIt jarfile="${catalina-storeconfig.jar}"
|
||||||
filesDir="${tomcat.classes}"
|
filesDir="${tomcat.classes}"
|
||||||
filesId="files.catalina-storeconfig"
|
filesId="files.catalina-storeconfig"
|
||||||
@ -177,7 +162,7 @@
|
|||||||
|
|
||||||
<!-- i18n JARs -->
|
<!-- i18n JARs -->
|
||||||
<jar jarfile="${tomcat.build}/lib/tomcat-i18n-cs.jar"
|
<jar jarfile="${tomcat.build}/lib/tomcat-i18n-cs.jar"
|
||||||
@@ -1742,7 +1742,7 @@
|
@@ -1620,7 +1620,7 @@
|
||||||
filesId="files.tomcat-embed-core"
|
filesId="files.tomcat-embed-core"
|
||||||
notice="${tomcat.manifests}/servlet-api.jar.notice"
|
notice="${tomcat.manifests}/servlet-api.jar.notice"
|
||||||
license="${tomcat.manifests}/servlet-api.jar.license"
|
license="${tomcat.manifests}/servlet-api.jar.license"
|
||||||
@ -186,7 +171,7 @@
|
|||||||
addGraal="true"
|
addGraal="true"
|
||||||
graalPrefix="org.apache.tomcat.embed/tomcat-embed-core"
|
graalPrefix="org.apache.tomcat.embed/tomcat-embed-core"
|
||||||
graalFiles="res/graal/tomcat-embed-core/native-image"
|
graalFiles="res/graal/tomcat-embed-core/native-image"
|
||||||
@@ -1750,7 +1750,7 @@
|
@@ -1628,7 +1628,7 @@
|
||||||
<jarIt jarfile="${tomcat-embed-el.jar}"
|
<jarIt jarfile="${tomcat-embed-el.jar}"
|
||||||
filesDir="${tomcat.classes}"
|
filesDir="${tomcat.classes}"
|
||||||
filesId="files.tomcat-embed-el"
|
filesId="files.tomcat-embed-el"
|
||||||
@ -195,7 +180,7 @@
|
|||||||
addGraal="true"
|
addGraal="true"
|
||||||
graalPrefix="org.apache.tomcat.embed/tomcat-embed-el"
|
graalPrefix="org.apache.tomcat.embed/tomcat-embed-el"
|
||||||
graalFiles="res/graal/tomcat-embed-el/native-image"
|
graalFiles="res/graal/tomcat-embed-el/native-image"
|
||||||
@@ -1759,7 +1759,7 @@
|
@@ -1637,7 +1637,7 @@
|
||||||
filesDir="${tomcat.classes}"
|
filesDir="${tomcat.classes}"
|
||||||
filesId="files.tomcat-embed-jasper"
|
filesId="files.tomcat-embed-jasper"
|
||||||
meta-inf="${tomcat.manifests}/jasper.jar"
|
meta-inf="${tomcat.manifests}/jasper.jar"
|
||||||
@ -204,7 +189,7 @@
|
|||||||
addGraal="true"
|
addGraal="true"
|
||||||
graalPrefix="org.apache.tomcat.embed/tomcat-embed-jasper"
|
graalPrefix="org.apache.tomcat.embed/tomcat-embed-jasper"
|
||||||
graalFiles="res/graal/tomcat-embed-jasper/native-image"
|
graalFiles="res/graal/tomcat-embed-jasper/native-image"
|
||||||
@@ -1768,7 +1768,7 @@
|
@@ -1646,7 +1646,7 @@
|
||||||
filesDir="${tomcat.classes}"
|
filesDir="${tomcat.classes}"
|
||||||
filesId="files.tomcat-embed-websocket"
|
filesId="files.tomcat-embed-websocket"
|
||||||
meta-inf="${tomcat.manifests}/tomcat-websocket.jar"
|
meta-inf="${tomcat.manifests}/tomcat-websocket.jar"
|
||||||
25
SOURCES/tomcat-9.0-catalina-policy.patch
Normal file
25
SOURCES/tomcat-9.0-catalina-policy.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
--- conf/catalina.policy.orig 2022-11-04 16:17:41.227506990 +0800
|
||||||
|
+++ conf/catalina.policy 2022-11-04 16:21:51.393351415 +0800
|
||||||
|
@@ -56,6 +56,15 @@ grant codeBase "file:${java.home}/lib/ex
|
||||||
|
// permission java.security.AllPermission;
|
||||||
|
//};
|
||||||
|
|
||||||
|
+// ========== RHEL SPECIFIC CODE PERMISSIONS =======================================
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+// Allowing everything in /usr/share/java allows too many unknowns to be permitted
|
||||||
|
+// Specifying the individual jars that tomcat needs to function with the security manager
|
||||||
|
+// is the safest way forward.
|
||||||
|
+grant codeBase "file:/usr/share/java/ecj/ecj.jar" {
|
||||||
|
+ permission java.security.AllPermission;
|
||||||
|
+};
|
||||||
|
|
||||||
|
// ========== CATALINA CODE PERMISSIONS =======================================
|
||||||
|
|
||||||
|
@@ -261,4 +270,4 @@ grant codeBase "file:${catalina.home}/we
|
||||||
|
//
|
||||||
|
// The permissions granted to a specific JAR
|
||||||
|
// grant codeBase "war:file:${catalina.base}/webapps/examples.war*/WEB-INF/lib/foo.jar" {
|
||||||
|
-// };
|
||||||
|
\ No newline at end of file
|
||||||
|
+// };
|
||||||
@ -28,15 +28,24 @@ CATALINA_HOME="@@@TCHOME@@@"
|
|||||||
# System-wide tmp
|
# System-wide tmp
|
||||||
CATALINA_TMPDIR="/var/cache/tomcat/temp"
|
CATALINA_TMPDIR="/var/cache/tomcat/temp"
|
||||||
|
|
||||||
|
# You can pass some parameters to java here if you wish to
|
||||||
|
#JAVA_OPTS="-Xminf0.1 -Xmaxf0.3"
|
||||||
|
|
||||||
|
# Use JAVA_OPTS to set java.library.path for libtcnative.so
|
||||||
|
#JAVA_OPTS="-Djava.library.path=/usr/lib"
|
||||||
|
|
||||||
|
# Set default javax.sql.DataSource factory to apache commons one. See rhbz#1214381
|
||||||
|
JAVA_OPTS="-Djavax.sql.DataSource.Factory=org.apache.commons.dbcp.BasicDataSourceFactory"
|
||||||
|
|
||||||
# You can change your tomcat locale here
|
# You can change your tomcat locale here
|
||||||
#LANG="en_US"
|
#LANG="en_US"
|
||||||
|
|
||||||
# Run tomcat under the Java Security Manager
|
# Run tomcat under the Java Security Manager
|
||||||
SECURITY_MANAGER="false"
|
SECURITY_MANAGER="false"
|
||||||
|
|
||||||
|
# SHUTDOWN_WAIT has been deprecated. To change the shutdown wait time, set
|
||||||
|
# TimeoutStopSec in tomcat.service.
|
||||||
|
|
||||||
# If you wish to further customize your tomcat environment,
|
# If you wish to further customize your tomcat environment,
|
||||||
# put your own definitions here
|
# put your own definitions here
|
||||||
# (i.e. LD_LIBRARY_PATH for some jdbc drivers)
|
# (i.e. LD_LIBRARY_PATH for some jdbc drivers)
|
||||||
|
|
||||||
# You can also pass parameters to Java here by defining JAVA_OPTS variable
|
|
||||||
# (e.g. JAVA_OPTS="-Xminf0.1 -Xmaxf0.3")
|
|
||||||
12
SOURCES/tomcat-build.patch
Normal file
12
SOURCES/tomcat-build.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -up ./res/bnd/build-defaults.bnd.orig ./res/bnd/build-defaults.bnd
|
||||||
|
--- ./res/bnd/build-defaults.bnd.orig 2020-07-13 13:47:01.229077747 -0400
|
||||||
|
+++ ./res/bnd/build-defaults.bnd 2020-07-13 13:47:12.923095618 -0400
|
||||||
|
@@ -13,7 +13,7 @@
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
-Bundle-Version: ${version_cleanup;${version}}
|
||||||
|
+Bundle-Version: ${version}
|
||||||
|
|
||||||
|
Specification-Title: Apache Tomcat
|
||||||
|
Specification-Version: ${version.major.minor}
|
||||||
42
SOURCES/tomcat-functions
Normal file
42
SOURCES/tomcat-functions
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -r /usr/share/java-utils/java-functions ]; then
|
||||||
|
. /usr/share/java-utils/java-functions
|
||||||
|
else
|
||||||
|
echo "Can't read Java functions library, aborting"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
_save_function() {
|
||||||
|
local ORIG_FUNC=$(declare -f $1)
|
||||||
|
local NEWNAME_FUNC="$2${ORIG_FUNC#$1}"
|
||||||
|
eval "$NEWNAME_FUNC"
|
||||||
|
}
|
||||||
|
|
||||||
|
run_jsvc(){
|
||||||
|
if [ -x /usr/bin/jsvc ]; then
|
||||||
|
TOMCAT_USER="${TOMCAT_USER:-tomcat}"
|
||||||
|
JSVC="/usr/bin/jsvc"
|
||||||
|
|
||||||
|
JSVC_OPTS="-nodetach -pidfile /var/run/jsvc-tomcat${NAME}.pid -user ${TOMCAT_USER} -outfile ${CATALINA_BASE}/logs/catalina.out -errfile ${CATALINA_BASE}/logs/catalina.out"
|
||||||
|
if [ "$1" = "stop" ]; then
|
||||||
|
JSVC_OPTS="${JSVC_OPTS} -stop"
|
||||||
|
fi
|
||||||
|
|
||||||
|
exec "${JSVC}" ${JSVC_OPTS} ${FLAGS} -classpath "${CLASSPATH}" ${OPTIONS} "${MAIN_CLASS}" "${@}"
|
||||||
|
else
|
||||||
|
echo "Can't find /usr/bin/jsvc executable"
|
||||||
|
fi
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
_save_function run run_java
|
||||||
|
|
||||||
|
run() {
|
||||||
|
if [ "${USE_JSVC}" = "true" ] ; then
|
||||||
|
run_jsvc $@
|
||||||
|
else
|
||||||
|
run_java $@
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
@ -10,8 +10,7 @@ OPTIONS="-Dcatalina.base=$CATALINA_BASE \
|
|||||||
-Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS \
|
-Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS \
|
||||||
-Djava.io.tmpdir=$CATALINA_TMPDIR \
|
-Djava.io.tmpdir=$CATALINA_TMPDIR \
|
||||||
-Djava.util.logging.config.file=${LOGGING_PROPERTIES} \
|
-Djava.util.logging.config.file=${LOGGING_PROPERTIES} \
|
||||||
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager \
|
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager"
|
||||||
-Dsun.io.useCanonCaches=false"
|
|
||||||
|
|
||||||
if [ "$1" = "start" ] ; then
|
if [ "$1" = "start" ] ; then
|
||||||
FLAGS="${FLAGS} $CATALINA_OPTS"
|
FLAGS="${FLAGS} $CATALINA_OPTS"
|
||||||
@ -28,20 +28,21 @@
|
|||||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
#
|
#
|
||||||
|
|
||||||
%global jspspec 3.1
|
%global jspspec 2.3
|
||||||
%global major_version 10
|
%global major_version 9
|
||||||
%global minor_version 1
|
%global minor_version 0
|
||||||
%global micro_version 49
|
%global micro_version 62
|
||||||
%global packdname %{name}-%{major_version}.%{minor_version}.%{micro_version}.redhat-00007-src
|
%global packdname %{name}-%{major_version}.%{minor_version}.%{micro_version}.redhat-00018-src
|
||||||
%global servletspec 6.0
|
%global servletspec 4.0
|
||||||
%global elspec 5.0
|
%global elspec 3.0
|
||||||
%global tcuid 53
|
%global tcuid 53
|
||||||
|
# Recommended version is specified in java/org/apache/catalina/core/AprLifecycleListener.java
|
||||||
|
%global native_version 1.2.21
|
||||||
|
|
||||||
|
|
||||||
# FHS 3.0 compliant tree structure - http://refspecs.linuxfoundation.org/FHS_3.0/fhs/index.html
|
# FHS 2.3 compliant tree structure - http://www.pathname.com/fhs/2.3/
|
||||||
%global basedir %{_var}/lib/%{name}
|
%global basedir %{_var}/lib/%{name}
|
||||||
%global appdir %{basedir}/webapps
|
%global appdir %{basedir}/webapps
|
||||||
%global appdir_javaee %{basedir}/webapps-javaee
|
|
||||||
%global homedir %{_datadir}/%{name}
|
%global homedir %{_datadir}/%{name}
|
||||||
%global bindir %{homedir}/bin
|
%global bindir %{homedir}/bin
|
||||||
%global confdir %{_sysconfdir}/%{name}
|
%global confdir %{_sysconfdir}/%{name}
|
||||||
@ -50,62 +51,65 @@
|
|||||||
%global cachedir %{_var}/cache/%{name}
|
%global cachedir %{_var}/cache/%{name}
|
||||||
%global tempdir %{cachedir}/temp
|
%global tempdir %{cachedir}/temp
|
||||||
%global workdir %{cachedir}/work
|
%global workdir %{cachedir}/work
|
||||||
|
%global _systemddir /lib/systemd/system
|
||||||
|
|
||||||
Name: tomcat
|
Name: tomcat
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: %{major_version}.%{minor_version}.%{micro_version}
|
Version: %{major_version}.%{minor_version}.%{micro_version}
|
||||||
Release: 1%{?dist}.1.alma.1
|
Release: 29%{?dist}
|
||||||
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
|
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
|
||||||
|
|
||||||
License: Apache-2.0
|
License: ASL 2.0
|
||||||
URL: http://tomcat.apache.org/
|
URL: http://tomcat.apache.org/
|
||||||
Source0: %{packdname}.zip
|
Source0: %{packdname}.zip
|
||||||
Source1: %{name}-%{major_version}.%{minor_version}.conf
|
Source1: %{name}-%{major_version}.%{minor_version}.conf
|
||||||
Source2: %{name}-%{major_version}.%{minor_version}.sysconfig
|
Source3: %{name}-%{major_version}.%{minor_version}.sysconfig
|
||||||
Source3: %{name}-%{major_version}.%{minor_version}.wrapper
|
Source4: %{name}-%{major_version}.%{minor_version}.wrapper
|
||||||
Source4: %{name}-%{major_version}.%{minor_version}.logrotate
|
Source5: %{name}-%{major_version}.%{minor_version}.logrotate
|
||||||
Source5: %{name}-%{major_version}.%{minor_version}-digest.script
|
Source6: %{name}-%{major_version}.%{minor_version}-digest.script
|
||||||
Source6: %{name}-%{major_version}.%{minor_version}-tool-wrapper.script
|
Source7: %{name}-%{major_version}.%{minor_version}-tool-wrapper.script
|
||||||
Source7: %{name}-%{major_version}.%{minor_version}.service
|
Source11: %{name}-%{major_version}.%{minor_version}.service
|
||||||
Source8: %{name}-functions
|
Source21: tomcat-functions
|
||||||
Source9: %{name}-preamble
|
Source30: tomcat-preamble
|
||||||
Source10: %{name}-server
|
Source31: tomcat-server
|
||||||
Source11: %{name}-named.service
|
Source32: tomcat-named.service
|
||||||
Source12: module-start-up-parameters.conf
|
Source33: java-9-start-up-parameters.conf
|
||||||
|
|
||||||
Patch0: %{name}-%{major_version}.%{minor_version}-bootstrap-MANIFEST.MF.patch
|
Patch0: %{name}-%{major_version}.%{minor_version}-bootstrap-MANIFEST.MF.patch
|
||||||
Patch1: %{name}-%{major_version}.%{minor_version}-tomcat-users-webapp.patch
|
Patch1: %{name}-%{major_version}.%{minor_version}-tomcat-users-webapp.patch
|
||||||
|
Patch2: %{name}-build.patch
|
||||||
Patch3: %{name}-%{major_version}.%{minor_version}-catalina-policy.patch
|
Patch3: %{name}-%{major_version}.%{minor_version}-catalina-policy.patch
|
||||||
Patch4: %{name}-%{major_version}.%{minor_version}-bnd-annotation.patch
|
Patch4: rhbz-1857043.patch
|
||||||
Patch5: %{name}-%{major_version}.%{minor_version}-JDTCompiler.patch
|
# remove bnd dependency which version is too low on rhel8
|
||||||
Patch6: rhbz-1857043.patch
|
Patch6: remove-bnd-annotation.patch
|
||||||
# Patch 7 can be dropped when ECJ is updated to a newer version
|
Patch7: JmxRemoteLifecycleListener.patch
|
||||||
Patch7: build-with-java-25.patch
|
Patch8: fix-malformed-dtd.patch
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
ExcludeArch: i686
|
BuildRequires: ant
|
||||||
|
BuildRequires: ecj
|
||||||
BuildRequires: ant >= 1.10.2
|
|
||||||
BuildRequires: ecj >= 4.20
|
|
||||||
BuildRequires: findutils
|
BuildRequires: findutils
|
||||||
BuildRequires: javapackages-local
|
BuildRequires: javapackages-local
|
||||||
BuildRequires: aqute-bnd
|
BuildRequires: aqute-bnd
|
||||||
BuildRequires: aqute-bndlib
|
BuildRequires: aqute-bndlib
|
||||||
BuildRequires: systemd
|
BuildRequires: systemd
|
||||||
BuildRequires: tomcat-jakartaee-migration
|
|
||||||
BuildRequires: java-25-devel
|
|
||||||
|
|
||||||
Requires: (java-headless or java-25-headless)
|
Requires: (java-headless >= 1:1.8 or java-1.8.0-headless or java-11-headless or java-17-headless or java >= 1:1.8)
|
||||||
Requires: javapackages-tools
|
Requires: javapackages-tools
|
||||||
Requires: %{name}-lib = %{epoch}:%{version}-%{release}
|
Requires: %{name}-lib = %{epoch}:%{version}-%{release}
|
||||||
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
||||||
|
Recommends: tomcat-native >= %{native_version}
|
||||||
|
%endif
|
||||||
Requires(pre): shadow-utils
|
Requires(pre): shadow-utils
|
||||||
Requires(post): systemd
|
Requires(post): systemd
|
||||||
Requires(preun): systemd
|
Requires(preun): systemd
|
||||||
Requires(postun): systemd
|
Requires(postun): systemd
|
||||||
|
|
||||||
Conflicts: tomcat9
|
Conflicts: pki-servlet-engine <= 1:9.0.50
|
||||||
|
|
||||||
|
# added after log4j sub-package was removed
|
||||||
|
Provides: %{name}-log4j = %{epoch}:%{version}-%{release}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Tomcat is the servlet container that is used in the official Reference
|
Tomcat is the servlet container that is used in the official Reference
|
||||||
@ -120,8 +124,6 @@ to be a collaboration of the best-of-breed developers from around the world.
|
|||||||
%package admin-webapps
|
%package admin-webapps
|
||||||
Summary: The host-manager and manager web applications for Apache Tomcat
|
Summary: The host-manager and manager web applications for Apache Tomcat
|
||||||
Requires: %{name} = %{epoch}:%{version}-%{release}
|
Requires: %{name} = %{epoch}:%{version}-%{release}
|
||||||
Conflicts: tomcat9
|
|
||||||
Conflicts: tomcat9-admin-webapps
|
|
||||||
|
|
||||||
%description admin-webapps
|
%description admin-webapps
|
||||||
The host-manager and manager web applications for Apache Tomcat.
|
The host-manager and manager web applications for Apache Tomcat.
|
||||||
@ -129,8 +131,6 @@ The host-manager and manager web applications for Apache Tomcat.
|
|||||||
%package docs-webapp
|
%package docs-webapp
|
||||||
Summary: The docs web application for Apache Tomcat
|
Summary: The docs web application for Apache Tomcat
|
||||||
Requires: %{name} = %{epoch}:%{version}-%{release}
|
Requires: %{name} = %{epoch}:%{version}-%{release}
|
||||||
Conflicts: tomcat9
|
|
||||||
Conflicts: tomcat9-docs-webapp
|
|
||||||
|
|
||||||
%description docs-webapp
|
%description docs-webapp
|
||||||
The docs web application for Apache Tomcat.
|
The docs web application for Apache Tomcat.
|
||||||
@ -138,12 +138,10 @@ The docs web application for Apache Tomcat.
|
|||||||
%package jsp-%{jspspec}-api
|
%package jsp-%{jspspec}-api
|
||||||
Summary: Apache Tomcat JavaServer Pages v%{jspspec} API Implementation Classes
|
Summary: Apache Tomcat JavaServer Pages v%{jspspec} API Implementation Classes
|
||||||
Provides: jsp = %{jspspec}
|
Provides: jsp = %{jspspec}
|
||||||
Obsoletes: %{name}-jsp-api < %{jspspec}
|
Obsoletes: %{name}-jsp-2.2-api
|
||||||
Obsoletes: %{name}-jsp-2.3-api < %{version}
|
|
||||||
Requires: %{name}-servlet-%{servletspec}-api = %{epoch}:%{version}-%{release}
|
Requires: %{name}-servlet-%{servletspec}-api = %{epoch}:%{version}-%{release}
|
||||||
Requires: %{name}-el-%{elspec}-api = %{epoch}:%{version}-%{release}
|
Requires: %{name}-el-%{elspec}-api = %{epoch}:%{version}-%{release}
|
||||||
Conflicts: tomcat9
|
Conflicts: pki-servlet-engine <= 1:9.0.50
|
||||||
Conflicts: tomcat9-jsp-2.3-api
|
|
||||||
|
|
||||||
%description jsp-%{jspspec}-api
|
%description jsp-%{jspspec}-api
|
||||||
Apache Tomcat JSP API Implementation Classes.
|
Apache Tomcat JSP API Implementation Classes.
|
||||||
@ -153,14 +151,9 @@ Summary: Libraries needed to run the Tomcat Web container
|
|||||||
Requires: %{name}-jsp-%{jspspec}-api = %{epoch}:%{version}-%{release}
|
Requires: %{name}-jsp-%{jspspec}-api = %{epoch}:%{version}-%{release}
|
||||||
Requires: %{name}-servlet-%{servletspec}-api = %{epoch}:%{version}-%{release}
|
Requires: %{name}-servlet-%{servletspec}-api = %{epoch}:%{version}-%{release}
|
||||||
Requires: %{name}-el-%{elspec}-api = %{epoch}:%{version}-%{release}
|
Requires: %{name}-el-%{elspec}-api = %{epoch}:%{version}-%{release}
|
||||||
Requires: ecj >= 4.20
|
Requires: ecj >= 1:4.10
|
||||||
Recommends: tomcat-jakartaee-migration
|
|
||||||
Requires(preun): coreutils
|
Requires(preun): coreutils
|
||||||
Conflicts: tomcat9
|
Conflicts: pki-servlet-engine <= 1:9.0.50
|
||||||
Conflicts: tomcat9-lib
|
|
||||||
Conflicts: tomcat9-jsp-2.3-api
|
|
||||||
Conflicts: tomcat9-servlet-4.0-api
|
|
||||||
Conflicts: tomcat9-el-3.0-api
|
|
||||||
|
|
||||||
%description lib
|
%description lib
|
||||||
Libraries needed to run the Tomcat Web container.
|
Libraries needed to run the Tomcat Web container.
|
||||||
@ -168,10 +161,10 @@ Libraries needed to run the Tomcat Web container.
|
|||||||
%package servlet-%{servletspec}-api
|
%package servlet-%{servletspec}-api
|
||||||
Summary: Apache Tomcat Java Servlet v%{servletspec} API Implementation Classes
|
Summary: Apache Tomcat Java Servlet v%{servletspec} API Implementation Classes
|
||||||
Provides: servlet = %{servletspec}
|
Provides: servlet = %{servletspec}
|
||||||
Obsoletes: %{name}-servlet-api < %{servletspec}
|
Provides: servlet6
|
||||||
Obsoletes: %{name}-servlet-4.0-api < %{version}
|
Provides: servlet3
|
||||||
Conflicts: tomcat9
|
Obsoletes: %{name}-servlet-3.1-api
|
||||||
Conflicts: tomcat9-servlet-4.0-api
|
Conflicts: pki-servlet-4.0-api <= 1:9.0.50
|
||||||
|
|
||||||
%description servlet-%{servletspec}-api
|
%description servlet-%{servletspec}-api
|
||||||
Apache Tomcat Servlet API Implementation Classes.
|
Apache Tomcat Servlet API Implementation Classes.
|
||||||
@ -179,10 +172,8 @@ Apache Tomcat Servlet API Implementation Classes.
|
|||||||
%package el-%{elspec}-api
|
%package el-%{elspec}-api
|
||||||
Summary: Apache Tomcat Expression Language v%{elspec} API Implementation Classes
|
Summary: Apache Tomcat Expression Language v%{elspec} API Implementation Classes
|
||||||
Provides: el_api = %{elspec}
|
Provides: el_api = %{elspec}
|
||||||
Obsoletes: %{name}-el-api < %{elspec}
|
Obsoletes: %{name}-el-2.2-api
|
||||||
Obsoletes: %{name}-el-3.0-api < %{version}
|
Conflicts: pki-servlet-engine <= 1:9.0.50 and pki-servlet-container <= 1:9.0.7
|
||||||
Conflicts: tomcat9
|
|
||||||
Conflicts: tomcat9-el-3.0-api
|
|
||||||
|
|
||||||
%description el-%{elspec}-api
|
%description el-%{elspec}-api
|
||||||
Apache Tomcat EL API Implementation Classes.
|
Apache Tomcat EL API Implementation Classes.
|
||||||
@ -190,8 +181,6 @@ Apache Tomcat EL API Implementation Classes.
|
|||||||
%package webapps
|
%package webapps
|
||||||
Summary: The ROOT web application for Apache Tomcat
|
Summary: The ROOT web application for Apache Tomcat
|
||||||
Requires: %{name} = %{epoch}:%{version}-%{release}
|
Requires: %{name} = %{epoch}:%{version}-%{release}
|
||||||
Conflicts: tomcat9
|
|
||||||
Conflicts: tomcat9-webapps
|
|
||||||
|
|
||||||
%description webapps
|
%description webapps
|
||||||
The ROOT web application for Apache Tomcat.
|
The ROOT web application for Apache Tomcat.
|
||||||
@ -202,36 +191,35 @@ The ROOT web application for Apache Tomcat.
|
|||||||
find . -type f \( -name "*.bat" -o -name "*.class" -o -name Thumbs.db -o -name "*.gz" -o \
|
find . -type f \( -name "*.bat" -o -name "*.class" -o -name Thumbs.db -o -name "*.gz" -o \
|
||||||
-name "*.jar" -o -name "*.war" -o -name "*.zip" \) -delete
|
-name "*.jar" -o -name "*.war" -o -name "*.zip" \) -delete
|
||||||
|
|
||||||
%patch 0 -p0
|
%patch -P0 -p0
|
||||||
%patch 1 -p0
|
%patch -P1 -p0
|
||||||
%patch 3 -p0
|
%patch -P2 -p0
|
||||||
%patch 4 -p0
|
%patch -P3 -p0
|
||||||
%patch 5 -p0
|
%patch -P4 -p0
|
||||||
%patch 6 -p0
|
%patch -P6 -p1
|
||||||
%patch 7 -p0
|
%patch -P7 -p1
|
||||||
|
%patch -P8 -p1
|
||||||
|
|
||||||
# Remove webservices naming resources as it's generally unused
|
# Remove webservices naming resources as it's generally unused
|
||||||
%{__rm} -rf java/org/apache/naming/factory/webservices
|
%{__rm} -rf java/org/apache/naming/factory/webservices
|
||||||
|
|
||||||
# Configure maven files
|
# Configure maven files
|
||||||
%mvn_package ":tomcat-el-api" tomcat-el-api
|
%mvn_package ":tomcat-el-api" tomcat-el-api
|
||||||
%mvn_alias "org.apache.tomcat:tomcat-el-api" "jakarta.servlet:jakarta.servlet-api"
|
%mvn_alias "org.apache.tomcat:tomcat-el-api" "org.eclipse.jetty.orbit:javax.el"
|
||||||
%mvn_package ":tomcat-jsp-api" tomcat-jsp-api
|
%mvn_package ":tomcat-jsp-api" tomcat-jsp-api
|
||||||
%mvn_alias "org.apache.tomcat:tomcat-jsp-api" "jakarta.servlet:jakarta.servlet.jsp"
|
%mvn_alias "org.apache.tomcat:tomcat-jsp-api" "org.eclipse.jetty.orbit:javax.servlet.jsp"
|
||||||
%mvn_package ":tomcat-servlet-api" tomcat-servlet-api
|
%mvn_package ":tomcat-servlet-api" tomcat-servlet-api
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# we don't care about the tarballs and we're going to replace jars
|
export OPT_JAR_LIST="xalan-j2-serializer"
|
||||||
|
# we don't care about the tarballs and we're going to replace
|
||||||
|
# tomcat-dbcp.jar with apache-commons-{collections,dbcp,pool}-tomcat5.jar
|
||||||
# so just create a dummy file for later removal
|
# so just create a dummy file for later removal
|
||||||
touch HACK
|
touch HACK
|
||||||
|
|
||||||
# Adding JAVA_HOME to always compile with java-25 instead of autodetecting
|
|
||||||
export JAVA_HOME=%{_jvmdir}/java-25-openjdk
|
|
||||||
export PATH=$JAVA_HOME/bin:$PATH
|
|
||||||
|
|
||||||
# who needs a build.properties file anyway
|
# who needs a build.properties file anyway
|
||||||
ant -Dbase.path="." \
|
%{ant} -Dbase.path="." \
|
||||||
-Dbuild.compiler="modern" \
|
-Dbuild.compiler="modern" \
|
||||||
-Dcommons-daemon.jar="HACK" \
|
-Dcommons-daemon.jar="HACK" \
|
||||||
-Dcommons-daemon.native.src.tgz="HACK" \
|
-Dcommons-daemon.native.src.tgz="HACK" \
|
||||||
@ -242,17 +230,15 @@ ant -Dbase.path="." \
|
|||||||
-Dnsis.exe="HACK" \
|
-Dnsis.exe="HACK" \
|
||||||
-Djaxrpc-lib.jar="HACK" \
|
-Djaxrpc-lib.jar="HACK" \
|
||||||
-Dwsdl4j-lib.jar="HACK" \
|
-Dwsdl4j-lib.jar="HACK" \
|
||||||
-Dbnd.jar="$(build-classpath aqute-bnd/biz.aQute.bnd)" \
|
-Dbnd.jar="HACK" \
|
||||||
-Dbnd-annotation.jar="$(build-classpath aqute-bnd/biz.aQute.bnd.annotation)" \
|
|
||||||
-Dversion="%{version}" \
|
-Dversion="%{version}" \
|
||||||
-Dversion.build="%{micro_version}" \
|
-Dversion.build="%{micro_version}" \
|
||||||
-Dmigration-lib.jar="$(build-classpath tomcat-jakartaee-migration/jakartaee-migration.jar)" \
|
|
||||||
deploy
|
deploy
|
||||||
|
|
||||||
# remove some jars that we'll replace with symlinks later
|
# remove some jars that we'll replace with symlinks later
|
||||||
%{__rm} output/build/bin/commons-daemon.jar output/build/lib/ecj.jar output/build/lib/jakartaee-migration.jar
|
%{__rm} output/build/lib/ecj.jar
|
||||||
# Remove the example webapps per Apache Tomcat Security Considerations
|
# Remove the example webapps per Apache Tomcat Security Considerations
|
||||||
# see https://tomcat.apache.org/tomcat-10.1-doc/security-howto.html
|
# see https://tomcat.apache.org/tomcat-9.0-doc/security-howto.html
|
||||||
%{__rm} -rf output/build/webapps/examples
|
%{__rm} -rf output/build/webapps/examples
|
||||||
|
|
||||||
|
|
||||||
@ -260,10 +246,10 @@ ant -Dbase.path="." \
|
|||||||
# build initial path structure
|
# build initial path structure
|
||||||
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_bindir}
|
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_bindir}
|
||||||
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_sbindir}
|
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_sbindir}
|
||||||
|
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_systemddir}
|
||||||
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d
|
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d
|
||||||
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig
|
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig
|
||||||
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{appdir}
|
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{appdir}
|
||||||
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{appdir_javaee}
|
|
||||||
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{bindir}
|
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{bindir}
|
||||||
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{confdir}
|
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{confdir}
|
||||||
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{confdir}/Catalina/localhost
|
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{confdir}/Catalina/localhost
|
||||||
@ -293,33 +279,33 @@ popd
|
|||||||
> ${RPM_BUILD_ROOT}%{confdir}/%{name}.conf
|
> ${RPM_BUILD_ROOT}%{confdir}/%{name}.conf
|
||||||
%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
|
%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
|
||||||
-e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
|
-e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
|
||||||
-e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE2} \
|
-e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE3} \
|
||||||
> ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/%{name}
|
> ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/%{name}
|
||||||
%{__install} -m 0755 %{SOURCE3} \
|
%{__install} -m 0644 %{SOURCE4} \
|
||||||
${RPM_BUILD_ROOT}%{_sbindir}/%{name}
|
${RPM_BUILD_ROOT}%{_sbindir}/%{name}
|
||||||
%{__install} -m 0644 %{SOURCE7} \
|
%{__install} -m 0644 %{SOURCE11} \
|
||||||
${RPM_BUILD_ROOT}%{_unitdir}/%{name}.service
|
${RPM_BUILD_ROOT}%{_unitdir}/%{name}.service
|
||||||
%{__sed} -e "s|\@\@\@TCLOG\@\@\@|%{logdir}|g" %{SOURCE4} \
|
%{__sed} -e "s|\@\@\@TCLOG\@\@\@|%{logdir}|g" %{SOURCE5} \
|
||||||
> ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/%{name}.disabled
|
> ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/%{name}.disabled
|
||||||
%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
|
%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
|
||||||
-e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
|
-e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
|
||||||
-e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE5} \
|
-e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE6} \
|
||||||
> ${RPM_BUILD_ROOT}%{_bindir}/%{name}-digest
|
> ${RPM_BUILD_ROOT}%{_bindir}/%{name}-digest
|
||||||
%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
|
%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
|
||||||
-e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
|
-e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
|
||||||
-e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE6} \
|
-e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE7} \
|
||||||
> ${RPM_BUILD_ROOT}%{_bindir}/%{name}-tool-wrapper
|
> ${RPM_BUILD_ROOT}%{_bindir}/%{name}-tool-wrapper
|
||||||
|
|
||||||
%{__install} -m 0644 %{SOURCE8} \
|
%{__install} -m 0644 %{SOURCE21} \
|
||||||
${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/functions
|
${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/functions
|
||||||
%{__install} -m 0755 %{SOURCE9} \
|
%{__install} -m 0755 %{SOURCE30} \
|
||||||
${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/preamble
|
${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/preamble
|
||||||
%{__install} -m 0755 %{SOURCE10} \
|
%{__install} -m 0755 %{SOURCE31} \
|
||||||
${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/server
|
${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/server
|
||||||
%{__install} -m 0644 %{SOURCE11} \
|
%{__install} -m 0644 %{SOURCE32} \
|
||||||
${RPM_BUILD_ROOT}%{_unitdir}/%{name}@.service
|
${RPM_BUILD_ROOT}%{_unitdir}/%{name}@.service
|
||||||
|
|
||||||
%{__install} -m 0644 %{SOURCE12} ${RPM_BUILD_ROOT}%{confdir}/conf.d/
|
%{__install} -m 0644 %{SOURCE33} ${RPM_BUILD_ROOT}%{confdir}/conf.d/
|
||||||
|
|
||||||
# Substitute libnames in catalina-tasks.xml
|
# Substitute libnames in catalina-tasks.xml
|
||||||
sed -i \
|
sed -i \
|
||||||
@ -340,7 +326,6 @@ popd
|
|||||||
|
|
||||||
pushd output/build
|
pushd output/build
|
||||||
%{_bindir}/build-jar-repository lib ecj 2>&1
|
%{_bindir}/build-jar-repository lib ecj 2>&1
|
||||||
%{_bindir}/build-jar-repository lib tomcat-jakartaee-migration 2>&1
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
pushd ${RPM_BUILD_ROOT}%{libdir}
|
pushd ${RPM_BUILD_ROOT}%{libdir}
|
||||||
@ -349,19 +334,12 @@ pushd ${RPM_BUILD_ROOT}%{libdir}
|
|||||||
%{__ln_s} ../../java/%{name}-servlet-%{servletspec}-api.jar .
|
%{__ln_s} ../../java/%{name}-servlet-%{servletspec}-api.jar .
|
||||||
%{__ln_s} ../../java/%{name}-el-%{elspec}-api.jar .
|
%{__ln_s} ../../java/%{name}-el-%{elspec}-api.jar .
|
||||||
%{__ln_s} $(build-classpath ecj/ecj) jasper-jdt.jar
|
%{__ln_s} $(build-classpath ecj/ecj) jasper-jdt.jar
|
||||||
%{__ln_s} $(build-classpath tomcat-jakartaee-migration/jakartaee-migration) jakartaee-migration.jar
|
%{__cp} -a ../../%{name}/bin/tomcat-juli.jar .
|
||||||
%{__ln_s} $(build-classpath apache-commons-compress/commons-compress) commons-compress.jar
|
|
||||||
%{__ln_s} $(build-classpath apache-commons-io/commons-io) commons-io.jar
|
|
||||||
%{__ln_s} $(build-classpath apache-commons-lang3/commons-lang3) commons-lang3.jar
|
|
||||||
%{__ln_s} $(build-classpath bcel/bcel) bcel.jar
|
|
||||||
|
|
||||||
cp ../../%{name}/bin/tomcat-juli.jar .
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# symlink to the FHS locations where we've installed things
|
# symlink to the FHS locations where we've installed things
|
||||||
pushd ${RPM_BUILD_ROOT}%{homedir}
|
pushd ${RPM_BUILD_ROOT}%{homedir}
|
||||||
%{__ln_s} %{appdir} webapps
|
%{__ln_s} %{appdir} webapps
|
||||||
%{__ln_s} %{appdir_javaee} webapps-javaee
|
|
||||||
%{__ln_s} %{confdir} conf
|
%{__ln_s} %{confdir} conf
|
||||||
%{__ln_s} %{libdir} lib
|
%{__ln_s} %{libdir} lib
|
||||||
%{__ln_s} %{logdir} logs
|
%{__ln_s} %{logdir} logs
|
||||||
@ -393,7 +371,6 @@ popd
|
|||||||
%mvn_file org.apache.tomcat:tomcat-catalina tomcat/catalina
|
%mvn_file org.apache.tomcat:tomcat-catalina tomcat/catalina
|
||||||
%mvn_artifact res/maven/tomcat-catalina.pom ${RPM_BUILD_ROOT}%{libdir}/catalina.jar
|
%mvn_artifact res/maven/tomcat-catalina.pom ${RPM_BUILD_ROOT}%{libdir}/catalina.jar
|
||||||
%mvn_artifact res/maven/tomcat-coyote.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-coyote.jar
|
%mvn_artifact res/maven/tomcat-coyote.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-coyote.jar
|
||||||
%mvn_artifact res/maven/tomcat-coyote-ffm.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-coyote-ffm.jar
|
|
||||||
%mvn_artifact res/maven/tomcat-dbcp.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-dbcp.jar
|
%mvn_artifact res/maven/tomcat-dbcp.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-dbcp.jar
|
||||||
%mvn_artifact res/maven/tomcat-i18n-cs.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-i18n-cs.jar
|
%mvn_artifact res/maven/tomcat-i18n-cs.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-i18n-cs.jar
|
||||||
%mvn_artifact res/maven/tomcat-i18n-de.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-i18n-de.jar
|
%mvn_artifact res/maven/tomcat-i18n-de.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-i18n-de.jar
|
||||||
@ -424,7 +401,6 @@ popd
|
|||||||
%mvn_file org.apache.tomcat:tomcat-websocket-api tomcat/websocket-api
|
%mvn_file org.apache.tomcat:tomcat-websocket-api tomcat/websocket-api
|
||||||
%mvn_artifact res/maven/tomcat-websocket-api.pom ${RPM_BUILD_ROOT}%{libdir}/websocket-api.jar
|
%mvn_artifact res/maven/tomcat-websocket-api.pom ${RPM_BUILD_ROOT}%{libdir}/websocket-api.jar
|
||||||
%mvn_artifact res/maven/tomcat-websocket.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-websocket.jar
|
%mvn_artifact res/maven/tomcat-websocket.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-websocket.jar
|
||||||
%mvn_artifact res/maven/tomcat-websocket-client-api.pom ${RPM_BUILD_ROOT}%{libdir}/websocket-client-api.jar
|
|
||||||
%mvn_artifact res/maven/tomcat.pom
|
%mvn_artifact res/maven/tomcat.pom
|
||||||
|
|
||||||
%mvn_install
|
%mvn_install
|
||||||
@ -444,6 +420,18 @@ exit 0
|
|||||||
# install but don't activate
|
# install but don't activate
|
||||||
%systemd_post %{name}.service
|
%systemd_post %{name}.service
|
||||||
|
|
||||||
|
%post jsp-%{jspspec}-api
|
||||||
|
%{_sbindir}/update-alternatives --install %{_javadir}/jsp.jar jsp \
|
||||||
|
%{_javadir}/%{name}-jsp-%{jspspec}-api.jar 20200
|
||||||
|
|
||||||
|
%post servlet-%{servletspec}-api
|
||||||
|
%{_sbindir}/update-alternatives --install %{_javadir}/servlet.jar servlet \
|
||||||
|
%{_javadir}/%{name}-servlet-%{servletspec}-api.jar 30000
|
||||||
|
|
||||||
|
%post el-%{elspec}-api
|
||||||
|
%{_sbindir}/update-alternatives --install %{_javadir}/elspec.jar elspec \
|
||||||
|
%{_javadir}/%{name}-el-%{elspec}-api.jar 20300
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
# clean tempdir and workdir on removal or upgrade
|
# clean tempdir and workdir on removal or upgrade
|
||||||
%{__rm} -rf %{workdir}/* %{tempdir}/*
|
%{__rm} -rf %{workdir}/* %{tempdir}/*
|
||||||
@ -452,6 +440,24 @@ exit 0
|
|||||||
%postun
|
%postun
|
||||||
%systemd_postun_with_restart %{name}.service
|
%systemd_postun_with_restart %{name}.service
|
||||||
|
|
||||||
|
%postun jsp-%{jspspec}-api
|
||||||
|
if [ "$1" = "0" ]; then
|
||||||
|
%{_sbindir}/update-alternatives --remove jsp \
|
||||||
|
%{_javadir}/%{name}-jsp-%{jspspec}-api.jar
|
||||||
|
fi
|
||||||
|
|
||||||
|
%postun servlet-%{servletspec}-api
|
||||||
|
if [ "$1" = "0" ]; then
|
||||||
|
%{_sbindir}/update-alternatives --remove servlet \
|
||||||
|
%{_javadir}/%{name}-servlet-%{servletspec}-api.jar
|
||||||
|
fi
|
||||||
|
|
||||||
|
%postun el-%{elspec}-api
|
||||||
|
if [ "$1" = "0" ]; then
|
||||||
|
%{_sbindir}/update-alternatives --remove elspec \
|
||||||
|
%{_javadir}/%{name}-el-%{elspec}-api.jar
|
||||||
|
fi
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(0664,root,tomcat,0755)
|
%defattr(0664,root,tomcat,0755)
|
||||||
%doc {LICENSE,NOTICE,RELEASE*}
|
%doc {LICENSE,NOTICE,RELEASE*}
|
||||||
@ -480,12 +486,11 @@ exit 0
|
|||||||
|
|
||||||
%defattr(0644,root,tomcat,0775)
|
%defattr(0644,root,tomcat,0775)
|
||||||
%attr(0775,root,tomcat) %dir %{appdir}
|
%attr(0775,root,tomcat) %dir %{appdir}
|
||||||
%attr(0775,root,tomcat) %dir %{appdir_javaee}
|
|
||||||
%attr(0775,root,tomcat) %dir %{confdir}/Catalina
|
%attr(0775,root,tomcat) %dir %{confdir}/Catalina
|
||||||
%attr(0775,root,tomcat) %dir %{confdir}/Catalina/localhost
|
%attr(0775,root,tomcat) %dir %{confdir}/Catalina/localhost
|
||||||
%attr(0755,root,tomcat) %dir %{confdir}/conf.d
|
%attr(0755,root,tomcat) %dir %{confdir}/conf.d
|
||||||
%{confdir}/conf.d/README
|
%{confdir}/conf.d/README
|
||||||
%{confdir}/conf.d/module-start-up-parameters.conf
|
%{confdir}/conf.d/java-9-start-up-parameters.conf
|
||||||
%config(noreplace) %{confdir}/%{name}.conf
|
%config(noreplace) %{confdir}/%{name}.conf
|
||||||
%config(noreplace) %{confdir}/*.policy
|
%config(noreplace) %{confdir}/*.policy
|
||||||
%config(noreplace) %{confdir}/*.properties
|
%config(noreplace) %{confdir}/*.properties
|
||||||
@ -502,7 +507,6 @@ exit 0
|
|||||||
%{homedir}/lib
|
%{homedir}/lib
|
||||||
%{homedir}/temp
|
%{homedir}/temp
|
||||||
%{homedir}/webapps
|
%{homedir}/webapps
|
||||||
%{homedir}/webapps-javaee
|
|
||||||
%{homedir}/work
|
%{homedir}/work
|
||||||
%{homedir}/logs
|
%{homedir}/logs
|
||||||
%{homedir}/conf
|
%{homedir}/conf
|
||||||
@ -552,75 +556,58 @@ exit 0
|
|||||||
%defattr(0644,tomcat,tomcat,0755)
|
%defattr(0644,tomcat,tomcat,0755)
|
||||||
%{appdir}/ROOT
|
%{appdir}/ROOT
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue May 19 2026 Eduard Abdullin <eabdullin@almalinux.org> - 1:10.1.49-1.1.alma.1
|
* Thu Jan 18 2024 Hui Wang <huwang@redhat.com> - 1:9.0.62-29
|
||||||
- Exclude i686 architecture from build
|
- Resolves: RHEL-17602
|
||||||
|
|
||||||
* Wed Apr 22 2026 Pietro Meloni <pmeloni@redhat.com> - 1:10.1.36-3.el10_1.1
|
* Thu Nov 23 2023 Hui Wang <huwang@redhat.com> - 1:9.0.62-28
|
||||||
- Resolves: RHEL-150719
|
- Resolves: RHEL-13907
|
||||||
Certificate revocation bypass due to improper OCSP response validation (CVE-2026-24734)
|
- Resolves: RHEL-13904
|
||||||
|
- Resolves: RHEL-12951
|
||||||
|
- Resolves: RHEL-12544
|
||||||
|
- Resolves: RHEL-2386
|
||||||
|
|
||||||
* Mon Feb 16 2026 Coty Sutherland <csutherl@redhat.com> - 1:10.1.49-1
|
* Fri Oct 13 2023 Hui Wang <huwang@redhat.com> - 1:9.0.62-27
|
||||||
- Resolves: RHEL-150099 Rebase tomcat package to enable PQC features
|
- Related: RHEL-12543
|
||||||
|
- Bump release number
|
||||||
|
|
||||||
* Fri Jan 23 2026 Pietro Meloni <pmeloni@redhat.com> - 1:10.1.36-4
|
* Thu Oct 12 2023 Hui Wang <huwang@redhat.com> - 1:9.0.62-16
|
||||||
- Resolves: RHEL-124493
|
- Resolves: RHEL-12543 HTTP/2: Multiple HTTP/2 enabled web servers are vulnerable to a DDoS attack (Rapid Reset Attack)
|
||||||
tomcat: Directory traversal via rewrite with possible RCE (CVE-2025-55752)
|
- Remove JDK subpackges which are unused
|
||||||
- Resolves: RHEL-132560
|
|
||||||
tomcat: Bypass of rules in Rewrite Valve (CVE-2025-31651)
|
|
||||||
- Resolves: RHEL-132526
|
|
||||||
tomcat: Denial of service (CVE-2025-61795)
|
|
||||||
|
|
||||||
* Thu Aug 14 2025 Adam Krajcik <akrajcik@redhat.com> - 1:10.1.36-3
|
* Fri Sep 08 2023 Hui Wang <huwang@redhat.com> - 1:9.0.62-14
|
||||||
- Resolves: RHEL-102184
|
- Related: RHEL-2330 Bump release number
|
||||||
tomcat: http/2 "MadeYouReset" DoS attack through HTTP/2 control frames (CVE-2025-48989)
|
|
||||||
- Resolves: RHEL-108906
|
|
||||||
tomcat: Denial of service (CVE-2025-52520)
|
|
||||||
|
|
||||||
* Wed Aug 13 2025 Adam Krajcik <akrajcik@redhat.com> - 1:10.1.36-2
|
* Thu Sep 07 2023 Hui Wang <huwang@redhat.com> - 1:9.0.62-13
|
||||||
- Resolves: RHEL-108900
|
- Resolves: RHEL-2330 Revert the fix for pki-servlet-engine
|
||||||
tomcat: Apache FileUpload DOS via part headers (CVE-2025-48976)
|
|
||||||
- Resolves: RHEL-108902
|
|
||||||
tomcat: Dos in multipart upload (CVE-2025-48988)
|
|
||||||
- Resolves: RHEL-108904
|
|
||||||
tomcat: Security constraint bypass for pre/post-resources (CVE-2025-49125)
|
|
||||||
- Resolves: RHEL-108908
|
|
||||||
tomcat: Denial of service (CVE-2025-53506)
|
|
||||||
|
|
||||||
* Mon Apr 14 2025 Adam Krajcik <akrajcik@redhat.com> - 1:10.1.36-1
|
* Fri Aug 25 2023 Coty Sutherland <csutherl@redhat.com> - 1:9.0.62-12
|
||||||
- Rebase tomcat to 10.1.36
|
- Related: #2184135 Declare file conflicts
|
||||||
- Resolves: RHEL-82925
|
|
||||||
tomcat: Potential RCE and/or information disclosure and/or information corruption with partial PUT (CVE-2025-24813)
|
|
||||||
- Resolves: RHEL-87272
|
|
||||||
tomcat: DoS in examples web application (CVE-2024-54677)
|
|
||||||
- Resolves: RHEL-87273
|
|
||||||
tomcat: Authentication bypass when using Jakarta Authentication API (CVE-2024-52316)
|
|
||||||
- Resolves: RHEL-85343 - NoClassDefFoundError when using migration tool
|
|
||||||
|
|
||||||
* Tue Feb 11 2025 Adam Krajcik <akrajcik@redhat.com> - 1:10.1.8-2
|
* Fri Aug 25 2023 Coty Sutherland <csutherl@redhat.com> - 1:9.0.62-11
|
||||||
- Resolves: RHEL-78899 Add missing Obsoletes
|
- Resolves: #2184135 Fix bug introduced in initial commit
|
||||||
|
|
||||||
* Wed Feb 05 2025 Adam Krajcik <akrajcik@redhat.com> - 1:10.1.8-1
|
* Fri Aug 18 2023 Hui Wang <huwang@redhat.com> - 1:9.0.62-10
|
||||||
- Resolves: RHEL-51222 Upgrade tomcat to 10.1.8
|
- Resolves: #2210630 CVE-2023-28709 tomcat
|
||||||
|
- Resolves: #2181448 CVE-2023-28708 tomcat: not including the secure attribute causes information disclosure
|
||||||
|
|
||||||
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1:9.0.87-3
|
* Thu Aug 17 2023 Hui Wang <huwang@redhat.com> - 1:9.0.62-9
|
||||||
- Bump release for October 2024 mass rebuild:
|
- Resolves: #2184135 Add Obsoletes to tomcat package
|
||||||
Resolves: RHEL-64018
|
|
||||||
|
|
||||||
* Mon Aug 12 2024 Adam Krajcik <akrajcik@redhat.com> - 1:9.0.87-2
|
* Thu Aug 17 2023 Hui Wang <huwang@redhat.com> - 1:9.0.62-8
|
||||||
- Resolves: RHEL-50166 - Rebase tomcat to version 9.0.87
|
- Resolves: #2189676 Missing Tomcat POM files in RHEL 8.9
|
||||||
- Resolves: RHEL-12274 - Use src.zip file as a Source0 instead of tar.gz
|
|
||||||
- Resolves: RHEL-51277 - Prune changelog to remove non-relevant history
|
|
||||||
- Resolves: RHEL-52906 - tomcat: Switch to using Java 21 as the default JDK
|
|
||||||
- Resolves: RHEL-55194 - Fix changelog version
|
|
||||||
- Resolves: RHEL-46156
|
|
||||||
tomcat: Improper Handling of Exceptional Conditions (CVE-2024-34750)
|
|
||||||
|
|
||||||
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1:9.0.83-3
|
* Tue Aug 15 2023 Hui Wang <huwang@redhat.com> - 1:9.0.62-7
|
||||||
- Bump release for June 2024 mass rebuild
|
- Related: #2173874 Tomcat installs older java even though newer java is installed
|
||||||
|
- Bump release number
|
||||||
|
|
||||||
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:9.0.83-2
|
* Fri Aug 11 2023 Hui Wang <huwang@redhat.com> - 1:9.0.62-6
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
- Resolves: #2173874 Tomcat installs older java even though newer java is installed
|
||||||
|
- Sync with rhel-8.8.0 branch
|
||||||
|
|
||||||
* Fri Dec 01 2023 Hui Wang <huwang@redhat.com> - 1:9.0.83-1
|
* Thu Feb 16 2023 Coty Sutherland <csutherl@redhat.com> - 1:9.0.62-5
|
||||||
- Update to 9.0.83
|
- Related: #2160455 Add conflicts to subpackage
|
||||||
|
|
||||||
|
* Wed Feb 15 2023 Hui Wang <huwang@redhat.com> - 1:9.0.62-4
|
||||||
|
- Resolves: #2160455 Add Tomcat 9 to RHEL8
|
||||||
@ -1,76 +0,0 @@
|
|||||||
--- build.xml.orig 2026-02-16 10:21:26.627521704 -0500
|
|
||||||
+++ build.xml 2026-02-16 10:27:47.814614938 -0500
|
|
||||||
@@ -977,7 +977,7 @@
|
|
||||||
<javac srcdir="java" destdir="${tomcat.classes}"
|
|
||||||
debug="${compile.debug}"
|
|
||||||
deprecation="${compile.deprecation}"
|
|
||||||
- release="${compile.release}"
|
|
||||||
+ source="11" target="11"
|
|
||||||
encoding="ISO-8859-1"
|
|
||||||
includeAntRuntime="true" >
|
|
||||||
<!-- Uncomment this to show unchecked warnings:
|
|
||||||
@@ -1030,7 +1030,7 @@
|
|
||||||
<javac srcdir="java" destdir="${tomcat.classes}"
|
|
||||||
debug="${compile.debug}"
|
|
||||||
deprecation="${compile.deprecation}"
|
|
||||||
- release="${compile.release}"
|
|
||||||
+ source="11" target="11"
|
|
||||||
encoding="ISO-8859-1"
|
|
||||||
includeAntRuntime="true" >
|
|
||||||
<!-- Uncomment this to show unchecked warnings:
|
|
||||||
@@ -1047,7 +1047,7 @@
|
|
||||||
<javac srcdir="java" destdir="${tomcat.classes}"
|
|
||||||
debug="${compile.debug}"
|
|
||||||
deprecation="${compile.deprecation}"
|
|
||||||
- release="${release.java.version}"
|
|
||||||
+ source="22" target="22"
|
|
||||||
encoding="ISO-8859-1"
|
|
||||||
includeAntRuntime="true"
|
|
||||||
if:set="has-ffm" >
|
|
||||||
@@ -1610,7 +1610,7 @@
|
|
||||||
<javac srcdir="webapps/examples/WEB-INF/classes"
|
|
||||||
destdir="${tomcat.build}/webapps/examples/WEB-INF/classes"
|
|
||||||
debug="${compile.debug}" deprecation="${compile.deprecation}"
|
|
||||||
- release="${compile.release}"
|
|
||||||
+ source="11" target="11"
|
|
||||||
classpath="${tomcat.classes}"
|
|
||||||
encoding="ISO-8859-1"
|
|
||||||
includeantruntime="false">
|
|
||||||
@@ -1839,7 +1839,7 @@
|
|
||||||
destdir="${xreflect.directory}/classes"
|
|
||||||
debug="${compile.debug}"
|
|
||||||
deprecation="${compile.deprecation}"
|
|
||||||
- release="${compile.release}"
|
|
||||||
+ source="11" target="11"
|
|
||||||
encoding="ISO-8859-1"
|
|
||||||
includeAntRuntime="true" >
|
|
||||||
<compilerarg value="-XDignore.symbol.file"/>
|
|
||||||
@@ -1925,7 +1925,7 @@
|
|
||||||
<javac srcdir="test" destdir="${test.classes}"
|
|
||||||
debug="${compile.debug}"
|
|
||||||
deprecation="${compile.deprecation}"
|
|
||||||
- release="${compile.release}"
|
|
||||||
+ source="11" target="11"
|
|
||||||
encoding="ISO-8859-1"
|
|
||||||
includeantruntime="true">
|
|
||||||
<classpath refid="tomcat.test.classpath" />
|
|
||||||
--- modules/jdbc-pool/build.xml.orig 2026-02-12 14:28:31.469893115 -0500
|
|
||||||
+++ modules/jdbc-pool/build.xml 2026-02-12 14:28:44.327503027 -0500
|
|
||||||
@@ -163,7 +163,7 @@
|
|
||||||
<javac srcdir="${basedir}/src/main/java" destdir="${tomcat.classes}"
|
|
||||||
debug="${compile.debug}"
|
|
||||||
deprecation="${compile.deprecation}"
|
|
||||||
- release="${compile.release}"
|
|
||||||
+ source="11" target="11"
|
|
||||||
encoding="ISO-8859-1"
|
|
||||||
includeantruntime="false">
|
|
||||||
<classpath refid="tomcat.jdbc.classpath"/>
|
|
||||||
@@ -201,7 +201,7 @@
|
|
||||||
<javac srcdir="${basedir}/src/test/java" destdir="${tomcat.testclasses}"
|
|
||||||
debug="${compile.debug}"
|
|
||||||
deprecation="${compile.deprecation}"
|
|
||||||
- release="${compile.release}"
|
|
||||||
+ source="11" target="11"
|
|
||||||
encoding="ISO-8859-1"
|
|
||||||
includeantruntime="false">
|
|
||||||
<classpath refid="tomcat.jdbc.classpath"/>
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
# Add the module start-up parameters required by Tomcat
|
|
||||||
JAVA_OPTS="$JAVA_OPTS --add-opens=java.base/java.lang=ALL-UNNAMED"
|
|
||||||
JAVA_OPTS="$JAVA_OPTS --add-opens=java.base/java.io=ALL-UNNAMED"
|
|
||||||
JAVA_OPTS="$JAVA_OPTS --add-opens=java.base/java.util=ALL-UNNAMED"
|
|
||||||
JAVA_OPTS="$JAVA_OPTS --add-opens=java.base/java.util.concurrent=ALL-UNNAMED"
|
|
||||||
JAVA_OPTS="$JAVA_OPTS --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED"
|
|
||||||
export JAVA_OPTS
|
|
||||||
1
sources
1
sources
@ -1 +0,0 @@
|
|||||||
SHA512 (tomcat-10.1.49.redhat-00007-src.zip) = f72bf5cb755e14a0c4555bcdc3db6bef64c8353339699fc321d6ec2162c72b6999807ddbf3910d9a3217c20df7e94baf5b2c9bb5da7e143c776d01589a41dc4a
|
|
||||||
@ -1,30 +0,0 @@
|
|||||||
--- java/org/apache/jasper/compiler/JDTCompiler.java
|
|
||||||
+++ java/org/apache/jasper/compiler/JDTCompiler.java
|
|
||||||
@@ -302,9 +302,9 @@
|
|
||||||
} else if (opt.equals("17")) {
|
|
||||||
settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_17);
|
|
||||||
} else if (opt.equals("18")) {
|
|
||||||
- settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_18);
|
|
||||||
+ settings.put(CompilerOptions.OPTION_Source, "18");
|
|
||||||
} else if (opt.equals("19")) {
|
|
||||||
- settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_19);
|
|
||||||
+ settings.put(CompilerOptions.OPTION_Source, "19");
|
|
||||||
} else if (opt.equals("20")) {
|
|
||||||
// Constant not available in latest ECJ version that runs on
|
|
||||||
// Java 11.
|
|
||||||
@@ -392,11 +392,11 @@
|
|
||||||
settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_17);
|
|
||||||
settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_17);
|
|
||||||
} else if (opt.equals("18")) {
|
|
||||||
- settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_18);
|
|
||||||
- settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_18);
|
|
||||||
+ settings.put(CompilerOptions.OPTION_TargetPlatform, "18");
|
|
||||||
+ settings.put(CompilerOptions.OPTION_Compliance, "18");
|
|
||||||
} else if (opt.equals("19")) {
|
|
||||||
- settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_19);
|
|
||||||
- settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_19);
|
|
||||||
+ settings.put(CompilerOptions.OPTION_TargetPlatform, "19");
|
|
||||||
+ settings.put(CompilerOptions.OPTION_Compliance, "19");
|
|
||||||
} else if (opt.equals("20")) {
|
|
||||||
// Constant not available in latest ECJ version that runs on
|
|
||||||
// Java 11.
|
|
||||||
@ -1,10 +0,0 @@
|
|||||||
--- build.xml.orig 2023-01-29 17:38:29.477052402 +0800
|
|
||||||
+++ build.xml 2023-01-29 17:42:03.369583841 +0800
|
|
||||||
@@ -216,6 +216,7 @@
|
|
||||||
<!-- Classpaths -->
|
|
||||||
<path id="compile.classpath">
|
|
||||||
<pathelement location="${bnd.jar}"/>
|
|
||||||
+ <pathelement location="${bnd-annotation.jar}"/>
|
|
||||||
<pathelement location="${jdt.jar}"/>
|
|
||||||
<pathelement location="${jaxrpc-lib.jar}"/>
|
|
||||||
<pathelement location="${wsdl4j-lib.jar}"/>
|
|
||||||
@ -1,16 +0,0 @@
|
|||||||
--- conf/catalina.policy.orig 2024-05-22 16:12:23.809886452 +0300
|
|
||||||
+++ conf/catalina.policy 2024-05-22 16:14:38.913939654 +0300
|
|
||||||
@@ -55,6 +55,14 @@
|
|
||||||
permission java.security.AllPermission;
|
|
||||||
};
|
|
||||||
|
|
||||||
+// ========== RHEL SPECIFIC CODE PERMISSIONS =======================================
|
|
||||||
+
|
|
||||||
+// Allowing everything in /usr/share/java allows too many unknowns to be permitted
|
|
||||||
+// Specifying the individual jars that tomcat needs to function with the security manager
|
|
||||||
+// is the safest way forward.
|
|
||||||
+grant codeBase "file:/usr/share/java/ecj/ecj.jar" {
|
|
||||||
+ permission java.security.AllPermission;
|
|
||||||
+};
|
|
||||||
|
|
||||||
// ========== CATALINA CODE PERMISSIONS =======================================
|
|
||||||
@ -1,21 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
if [ -r /usr/share/java-utils/java-functions ]; then
|
|
||||||
. /usr/share/java-utils/java-functions
|
|
||||||
else
|
|
||||||
echo "Can't read Java functions library, aborting"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
_save_function() {
|
|
||||||
local ORIG_FUNC=$(declare -f $1)
|
|
||||||
local NEWNAME_FUNC="$2${ORIG_FUNC#$1}"
|
|
||||||
eval "$NEWNAME_FUNC"
|
|
||||||
}
|
|
||||||
|
|
||||||
_save_function run run_java
|
|
||||||
|
|
||||||
run() {
|
|
||||||
run_java $@
|
|
||||||
}
|
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user