From eb634a5fb1da405c9ac13c6dabc281a129a0035d Mon Sep 17 00:00:00 2001
From: Coty Sutherland
Date: Wed, 17 Jul 2019 13:32:12 -0400
Subject: [PATCH 001/177] Resolves: rhbz#1730755 Adding javapackages-tools back
as a Requirement as it's required to run the service scripts
---
tomcat.spec | 1 +
1 file changed, 1 insertion(+)
diff --git a/tomcat.spec b/tomcat.spec
index 9c1b1ef..90a0481 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -104,6 +104,7 @@ BuildRequires: systemd
Requires: apache-commons-daemon
Requires: java-headless >= 1:1.8.0
+Requires: javapackages-tools
Requires: procps
Requires: %{name}-lib = %{epoch}:%{version}-%{release}
Recommends: tomcat-native >= %{native_version}
From 29f31768a1c9ee994b75f344e369a7878aeedb1f Mon Sep 17 00:00:00 2001
From: Coty Sutherland
Date: Wed, 17 Jul 2019 14:17:34 -0400
Subject: [PATCH 002/177] Bump release version
---
tomcat.spec | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tomcat.spec b/tomcat.spec
index 90a0481..3e9b197 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -59,7 +59,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
From 582d8e227092a3b70bf0dd2cc65ceee3dba6526b Mon Sep 17 00:00:00 2001
From: Coty Sutherland
Date: Thu, 26 Sep 2019 16:05:30 -0400
Subject: [PATCH 003/177] Resolves: rhbz#1510522 man page uid and gid mismatch
for service accounts
---
tomcat.spec | 18 +++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)
diff --git a/tomcat.spec b/tomcat.spec
index d53c576..c64d9ea 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -35,7 +35,7 @@
%global packdname apache-tomcat-%{version}-src
%global servletspec 4.0
%global elspec 3.0
-%global tcuid 91
+%global tcuid 53
# Recommended version is specified in java/org/apache/catalina/core/AprLifecycleListener.java
%global native_version 1.2.21
@@ -59,7 +59,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -455,9 +455,14 @@ done
%pre
# add the tomcat user and group
-%{_sbindir}/groupadd -g %{tcuid} -r tomcat 2>/dev/null || :
-%{_sbindir}/useradd -c "Apache Tomcat" -u %{tcuid} -g tomcat \
- -s /sbin/nologin -r -d %{homedir} tomcat 2>/dev/null || :
+getent group tomcat >/dev/null || %{_sbindir}/groupadd -f -g %{tcuid} -r tomcat
+if ! getent passwd tomcat >/dev/null ; then
+ if ! getent passwd %{tcuid} >/dev/null ; then
+ %{_sbindir}/useradd -r -u %{tcuid} -g tomcat -d %{homedir} -s /sbin/nologin -c "Apache Tomcat" tomcat
+ # Tomcat uses a reserved ID, so there should never be an else
+ fi
+fi
+exit 0
%post
# install but don't activate
@@ -610,6 +615,9 @@ fi
%attr(0660,tomcat,tomcat) %verify(not size md5 mtime) %{logdir}/catalina.out
%changelog
+* Thu Sep 26 2019 Coty Sutherland - 1:9.0.26-2
+- Resolves: rhbz#1510522 man page uid and gid mismatch for service accounts
+
* Thu Sep 26 2019 Coty Sutherland - 1:9.0.26-1
- Update to 9.0.26
- Resolves: rhbz#1523112 tomcat systemd does not cope with - in service names
From 086e236b296eefad9511130d1e49cdb07d004b05 Mon Sep 17 00:00:00 2001
From: Coty Sutherland
Date: Fri, 20 Dec 2019 07:54:07 -0500
Subject: [PATCH 004/177] Update to 9.0.30
---
sources | 2 +-
tomcat.spec | 7 +++++--
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/sources b/sources
index 462e73a..33c6aba 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (apache-tomcat-9.0.26-src.tar.gz) = 8f430439c66f5a43c7a35bc99edd11549100be28b17fb44e17ec432f72e1797cdebd641a7f19c1d918635e51c164ecd1c9d1399a63abfce05d9a8c37db381837
+SHA512 (apache-tomcat-9.0.30-src.tar.gz) = 5a693c26bc78c504ca9c30cab6356927dbeded199798b558f2efe428a98fd68a88e0c113cc7b710fe3b2109e5ae3a970ff3989f909b95eb782d47d12a2a3a20d
diff --git a/tomcat.spec b/tomcat.spec
index c64d9ea..39d113d 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -31,7 +31,7 @@
%global jspspec 2.3
%global major_version 9
%global minor_version 0
-%global micro_version 26
+%global micro_version 30
%global packdname apache-tomcat-%{version}-src
%global servletspec 4.0
%global elspec 3.0
@@ -59,7 +59,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 2%{?dist}
+Release: 1%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -615,6 +615,9 @@ fi
%attr(0660,tomcat,tomcat) %verify(not size md5 mtime) %{logdir}/catalina.out
%changelog
+* Fri Dec 20 2019 Coty Sutherland - 1:9.0.30-1
+- Update to 9.0.30
+
* Thu Sep 26 2019 Coty Sutherland - 1:9.0.26-2
- Resolves: rhbz#1510522 man page uid and gid mismatch for service accounts
From f3dacbbf6eb22acbb9bdb96c99f6675022488fda Mon Sep 17 00:00:00 2001
From: Coty Sutherland
Date: Fri, 20 Dec 2019 08:26:42 -0500
Subject: [PATCH 005/177] Update to 9.0.30
---
sources | 2 +-
tomcat.spec | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/sources b/sources
index 462e73a..33c6aba 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (apache-tomcat-9.0.26-src.tar.gz) = 8f430439c66f5a43c7a35bc99edd11549100be28b17fb44e17ec432f72e1797cdebd641a7f19c1d918635e51c164ecd1c9d1399a63abfce05d9a8c37db381837
+SHA512 (apache-tomcat-9.0.30-src.tar.gz) = 5a693c26bc78c504ca9c30cab6356927dbeded199798b558f2efe428a98fd68a88e0c113cc7b710fe3b2109e5ae3a970ff3989f909b95eb782d47d12a2a3a20d
diff --git a/tomcat.spec b/tomcat.spec
index d53c576..881aa3d 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -31,7 +31,7 @@
%global jspspec 2.3
%global major_version 9
%global minor_version 0
-%global micro_version 26
+%global micro_version 30
%global packdname apache-tomcat-%{version}-src
%global servletspec 4.0
%global elspec 3.0
@@ -610,6 +610,9 @@ fi
%attr(0660,tomcat,tomcat) %verify(not size md5 mtime) %{logdir}/catalina.out
%changelog
+* Fri Dec 20 2019 Coty Sutherland - 1:9.0.30-1
+- Update to 9.0.30
+
* Thu Sep 26 2019 Coty Sutherland - 1:9.0.26-1
- Update to 9.0.26
- Resolves: rhbz#1523112 tomcat systemd does not cope with - in service names
From 3dc776fd4caaa569839c0b3d8ce3e1df1c8e4249 Mon Sep 17 00:00:00 2001
From: Coty Sutherland
Date: Fri, 20 Dec 2019 08:26:42 -0500
Subject: [PATCH 006/177] Update to 9.0.30
---
sources | 2 +-
tomcat.spec | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/sources b/sources
index 462e73a..33c6aba 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (apache-tomcat-9.0.26-src.tar.gz) = 8f430439c66f5a43c7a35bc99edd11549100be28b17fb44e17ec432f72e1797cdebd641a7f19c1d918635e51c164ecd1c9d1399a63abfce05d9a8c37db381837
+SHA512 (apache-tomcat-9.0.30-src.tar.gz) = 5a693c26bc78c504ca9c30cab6356927dbeded199798b558f2efe428a98fd68a88e0c113cc7b710fe3b2109e5ae3a970ff3989f909b95eb782d47d12a2a3a20d
diff --git a/tomcat.spec b/tomcat.spec
index bd40faa..6861ff4 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -31,7 +31,7 @@
%global jspspec 2.3
%global major_version 9
%global minor_version 0
-%global micro_version 26
+%global micro_version 30
%global packdname apache-tomcat-%{version}-src
%global servletspec 4.0
%global elspec 3.0
@@ -610,6 +610,9 @@ fi
%attr(0660,tomcat,tomcat) %verify(not size md5 mtime) %{logdir}/catalina.out
%changelog
+* Fri Dec 20 2019 Coty Sutherland - 1:9.0.30-1
+- Update to 9.0.30
+
* Thu Sep 26 2019 Coty Sutherland - 1:9.0.26-1
- Update to 9.0.26
- Resolves: rhbz#1523112 tomcat systemd does not cope with - in service names
From a66bbd0537e0ebe1689c6b02c92c2f9fcb8410f5 Mon Sep 17 00:00:00 2001
From: Coty Sutherland
Date: Fri, 20 Dec 2019 08:30:35 -0500
Subject: [PATCH 007/177] Reset Release number
---
tomcat.spec | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tomcat.spec b/tomcat.spec
index 6861ff4..881aa3d 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -59,7 +59,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 2%{?dist}
+Release: 1%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
From e388feccaaf2af78eb9fca2acea22008a211225a Mon Sep 17 00:00:00 2001
From: Coty Sutherland
Date: Fri, 20 Dec 2019 08:49:11 -0500
Subject: [PATCH 008/177] Update ECJ dependency to 4.12 to support Java 12
---
tomcat.spec | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tomcat.spec b/tomcat.spec
index 881aa3d..193c2b7 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -85,7 +85,7 @@ Patch2: %{name}-build.patch
BuildArch: noarch
BuildRequires: ant
-BuildRequires: ecj >= 1:4.10
+BuildRequires: ecj >= 1:4.12
BuildRequires: findutils
BuildRequires: apache-commons-daemon
BuildRequires: tomcat-taglibs-standard
@@ -612,6 +612,7 @@ fi
%changelog
* Fri Dec 20 2019 Coty Sutherland - 1:9.0.30-1
- Update to 9.0.30
+- Update ECJ dependency to 4.12 to support Java 12
* Thu Sep 26 2019 Coty Sutherland - 1:9.0.26-1
- Update to 9.0.26
From 7962bad230a2baea5d6950d03e86c2bf8c1e4a8d Mon Sep 17 00:00:00 2001
From: Coty Sutherland
Date: Fri, 20 Dec 2019 08:52:43 -0500
Subject: [PATCH 009/177] I misread, 4.12 isn't available in fc30...
Revert "Update ECJ dependency to 4.12 to support Java 12"
This reverts commit e388feccaaf2af78eb9fca2acea22008a211225a.
---
tomcat.spec | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tomcat.spec b/tomcat.spec
index 193c2b7..881aa3d 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -85,7 +85,7 @@ Patch2: %{name}-build.patch
BuildArch: noarch
BuildRequires: ant
-BuildRequires: ecj >= 1:4.12
+BuildRequires: ecj >= 1:4.10
BuildRequires: findutils
BuildRequires: apache-commons-daemon
BuildRequires: tomcat-taglibs-standard
@@ -612,7 +612,6 @@ fi
%changelog
* Fri Dec 20 2019 Coty Sutherland - 1:9.0.30-1
- Update to 9.0.30
-- Update ECJ dependency to 4.12 to support Java 12
* Thu Sep 26 2019 Coty Sutherland - 1:9.0.26-1
- Update to 9.0.26
From f177a1373b3c577453af30dcfaa923cdfc507ea9 Mon Sep 17 00:00:00 2001
From: Coty Sutherland
Date: Fri, 20 Dec 2019 09:11:28 -0500
Subject: [PATCH 010/177] Remove Java 12 support from JDTCompiler due to older
ECJ version availablility
---
tomcat-9.0-RemoveCompilerOptions.patch | 36 ++++++++++++++++++++++++++
tomcat.spec | 3 +++
2 files changed, 39 insertions(+)
create mode 100644 tomcat-9.0-RemoveCompilerOptions.patch
diff --git a/tomcat-9.0-RemoveCompilerOptions.patch b/tomcat-9.0-RemoveCompilerOptions.patch
new file mode 100644
index 0000000..dc5714f
--- /dev/null
+++ b/tomcat-9.0-RemoveCompilerOptions.patch
@@ -0,0 +1,36 @@
+diff -up java/org/apache/jasper/compiler/JDTCompiler.java.orig java/org/apache/jasper/compiler/JDTCompiler.java
+--- java/org/apache/jasper/compiler/JDTCompiler.java.orig 2019-12-20 08:54:52.899892555 -0500
++++ java/org/apache/jasper/compiler/JDTCompiler.java 2019-12-20 08:55:18.288822801 -0500
+@@ -324,14 +324,6 @@ public class JDTCompiler extends org.apa
+ } 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,
+@@ -395,17 +387,6 @@ public class JDTCompiler extends org.apa
+ 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/tomcat.spec b/tomcat.spec
index 881aa3d..2727b85 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -81,6 +81,7 @@ Source32: tomcat-named.service
Patch0: %{name}-%{major_version}.%{minor_version}-bootstrap-MANIFEST.MF.patch
Patch1: %{name}-%{major_version}.%{minor_version}-tomcat-users-webapp.patch
Patch2: %{name}-build.patch
+Patch3: %{name}-%{major_version}.%{minor_version}-RemoveCompilerOptions.patch
BuildArch: noarch
@@ -206,6 +207,7 @@ find . -type f \( -name "*.bat" -o -name "*.class" -o -name Thumbs.db -o -name "
%patch0 -p0
%patch1 -p0
%patch2 -p0
+%patch3 -p0
%{__ln_s} $(build-classpath tomcat-taglibs-standard/taglibs-standard-impl) webapps/examples/WEB-INF/lib/jstl.jar
%{__ln_s} $(build-classpath tomcat-taglibs-standard/taglibs-standard-compat) webapps/examples/WEB-INF/lib/standard.jar
@@ -612,6 +614,7 @@ fi
%changelog
* Fri Dec 20 2019 Coty Sutherland - 1:9.0.30-1
- Update to 9.0.30
+- Remove Java 12 support from JDTCompiler due to older ECJ version availablility
* Thu Sep 26 2019 Coty Sutherland - 1:9.0.26-1
- Update to 9.0.26
From b9c7fad2ffc274dca635374a879ca2d9a10fcc6f Mon Sep 17 00:00:00 2001
From: Fedora Release Engineering
Date: Fri, 31 Jan 2020 01:47:34 +0000
Subject: [PATCH 011/177] - Rebuilt for
https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering
---
tomcat.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tomcat.spec b/tomcat.spec
index 39d113d..784750d 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -59,7 +59,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -615,6 +615,9 @@ fi
%attr(0660,tomcat,tomcat) %verify(not size md5 mtime) %{logdir}/catalina.out
%changelog
+* Fri Jan 31 2020 Fedora Release Engineering - 1:9.0.30-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
+
* Fri Dec 20 2019 Coty Sutherland - 1:9.0.30-1
- Update to 9.0.30
From afaf8d3bf411cd9f2ccbc620a59c79e10f49143f Mon Sep 17 00:00:00 2001
From: Coty Sutherland
Date: Thu, 5 Mar 2020 15:12:02 -0500
Subject: [PATCH 012/177] Update to 9.0.31 Resolves: rhbz#1806398 -
CVE-2020-1938 tomcat: Apache Tomcat AJP File Read/Inclusion Vulnerability
---
sources | 2 +-
tomcat.spec | 8 ++++++--
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/sources b/sources
index 33c6aba..7481d0f 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (apache-tomcat-9.0.30-src.tar.gz) = 5a693c26bc78c504ca9c30cab6356927dbeded199798b558f2efe428a98fd68a88e0c113cc7b710fe3b2109e5ae3a970ff3989f909b95eb782d47d12a2a3a20d
+SHA512 (apache-tomcat-9.0.31-src.tar.gz) = a0ba9e46a3d2a4cf708e6e29b4647c041495e45865ce5c679c9dcfee77181373a2d3034222701d0f15d5c7e71e6aa3cc7db236c66ba069b3e3660a948b44342f
diff --git a/tomcat.spec b/tomcat.spec
index 784750d..66877fa 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -31,7 +31,7 @@
%global jspspec 2.3
%global major_version 9
%global minor_version 0
-%global micro_version 30
+%global micro_version 31
%global packdname apache-tomcat-%{version}-src
%global servletspec 4.0
%global elspec 3.0
@@ -59,7 +59,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 2%{?dist}
+Release: 1%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -615,6 +615,10 @@ fi
%attr(0660,tomcat,tomcat) %verify(not size md5 mtime) %{logdir}/catalina.out
%changelog
+* Thu Mar 05 2020 Coty Sutherland - 1:9.0.31-1
+- Update to 9.0.31
+- Resolves: rhbz#1806398 - CVE-2020-1938 tomcat: Apache Tomcat AJP File Read/Inclusion Vulnerability
+
* Fri Jan 31 2020 Fedora Release Engineering - 1:9.0.30-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
From 1c5f200345e02cd8d26285a0a6418699396d1d99 Mon Sep 17 00:00:00 2001
From: Coty Sutherland
Date: Thu, 5 Mar 2020 15:12:02 -0500
Subject: [PATCH 013/177] Update to 9.0.31 Resolves: rhbz#1806398 -
CVE-2020-1938 tomcat: Apache Tomcat AJP File Read/Inclusion Vulnerability
---
sources | 2 +-
tomcat.spec | 6 +++++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/sources b/sources
index 33c6aba..7481d0f 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (apache-tomcat-9.0.30-src.tar.gz) = 5a693c26bc78c504ca9c30cab6356927dbeded199798b558f2efe428a98fd68a88e0c113cc7b710fe3b2109e5ae3a970ff3989f909b95eb782d47d12a2a3a20d
+SHA512 (apache-tomcat-9.0.31-src.tar.gz) = a0ba9e46a3d2a4cf708e6e29b4647c041495e45865ce5c679c9dcfee77181373a2d3034222701d0f15d5c7e71e6aa3cc7db236c66ba069b3e3660a948b44342f
diff --git a/tomcat.spec b/tomcat.spec
index 881aa3d..c9c0b78 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -31,7 +31,7 @@
%global jspspec 2.3
%global major_version 9
%global minor_version 0
-%global micro_version 30
+%global micro_version 31
%global packdname apache-tomcat-%{version}-src
%global servletspec 4.0
%global elspec 3.0
@@ -610,6 +610,10 @@ fi
%attr(0660,tomcat,tomcat) %verify(not size md5 mtime) %{logdir}/catalina.out
%changelog
+* Thu Mar 05 2020 Coty Sutherland - 1:9.0.31-1
+- Update to 9.0.31
+- Resolves: rhbz#1806398 - CVE-2020-1938 tomcat: Apache Tomcat AJP File Read/Inclusion Vulnerability
+
* Fri Dec 20 2019 Coty Sutherland - 1:9.0.30-1
- Update to 9.0.30
From ba7ec40020b5ae0d7574b793e4d627bcf1abd78f Mon Sep 17 00:00:00 2001
From: Nicolas Chauvet
Date: Fri, 6 Mar 2020 18:42:26 +0100
Subject: [PATCH 014/177] Avoid using recommends when not supported
Signed-off-by: Nicolas Chauvet
---
tomcat.spec | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tomcat.spec b/tomcat.spec
index 66877fa..86c89dd 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -107,7 +107,9 @@ Requires: java-headless >= 1:1.8.0
Requires: javapackages-tools
Requires: procps
Requires: %{name}-lib = %{epoch}:%{version}-%{release}
+%if 0%{?fedora} || 0%{?rhel} > 7
Recommends: tomcat-native >= %{native_version}
+%endif
Requires(pre): shadow-utils
Requires(post): systemd
Requires(preun): systemd
From d0222aea9b8705a46558fb1d9937026950ce5c5d Mon Sep 17 00:00:00 2001
From: Coty Sutherland
Date: Thu, 12 Mar 2020 13:41:30 -0400
Subject: [PATCH 015/177] Related: rhbz#1806398 Undo changes in defaults for
AJP connector (CVE-2020-1938) to prevent breakage, please update your
configuration accordingly
---
change-defaults-for-CVE-2020-1938.patch | 72 +++++++++++++++++++++++++
tomcat.spec | 7 ++-
2 files changed, 78 insertions(+), 1 deletion(-)
create mode 100644 change-defaults-for-CVE-2020-1938.patch
diff --git a/change-defaults-for-CVE-2020-1938.patch b/change-defaults-for-CVE-2020-1938.patch
new file mode 100644
index 0000000..03207b1
--- /dev/null
+++ b/change-defaults-for-CVE-2020-1938.patch
@@ -0,0 +1,72 @@
+diff -up ./java/org/apache/coyote/ajp/AbstractAjpProtocol.java.orig ./java/org/apache/coyote/ajp/AbstractAjpProtocol.java
+--- ./java/org/apache/coyote/ajp/AbstractAjpProtocol.java.orig 2020-03-12 13:33:31.792406379 -0400
++++ ./java/org/apache/coyote/ajp/AbstractAjpProtocol.java 2020-03-12 13:35:24.222117728 -0400
+@@ -16,7 +16,6 @@
+ */
+ package org.apache.coyote.ajp;
+
+-import java.net.InetAddress;
+ import java.util.regex.Pattern;
+
+ import org.apache.coyote.AbstractProtocol;
+@@ -49,8 +48,6 @@ public abstract class AbstractAjpProtoco
+ setConnectionTimeout(Constants.DEFAULT_CONNECTION_TIMEOUT);
+ // AJP does not use Send File
+ getEndpoint().setUseSendfile(false);
+- // AJP listens on loopback by default
+- getEndpoint().setAddress(InetAddress.getLoopbackAddress());
+ ConnectionHandler cHandler = new ConnectionHandler<>(this);
+ setHandler(cHandler);
+ getEndpoint().setHandler(cHandler);
+@@ -180,7 +177,7 @@ public abstract class AbstractAjpProtoco
+ }
+
+
+- private boolean secretRequired = true;
++ private boolean secretRequired = false;
+ public void setSecretRequired(boolean secretRequired) {
+ this.secretRequired = secretRequired;
+ }
+diff -up ./webapps/docs/changelog.xml.orig ./webapps/docs/changelog.xml
+--- ./webapps/docs/changelog.xml.orig 2020-03-12 13:33:54.354348454 -0400
++++ ./webapps/docs/changelog.xml 2020-03-12 13:37:17.041828075 -0400
+@@ -178,14 +178,10 @@
+ Disable (comment out in server.xml) the AJP/1.3 connector by default.
+ (markt)
+
+-
+- Change the default bind address for the AJP/1.3 connector to be the
+- loopback address. (markt)
+-
+
+ Rename the requiredSecret attribute of the AJP/1.3
+ Connector to secret and add a new attribute
+- secretRequired that defaults to true. When
++ secretRequired that defaults to false. When
+ secretRequired is true the AJP/1.3 Connector
+ will not start unless the secret attribute is configured to
+ a non-null, non-zero length String. (markt)
+diff -up ./webapps/docs/config/ajp.xml.orig ./webapps/docs/config/ajp.xml
+--- ./webapps/docs/config/ajp.xml.orig 2020-03-12 13:34:10.383307302 -0400
++++ ./webapps/docs/config/ajp.xml 2020-03-12 13:36:17.617980639 -0400
+@@ -315,7 +315,10 @@
+
+
For servers with more than one IP address, this attribute
+ specifies which address will be used for listening on the specified
+- port. By default, the loopback address will be used.
++ port. By default, this port will be used on all IP addresses
++ associated with the server. A value of 127.0.0.1
++ indicates that the Connector will only listen on the loopback
++ interface.
+
+
+
+@@ -465,7 +468,7 @@
+
+
If this attribute is true, the AJP Connector will only
+ start if the secret attribute is configured with a
+- non-null, non-zero length value. The default value is true.
++ non-null, non-zero length value. The default value is false.
+ This attributue should only be set to false when the
+ Connector is used on a trusted network.
For servers with more than one IP address, this attribute
- specifies which address will be used for listening on the specified
-- port. By default, the loopback address will be used.
-+ port. By default, this port will be used on all IP addresses
-+ associated with the server. A value of 127.0.0.1
-+ indicates that the Connector will only listen on the loopback
-+ interface.
+
For servers with more than one IP address, this attribute specifies
+ which address will be used for listening on the specified port. By
+- default, the connector will listen on the loopback address. Unless the JVM
++ default, this port will be used on all IP addresses associated with the
++ server. A value of 127.0.0.1 indicates that the Connector
++ will only listen on the loopback interface.
Unless the JVM
+ is configured otherwise using system properties, the Java based connectors
+ (NIO, NIO2) will listen on both IPv4 and IPv6 addresses when configured
+ with either 0.0.0.0 or ::. The APR/native
+@@ -500,7 +502,7 @@
+ the secret attribute is required to be specified for the
+ AJP Connector to start. It does not control whether
+ workers are required to provide the secret. The default value is
+- true. This attribute should only be set to false
++ false. This attribute should only be set to false
+ when the Connector is used on a trusted network.
-
-@@ -465,7 +468,7 @@
-
-
If this attribute is true, the AJP Connector will only
- start if the secret attribute is configured with a
-- non-null, non-zero length value. The default value is true.
-+ non-null, non-zero length value. The default value is false.
- This attributue should only be set to false when the
- Connector is used on a trusted network.
-
From 48687e3b1c35dd982992a3775e5fe03bd5486e42 Mon Sep 17 00:00:00 2001
From: Coty Sutherland
Date: Wed, 22 Apr 2020 16:14:06 -0400
Subject: [PATCH 021/177] Update dependency for ECJ to version 4.11 and some
patch adjustments
---
change-defaults-for-CVE-2020-1938.patch | 2 +-
tomcat-9.0-RemoveCompilerOptions.patch | 32 +++++++++++++++++++++----
tomcat.spec | 3 ++-
3 files changed, 30 insertions(+), 7 deletions(-)
diff --git a/change-defaults-for-CVE-2020-1938.patch b/change-defaults-for-CVE-2020-1938.patch
index a7f7c49..02ed0df 100644
--- a/change-defaults-for-CVE-2020-1938.patch
+++ b/change-defaults-for-CVE-2020-1938.patch
@@ -56,7 +56,7 @@ diff -up ./webapps/docs/config/ajp.xml.orig ./webapps/docs/config/ajp.xml
- default, the connector will listen on the loopback address. Unless the JVM
+ default, this port will be used on all IP addresses associated with the
+ server. A value of 127.0.0.1 indicates that the Connector
-+ will only listen on the loopback interface. Unless the JVM
++ will only listen on the loopback interface. Unless the JVM
is configured otherwise using system properties, the Java based connectors
(NIO, NIO2) will listen on both IPv4 and IPv6 addresses when configured
with either 0.0.0.0 or ::. The APR/native
diff --git a/tomcat-9.0-RemoveCompilerOptions.patch b/tomcat-9.0-RemoveCompilerOptions.patch
index dc5714f..00378f9 100644
--- a/tomcat-9.0-RemoveCompilerOptions.patch
+++ b/tomcat-9.0-RemoveCompilerOptions.patch
@@ -1,7 +1,7 @@
-diff -up java/org/apache/jasper/compiler/JDTCompiler.java.orig java/org/apache/jasper/compiler/JDTCompiler.java
---- java/org/apache/jasper/compiler/JDTCompiler.java.orig 2019-12-20 08:54:52.899892555 -0500
-+++ java/org/apache/jasper/compiler/JDTCompiler.java 2019-12-20 08:55:18.288822801 -0500
-@@ -324,14 +324,6 @@ public class JDTCompiler extends org.apa
+diff -up ./java/org/apache/jasper/compiler/JDTCompiler.java.orig ./java/org/apache/jasper/compiler/JDTCompiler.java
+--- ./java/org/apache/jasper/compiler/JDTCompiler.java.orig 2020-04-03 08:11:52.000000000 -0400
++++ ./java/org/apache/jasper/compiler/JDTCompiler.java 2020-04-22 16:03:04.710594419 -0400
+@@ -324,24 +324,6 @@ public class JDTCompiler extends org.apa
} else if(opt.equals("11")) {
settings.put(CompilerOptions.OPTION_Source,
CompilerOptions.VERSION_11);
@@ -13,10 +13,20 @@ diff -up java/org/apache/jasper/compiler/JDTCompiler.java.orig java/org/apache/j
- // Tomcat. May be supported in a snapshot build.
- // This is checked against the actual version below.
- settings.put(CompilerOptions.OPTION_Source, "13");
+- } else if(opt.equals("14")) {
+- // 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, "14");
+- } else if(opt.equals("15")) {
+- // 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, "15");
} else {
log.warn(Localizer.getMessage("jsp.warning.unknown.sourceVM", opt));
settings.put(CompilerOptions.OPTION_Source,
-@@ -395,17 +387,6 @@ public class JDTCompiler extends org.apa
+@@ -405,29 +387,6 @@ public class JDTCompiler extends org.apa
CompilerOptions.VERSION_11);
settings.put(CompilerOptions.OPTION_Compliance,
CompilerOptions.VERSION_11);
@@ -31,6 +41,18 @@ diff -up java/org/apache/jasper/compiler/JDTCompiler.java.orig java/org/apache/j
- // This is checked against the actual version below.
- settings.put(CompilerOptions.OPTION_TargetPlatform, "13");
- settings.put(CompilerOptions.OPTION_Compliance, "13");
+- } else if(opt.equals("14")) {
+- // 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, "14");
+- settings.put(CompilerOptions.OPTION_Compliance, "14");
+- } else if(opt.equals("15")) {
+- // 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, "15");
+- settings.put(CompilerOptions.OPTION_Compliance, "15");
} else {
log.warn(Localizer.getMessage("jsp.warning.unknown.targetVM", opt));
settings.put(CompilerOptions.OPTION_TargetPlatform,
diff --git a/tomcat.spec b/tomcat.spec
index cde771d..290bdb4 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -87,7 +87,7 @@ Patch4: change-defaults-for-CVE-2020-1938.patch
BuildArch: noarch
BuildRequires: ant
-BuildRequires: ecj >= 1:4.10
+BuildRequires: ecj >= 1:4.11
BuildRequires: findutils
BuildRequires: apache-commons-daemon
BuildRequires: tomcat-taglibs-standard
@@ -616,6 +616,7 @@ fi
%changelog
* Tue Apr 21 2020 Coty Sutherland - 1:9.0.34-1
- Update to 9.0.34
+- Update dependency for ECJ to version 4.11
* Thu Mar 12 2020 Coty Sutherland - 1:9.0.31-2
- Related: rhbz#1806398 Undo changes in defaults for AJP connector (CVE-2020-1938) to prevent breakage, please update your configuration accordingly
From 2b394dec218ed9c94f19e3c8a1d955f9fc6fb509 Mon Sep 17 00:00:00 2001
From: Coty Sutherland
Date: Mon, 4 May 2020 12:22:01 -0400
Subject: [PATCH 022/177] Revert "Update dependency version for ECJ to >= 4.15"
due to causing issues (it's missing in fc32) with testing the java 11 builds
This reverts commit 2e1623eaa329aa35da8223838f7edcddfa3f642f.
---
tomcat.spec | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tomcat.spec b/tomcat.spec
index 714ff8e..b738456 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -86,7 +86,7 @@ Patch3: %{name}-%{major_version}.%{minor_version}-catalina-policy.patch
BuildArch: noarch
BuildRequires: ant
-BuildRequires: ecj >= 1:4.15
+BuildRequires: ecj >= 1:4.10
BuildRequires: findutils
BuildRequires: apache-commons-daemon
BuildRequires: tomcat-taglibs-standard
@@ -621,7 +621,6 @@ fi
%changelog
* Wed Apr 22 2020 Coty Sutherland - 1:9.0.34-2
- Add updated catalina.policy patch to allow ECJ usage under the Security Manager
-- Update dependency version for ECJ to >= 4.15
* Tue Apr 21 2020 Coty Sutherland - 1:9.0.34-1
- Update to 9.0.34
From faf98ce047ca87e0b9124353d59438b46dbf7892 Mon Sep 17 00:00:00 2001
From: Hui Wang
Date: Sun, 31 May 2020 21:10:41 +0800
Subject: [PATCH 023/177] Upgrade to 9.0.35
---
sources | 2 +-
tomcat.spec | 7 +++++--
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/sources b/sources
index 1bf01fc..9722027 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (apache-tomcat-9.0.34-src.tar.gz) = 8ac8a916bfe2d3daf679dab9f299bc50f138f3cc9a6e8679a22862d122dea1e5ce3b9101472295398366f5b5d8477097a3cfb536f01136e72ff09d69b2f6c3df
+SHA512 (apache-tomcat-9.0.35-src.tar.gz) = 8931c0f7c30f50d352879f8dfddc02fa59d7128813399e4eca3994be7cf2448e32e726a3cb8b387a5470ccbfa3fb74d0192c825b5f68bbb9fb6b43a9353cb24a
diff --git a/tomcat.spec b/tomcat.spec
index b738456..df89e52 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -31,7 +31,7 @@
%global jspspec 2.3
%global major_version 9
%global minor_version 0
-%global micro_version 34
+%global micro_version 35
%global packdname apache-tomcat-%{version}-src
%global servletspec 4.0
%global elspec 3.0
@@ -59,7 +59,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 2%{?dist}
+Release: 1%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -619,6 +619,9 @@ fi
%attr(0660,tomcat,tomcat) %verify(not size md5 mtime) %{logdir}/catalina.out
%changelog
+* Sun May 31 2020 Hui Wang - 1:9.0.34-1
+- Upgrade to 9.0.35
+
* Wed Apr 22 2020 Coty Sutherland - 1:9.0.34-2
- Add updated catalina.policy patch to allow ECJ usage under the Security Manager
From 84e90958f5fadc2a579a5ecfad3291bb75fec43b Mon Sep 17 00:00:00 2001
From: Coty Sutherland
Date: Mon, 1 Jun 2020 09:09:44 -0400
Subject: [PATCH 024/177] Fix changelog entry
---
tomcat.spec | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tomcat.spec b/tomcat.spec
index df89e52..1450718 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -59,7 +59,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -619,7 +619,7 @@ fi
%attr(0660,tomcat,tomcat) %verify(not size md5 mtime) %{logdir}/catalina.out
%changelog
-* Sun May 31 2020 Hui Wang - 1:9.0.34-1
+* Sun May 31 2020 Hui Wang - 1:9.0.35-2
- Upgrade to 9.0.35
* Wed Apr 22 2020 Coty Sutherland - 1:9.0.34-2
From 141fed8ee12a04025933f7b38d2746f336654dac Mon Sep 17 00:00:00 2001
From: Hui Wang
Date: Wed, 10 Jun 2020 13:48:53 +0800
Subject: [PATCH 025/177] Upgrade to 9.0.36
---
sources | 2 +-
tomcat.spec | 7 +++++--
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/sources b/sources
index 9722027..63e6a2c 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (apache-tomcat-9.0.35-src.tar.gz) = 8931c0f7c30f50d352879f8dfddc02fa59d7128813399e4eca3994be7cf2448e32e726a3cb8b387a5470ccbfa3fb74d0192c825b5f68bbb9fb6b43a9353cb24a
+SHA512 (apache-tomcat-9.0.36-src.tar.gz) = f8263594bc679f75cecf5bcf4ad8e8ccfea42ad8e90eaeb7004c63875c6b700b0f863d68f1cdd932ebc7b303bdfb86d70afe88686e576c8ea7ccd9574c74e25b
diff --git a/tomcat.spec b/tomcat.spec
index 1450718..341d3df 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -31,7 +31,7 @@
%global jspspec 2.3
%global major_version 9
%global minor_version 0
-%global micro_version 35
+%global micro_version 36
%global packdname apache-tomcat-%{version}-src
%global servletspec 4.0
%global elspec 3.0
@@ -59,7 +59,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 2%{?dist}
+Release: 1%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -619,6 +619,9 @@ fi
%attr(0660,tomcat,tomcat) %verify(not size md5 mtime) %{logdir}/catalina.out
%changelog
+* Wed Jun 10 2020 Hui Wang - 1:9.0.36-1
+- Upgrade to 9.0.36
+
* Sun May 31 2020 Hui Wang - 1:9.0.35-2
- Upgrade to 9.0.35
From 76fc84d68e44fd17c0e46b3520abe3b2b505a5e5 Mon Sep 17 00:00:00 2001
From: Jiri
Date: Sat, 11 Jul 2020 07:36:02 +0200
Subject: [PATCH 026/177] Rebuilt for JDK-11
---
tomcat.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tomcat.spec b/tomcat.spec
index 341d3df..cd38d0b 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -59,7 +59,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -619,6 +619,9 @@ fi
%attr(0660,tomcat,tomcat) %verify(not size md5 mtime) %{logdir}/catalina.out
%changelog
+* Sat Jul 11 2020 Jiri Vanek - 1:9.0.36-2
+- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
+
* Wed Jun 10 2020 Hui Wang - 1:9.0.36-1
- Upgrade to 9.0.36
From 52bdf0a6d0a2a46cbf3a6140ee4ee84ae3091bd2 Mon Sep 17 00:00:00 2001
From: Coty Sutherland
Date: Mon, 13 Jul 2020 14:02:57 -0400
Subject: [PATCH 027/177] Update to 9.0.37
---
sources | 2 +-
tomcat-build.patch | 27 +++++++++++++++++++++------
tomcat.spec | 8 ++++++--
3 files changed, 28 insertions(+), 9 deletions(-)
diff --git a/sources b/sources
index 63e6a2c..1cf78f2 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (apache-tomcat-9.0.36-src.tar.gz) = f8263594bc679f75cecf5bcf4ad8e8ccfea42ad8e90eaeb7004c63875c6b700b0f863d68f1cdd932ebc7b303bdfb86d70afe88686e576c8ea7ccd9574c74e25b
+SHA512 (apache-tomcat-9.0.37-src.tar.gz) = 6e819fe255c467b0081e91c17a53fa383fe84d922492c62d7dd93cabf00e22ab30872ecaa298a9b12977b8c7518f36c8429091b24c9fb5200db64e80e853ce98
diff --git a/tomcat-build.patch b/tomcat-build.patch
index acaac9c..97440f1 100644
--- a/tomcat-build.patch
+++ b/tomcat-build.patch
@@ -1,12 +1,27 @@
---- build.xml.orig 2018-08-07 10:32:04.994403913 -0400
-+++ build.xml 2018-08-07 10:32:30.874319588 -0400
-@@ -2989,6 +2989,9 @@ Read the Building page on the Apache Tom
-
+diff -up ./build.xml.orig ./build.xml
+--- ./build.xml.orig 2020-07-13 12:59:09.555368724 -0400
++++ ./build.xml 2020-07-13 13:06:51.246135917 -0400
+@@ -3307,6 +3307,11 @@ Read the Building page on the Apache Tom
+
+
-
++
+
+
+
++
-
+
+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}
diff --git a/tomcat.spec b/tomcat.spec
index cd38d0b..a705c9a 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -31,7 +31,7 @@
%global jspspec 2.3
%global major_version 9
%global minor_version 0
-%global micro_version 36
+%global micro_version 37
%global packdname apache-tomcat-%{version}-src
%global servletspec 4.0
%global elspec 3.0
@@ -59,7 +59,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 2%{?dist}
+Release: 1%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -239,6 +239,7 @@ export OPT_JAR_LIST="xalan-j2-serializer"
-Dbndlibg.jar="$(build-classpath aqute-bnd/aQute.libg)" \
-Dbndannotation.jar="$(build-classpath aqute-bnd/biz.aQute.bnd.annotation)" \
-Dslf4j-api.jar="$(build-classpath slf4j/slf4j-api)" \
+ -Dosgi-cmpn.jar="$(build-classpath osgi-compendium/osgi.cmpn)" \
-Dversion="%{version}" \
-Dversion.build="%{micro_version}" \
deploy dist-source
@@ -619,6 +620,9 @@ fi
%attr(0660,tomcat,tomcat) %verify(not size md5 mtime) %{logdir}/catalina.out
%changelog
+* Mon Jul 13 2020 Coty Sutherland - 1:9.0.37-1
+- Update to 9.0.37
+
* Sat Jul 11 2020 Jiri Vanek - 1:9.0.36-2
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
From a8c5ea85614dca66b492fe030a7e7cfc10cd52de Mon Sep 17 00:00:00 2001
From: Coty Sutherland
Date: Mon, 20 Jul 2020 15:17:57 -0400
Subject: [PATCH 028/177] Resolves: rhbz#1857043 Add patch to reinclude
o.a.t.util.net.jsse and o.a.t.util.moduler.modules in tomcat-coyote.jar
---
rhbz-1857043.patch | 21 +++++++++++++++++++++
tomcat.spec | 7 ++++++-
2 files changed, 27 insertions(+), 1 deletion(-)
create mode 100644 rhbz-1857043.patch
diff --git a/rhbz-1857043.patch b/rhbz-1857043.patch
new file mode 100644
index 0000000..e78852e
--- /dev/null
+++ b/rhbz-1857043.patch
@@ -0,0 +1,21 @@
+diff -up ./res/bnd/tomcat-coyote.jar.tmp.bnd.orig ./res/bnd/tomcat-coyote.jar.tmp.bnd
+--- ./res/bnd/tomcat-coyote.jar.tmp.bnd.orig 2020-07-20 15:14:12.469921562 -0400
++++ ./res/bnd/tomcat-coyote.jar.tmp.bnd 2020-07-20 15:14:28.452941874 -0400
+@@ -35,11 +35,11 @@ Export-Package: \
+ org.apache.tomcat.util.modeler,\
+ org.apache.tomcat.util.net,\
+ org.apache.tomcat.util.net.openssl,\
+- org.apache.tomcat.util.net.openssl.ciphers
++ org.apache.tomcat.util.net.openssl.ciphers,\
++ org.apache.tomcat.util.modeler.modules,\
++ org.apache.tomcat.util.net.jsse
+
+ -includepackage: \
+ org.apache.tomcat.util.bcel,\
+ org.apache.tomcat.util.http.fileupload.impl,\
+- org.apache.tomcat.util.http.fileupload.util.mime,\
+- org.apache.tomcat.util.modeler.modules,\
+- org.apache.tomcat.util.net.jsse
+\ No newline at end of file
++ org.apache.tomcat.util.http.fileupload.util.mime
+\ No newline at end of file
diff --git a/tomcat.spec b/tomcat.spec
index a705c9a..e506e0d 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -59,7 +59,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -82,6 +82,7 @@ Patch0: %{name}-%{major_version}.%{minor_version}-bootstrap-MANIFEST.MF.p
Patch1: %{name}-%{major_version}.%{minor_version}-tomcat-users-webapp.patch
Patch2: %{name}-build.patch
Patch3: %{name}-%{major_version}.%{minor_version}-catalina-policy.patch
+Patch4: rhbz-1857043.patch
BuildArch: noarch
@@ -210,6 +211,7 @@ find . -type f \( -name "*.bat" -o -name "*.class" -o -name Thumbs.db -o -name "
%patch1 -p0
%patch2 -p0
%patch3 -p0
+%patch4 -p0
%{__ln_s} $(build-classpath tomcat-taglibs-standard/taglibs-standard-impl) webapps/examples/WEB-INF/lib/jstl.jar
%{__ln_s} $(build-classpath tomcat-taglibs-standard/taglibs-standard-compat) webapps/examples/WEB-INF/lib/standard.jar
@@ -620,6 +622,9 @@ fi
%attr(0660,tomcat,tomcat) %verify(not size md5 mtime) %{logdir}/catalina.out
%changelog
+* Mon Jul 20 2020 Coty Sutherland - 1:9.0.37-2
+- Resolves: rhbz#1857043 Add patch to reinclude o.a.t.util.net.jsse and o.a.t.util.moduler.modules in tomcat-coyote.jar
+
* Mon Jul 13 2020 Coty Sutherland - 1:9.0.37-1
- Update to 9.0.37
From b8a539711f80833de329ef7921004d36e66d4e6f Mon Sep 17 00:00:00 2001
From: Coty Sutherland
Date: Fri, 24 Jul 2020 10:50:23 -0400
Subject: [PATCH 029/177] Related: rhbz#1857043 I'm temporarily removing the
OSGi metadata from the tomcat ant build because the older verison of
aqute-bnd is causing classes to be removed when generating the metadata. If
the aqute-bnd library is updated it should fix the issue, if not and someone
needs to metadata to be added back I can generate it with the upstream tomcat
build and add those manifests to the srpm sources
---
rhbz-1857043.patch | 219 ++++++++++++++++++++++++++++++++++++++++-----
tomcat.spec | 5 +-
2 files changed, 203 insertions(+), 21 deletions(-)
diff --git a/rhbz-1857043.patch b/rhbz-1857043.patch
index e78852e..3730769 100644
--- a/rhbz-1857043.patch
+++ b/rhbz-1857043.patch
@@ -1,21 +1,200 @@
-diff -up ./res/bnd/tomcat-coyote.jar.tmp.bnd.orig ./res/bnd/tomcat-coyote.jar.tmp.bnd
---- ./res/bnd/tomcat-coyote.jar.tmp.bnd.orig 2020-07-20 15:14:12.469921562 -0400
-+++ ./res/bnd/tomcat-coyote.jar.tmp.bnd 2020-07-20 15:14:28.452941874 -0400
-@@ -35,11 +35,11 @@ Export-Package: \
- org.apache.tomcat.util.modeler,\
- org.apache.tomcat.util.net,\
- org.apache.tomcat.util.net.openssl,\
-- org.apache.tomcat.util.net.openssl.ciphers
-+ org.apache.tomcat.util.net.openssl.ciphers,\
-+ org.apache.tomcat.util.modeler.modules,\
-+ org.apache.tomcat.util.net.jsse
+diff -up ./build.xml.orig ./build.xml
+--- ./build.xml.orig 2020-07-24 10:24:08.313796968 -0400
++++ ./build.xml 2020-07-24 10:24:38.027427445 -0400
+@@ -757,7 +757,7 @@
+ filesDir="${tomcat.classes}"
+ filesId="files.annotations-api"
+ manifest="${tomcat.manifests}/annotations-api.jar.manifest"
+- addOSGi="true" />
++ addOSGi="false" />
- -includepackage: \
- org.apache.tomcat.util.bcel,\
- org.apache.tomcat.util.http.fileupload.impl,\
-- org.apache.tomcat.util.http.fileupload.util.mime,\
-- org.apache.tomcat.util.modeler.modules,\
-- org.apache.tomcat.util.net.jsse
-\ No newline at end of file
-+ org.apache.tomcat.util.http.fileupload.util.mime
-\ No newline at end of file
+
+
++ addOSGi="false" />
+
+
+
++ addOSGi="false" />
+
+
+
++ addOSGi="false" />
+
+
+
++ addOSGi="false" />
+
+
+
++ addOSGi="false" />
+
+
+
++ addOSGi="false" />
+
+
+
++ addOSGi="false" />
+
+
+
++ addOSGi="false" />
+
+
+
++ addOSGi="false" />
+
+
++ addOSGi="false" />
+
+
+
++ addOSGi="false" />
+
+
+
++ addOSGi="false" />
+
+
+
++ addOSGi="false" />
+
+
+
++ addOSGi="false" />
+
+
+
++ addOSGi="false" />
+
+
+
++ addOSGi="false" />
+
+
+
++ addOSGi="false" />
+
+
+
++ addOSGi="false" />
+
+
+
++ addOSGi="false" />
+
+
+
++ addOSGi="false" />
+
+
+ - 1:9.0.37-3
+- Related: rhbz#1857043 Temporarily remove OSGi metadata from tomcat jars
+
* Mon Jul 20 2020 Coty Sutherland - 1:9.0.37-2
- Resolves: rhbz#1857043 Add patch to reinclude o.a.t.util.net.jsse and o.a.t.util.moduler.modules in tomcat-coyote.jar
From d023b96d1f829a35b2d5cb586b7667f597058af4 Mon Sep 17 00:00:00 2001
From: Fedora Release Engineering
Date: Wed, 29 Jul 2020 12:39:58 +0000
Subject: [PATCH 030/177] - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering
---
tomcat.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tomcat.spec b/tomcat.spec
index 190684e..3722559 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -59,7 +59,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -622,6 +622,9 @@ fi
%attr(0660,tomcat,tomcat) %verify(not size md5 mtime) %{logdir}/catalina.out
%changelog
+* Wed Jul 29 2020 Fedora Release Engineering - 1:9.0.37-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
+
* Fri Jul 24 2020 Coty Sutherland - 1:9.0.37-3
- Related: rhbz#1857043 Temporarily remove OSGi metadata from tomcat jars
From bddbd4330e8acae06a7762db84a3f98a7cd59dd0 Mon Sep 17 00:00:00 2001
From: Hui Wang
Date: Wed, 16 Sep 2020 17:41:36 +0800
Subject: [PATCH 031/177] Update to 9.0.38
---
sources | 2 +-
tomcat.spec | 7 +++++--
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/sources b/sources
index 1cf78f2..564403f 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (apache-tomcat-9.0.37-src.tar.gz) = 6e819fe255c467b0081e91c17a53fa383fe84d922492c62d7dd93cabf00e22ab30872ecaa298a9b12977b8c7518f36c8429091b24c9fb5200db64e80e853ce98
+SHA512 (apache-tomcat-9.0.38-src.tar.gz) = 13c79abed71ead564b108ec8a046e78374611acd906f4b6e775ac0427446117192be6b25f29894e625e2dc13f79abbc97bc52b32120ce5701cbe0f5ae05bc57b
diff --git a/tomcat.spec b/tomcat.spec
index 3722559..1e8d9fa 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -31,7 +31,7 @@
%global jspspec 2.3
%global major_version 9
%global minor_version 0
-%global micro_version 37
+%global micro_version 38
%global packdname apache-tomcat-%{version}-src
%global servletspec 4.0
%global elspec 3.0
@@ -59,7 +59,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 4%{?dist}
+Release: 1%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -622,6 +622,9 @@ fi
%attr(0660,tomcat,tomcat) %verify(not size md5 mtime) %{logdir}/catalina.out
%changelog
+* Wed Sep 16 2020 Hui Wang - 1:9.0.38-1
+- Update to 9.0.38
+
* Wed Jul 29 2020 Fedora Release Engineering - 1:9.0.37-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
From 20e12fb70e1399420282b3cecf3a18d8435a8bcd Mon Sep 17 00:00:00 2001
From: Hui Wang
Date: Mon, 12 Oct 2020 13:50:13 +0800
Subject: [PATCH 032/177] Update to 9.0.39
---
sources | 2 +-
tomcat.spec | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/sources b/sources
index 564403f..0f52225 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (apache-tomcat-9.0.38-src.tar.gz) = 13c79abed71ead564b108ec8a046e78374611acd906f4b6e775ac0427446117192be6b25f29894e625e2dc13f79abbc97bc52b32120ce5701cbe0f5ae05bc57b
+SHA512 (apache-tomcat-9.0.39-src.tar.gz) = d13a74789db0fdd9d814296cb66ae1321407b1452e0aa7b4f554c86b9c4f0abbeb9c9c6ab4723740174fe95ade4673c67fb7cb6f220d0d3c71ac27146faf5374
diff --git a/tomcat.spec b/tomcat.spec
index 1e8d9fa..50609ae 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -31,7 +31,7 @@
%global jspspec 2.3
%global major_version 9
%global minor_version 0
-%global micro_version 38
+%global micro_version 39
%global packdname apache-tomcat-%{version}-src
%global servletspec 4.0
%global elspec 3.0
@@ -622,6 +622,9 @@ fi
%attr(0660,tomcat,tomcat) %verify(not size md5 mtime) %{logdir}/catalina.out
%changelog
+* Mon Oct 12 2020 Hui Wang - 1:9.0.39-1
+- Update to 9.0.39
+
* Wed Sep 16 2020 Hui Wang - 1:9.0.38-1
- Update to 9.0.38
From f60e452abe83bd7a39a5d2d676b4d9b4b325a83d Mon Sep 17 00:00:00 2001
From: Hui Wang
Date: Wed, 14 Oct 2020 10:49:43 +0800
Subject: [PATCH 033/177] Configure osgi-annotations.jar for the source commit
33e874fa31e6c411421ad1304dfa65f30bd58958 (Fix Javadoc build error and ensure
'ant clean javadoc' works)
---
tomcat.spec | 1 +
1 file changed, 1 insertion(+)
diff --git a/tomcat.spec b/tomcat.spec
index 50609ae..4ca4af4 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -240,6 +240,7 @@ export OPT_JAR_LIST="xalan-j2-serializer"
-Dbndlib.jar="$(build-classpath aqute-bnd/biz.aQute.bndlib)" \
-Dbndlibg.jar="$(build-classpath aqute-bnd/aQute.libg)" \
-Dbndannotation.jar="$(build-classpath aqute-bnd/biz.aQute.bnd.annotation)" \
+ -Dosgi-annotations.jar="$(build-classpath aqute-bnd/biz.aQute.bnd.annotation)" \
-Dslf4j-api.jar="$(build-classpath slf4j/slf4j-api)" \
-Dosgi-cmpn.jar="$(build-classpath osgi-compendium/osgi.cmpn)" \
-Dversion="%{version}" \
From 083152752796b7b2782032576ae15633d243906e Mon Sep 17 00:00:00 2001
From: Hui Wang
Date: Wed, 18 Nov 2020 15:01:59 +0800
Subject: [PATCH 034/177] Update to 9.0.40
---
sources | 2 +-
tomcat.spec | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/sources b/sources
index 0f52225..7b614e9 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (apache-tomcat-9.0.39-src.tar.gz) = d13a74789db0fdd9d814296cb66ae1321407b1452e0aa7b4f554c86b9c4f0abbeb9c9c6ab4723740174fe95ade4673c67fb7cb6f220d0d3c71ac27146faf5374
+SHA512 (apache-tomcat-9.0.40-src.tar.gz) = 61b8e191315cee2bc0437013dbe7d1fb3451182e0b316fb377581c7d47a59cefb7f2ff30d96a2d6326a99c86f4151b26d1ef76bda5029b30d81c8297a0b362fb
diff --git a/tomcat.spec b/tomcat.spec
index 4ca4af4..bfb3aae 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -31,7 +31,7 @@
%global jspspec 2.3
%global major_version 9
%global minor_version 0
-%global micro_version 39
+%global micro_version 40
%global packdname apache-tomcat-%{version}-src
%global servletspec 4.0
%global elspec 3.0
@@ -623,6 +623,9 @@ fi
%attr(0660,tomcat,tomcat) %verify(not size md5 mtime) %{logdir}/catalina.out
%changelog
+* Wed Nov 18 2020 Hui Wang - 1:9.0.40-1
+- Update to 9.0.40
+
* Mon Oct 12 2020 Hui Wang - 1:9.0.39-1
- Update to 9.0.39
From 23db76574c916e14094e3733eadd491d1a286416 Mon Sep 17 00:00:00 2001
From: Hui Wang
Date: Wed, 9 Dec 2020 14:53:37 +0800
Subject: [PATCH 035/177] Update to 9.0.41
---
sources | 2 +-
tomcat.spec | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/sources b/sources
index 7b614e9..14b6e11 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (apache-tomcat-9.0.40-src.tar.gz) = 61b8e191315cee2bc0437013dbe7d1fb3451182e0b316fb377581c7d47a59cefb7f2ff30d96a2d6326a99c86f4151b26d1ef76bda5029b30d81c8297a0b362fb
+SHA512 (apache-tomcat-9.0.41-src.tar.gz) = 094e7cbd2519a4b812a2ca865f92802ece3385a20826c5e29b5f7cda8b9265d01ede6f598999f8aa2f1b04bcaca2e67e3f0132781b3f22007356df49ab6b1838
diff --git a/tomcat.spec b/tomcat.spec
index bfb3aae..edaaa7f 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -31,7 +31,7 @@
%global jspspec 2.3
%global major_version 9
%global minor_version 0
-%global micro_version 40
+%global micro_version 41
%global packdname apache-tomcat-%{version}-src
%global servletspec 4.0
%global elspec 3.0
@@ -623,6 +623,9 @@ fi
%attr(0660,tomcat,tomcat) %verify(not size md5 mtime) %{logdir}/catalina.out
%changelog
+* Wed Dec 09 2020 Hui Wang - 1:0.0.41-1
+- Update to 9.0.41
+
* Wed Nov 18 2020 Hui Wang - 1:9.0.40-1
- Update to 9.0.40
From 63889634115c67483bdb9e1c8ceb8346373605e9 Mon Sep 17 00:00:00 2001
From: Fedora Release Engineering
Date: Wed, 27 Jan 2021 22:06:12 +0000
Subject: [PATCH 036/177] - Rebuilt for
https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering
---
tomcat.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tomcat.spec b/tomcat.spec
index edaaa7f..6b82016 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -59,7 +59,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -623,6 +623,9 @@ fi
%attr(0660,tomcat,tomcat) %verify(not size md5 mtime) %{logdir}/catalina.out
%changelog
+* Wed Jan 27 2021 Fedora Release Engineering - 1:9.0.41-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
+
* Wed Dec 09 2020 Hui Wang - 1:0.0.41-1
- Update to 9.0.41
From 2f697945d5351aa9788e1187f642e14bd769982c Mon Sep 17 00:00:00 2001
From: Hui Wang
Date: Wed, 3 Feb 2021 14:51:05 +0800
Subject: [PATCH 037/177] Update to 9.0.43
---
sources | 2 +-
tomcat.spec | 9 ++++++---
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/sources b/sources
index 14b6e11..150d10f 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (apache-tomcat-9.0.41-src.tar.gz) = 094e7cbd2519a4b812a2ca865f92802ece3385a20826c5e29b5f7cda8b9265d01ede6f598999f8aa2f1b04bcaca2e67e3f0132781b3f22007356df49ab6b1838
+SHA512 (apache-tomcat-9.0.43-src.tar.gz) = 8c23f8a371b3ffbc1ab4d5f24be08ecf2c9e6ba466ef36ef97e075bd0f12b1ffc93f63b9ff1def9953b3f791319c7c355a76e7a54061a21d25be37a5dc22da26
diff --git a/tomcat.spec b/tomcat.spec
index 6b82016..f2f91ee 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -31,7 +31,7 @@
%global jspspec 2.3
%global major_version 9
%global minor_version 0
-%global micro_version 41
+%global micro_version 43
%global packdname apache-tomcat-%{version}-src
%global servletspec 4.0
%global elspec 3.0
@@ -59,7 +59,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 2%{?dist}
+Release: 1%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -623,10 +623,13 @@ fi
%attr(0660,tomcat,tomcat) %verify(not size md5 mtime) %{logdir}/catalina.out
%changelog
+* Wed Jan 03 2021 Hui Wang - 1:9.0.43-1
+- Update to 9.0.43
+
* Wed Jan 27 2021 Fedora Release Engineering - 1:9.0.41-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
-* Wed Dec 09 2020 Hui Wang - 1:0.0.41-1
+* Wed Dec 09 2020 Hui Wang - 1:9.0.41-1
- Update to 9.0.41
* Wed Nov 18 2020 Hui Wang - 1:9.0.40-1
From 7b96b1368624449aa2aa699123a91d2aabcb2bfe Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?=
Date: Tue, 2 Mar 2021 16:12:08 +0100
Subject: [PATCH 038/177] Rebuilt for updated systemd-rpm-macros
See https://pagure.io/fesco/issue/2583.
---
tomcat.spec | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/tomcat.spec b/tomcat.spec
index f2f91ee..a6bb221 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -59,7 +59,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -623,6 +623,10 @@ fi
%attr(0660,tomcat,tomcat) %verify(not size md5 mtime) %{logdir}/catalina.out
%changelog
+* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek - 1:9.0.43-2
+- Rebuilt for updated systemd-rpm-macros
+ See https://pagure.io/fesco/issue/2583.
+
* Wed Jan 03 2021 Hui Wang - 1:9.0.43-1
- Update to 9.0.43
From 5eebe0ea54deda31d18eaaeb5b4a66fcb6c0844c Mon Sep 17 00:00:00 2001
From: Hui Wang
Date: Thu, 18 Mar 2021 15:39:57 +0800
Subject: [PATCH 039/177] Update to 9.0.44
---
sources | 2 +-
tomcat.spec | 9 ++++++---
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/sources b/sources
index 150d10f..de38a39 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (apache-tomcat-9.0.43-src.tar.gz) = 8c23f8a371b3ffbc1ab4d5f24be08ecf2c9e6ba466ef36ef97e075bd0f12b1ffc93f63b9ff1def9953b3f791319c7c355a76e7a54061a21d25be37a5dc22da26
+SHA512 (apache-tomcat-9.0.44-src.tar.gz) = 68f6a6edecc0469e21cf062cd4b5aacd2df4903fe98aea052acfc9f725268490d5a6917ac1565f26e15a513afa09814014aed267dc1b5aa92733a51ef52b305f
diff --git a/tomcat.spec b/tomcat.spec
index a6bb221..f2e4291 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -31,7 +31,7 @@
%global jspspec 2.3
%global major_version 9
%global minor_version 0
-%global micro_version 43
+%global micro_version 44
%global packdname apache-tomcat-%{version}-src
%global servletspec 4.0
%global elspec 3.0
@@ -59,7 +59,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 2%{?dist}
+Release: 1%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -623,11 +623,14 @@ fi
%attr(0660,tomcat,tomcat) %verify(not size md5 mtime) %{logdir}/catalina.out
%changelog
+* Thu Mar 18 2021 Hui Wang - 1:9.0.44-1
+- Update to 9.0.44
+
* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek - 1:9.0.43-2
- Rebuilt for updated systemd-rpm-macros
See https://pagure.io/fesco/issue/2583.
-* Wed Jan 03 2021 Hui Wang - 1:9.0.43-1
+* Wed Feb 03 2021 Hui Wang - 1:9.0.43-1
- Update to 9.0.43
* Wed Jan 27 2021 Fedora Release Engineering - 1:9.0.41-2
From b2675ecc09359d9c53f603af9e6ab8b330fc3be9 Mon Sep 17 00:00:00 2001
From: Hui Wang
Date: Thu, 22 Apr 2021 18:27:04 +0800
Subject: [PATCH 040/177] Update to 9.0.45
---
sources | 2 +-
tomcat.spec | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/sources b/sources
index de38a39..fd2a7c6 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (apache-tomcat-9.0.44-src.tar.gz) = 68f6a6edecc0469e21cf062cd4b5aacd2df4903fe98aea052acfc9f725268490d5a6917ac1565f26e15a513afa09814014aed267dc1b5aa92733a51ef52b305f
+SHA512 (apache-tomcat-9.0.45-src.tar.gz) = e3edfd6ab9e3ddf6a15f63a4e11f5237e03d7cacdec11805f4a901bd325c0edeca1ee0b62bee92d53e521af0a9d5a7b10ce12a8262a57fd7faa69d93ca1c066e
diff --git a/tomcat.spec b/tomcat.spec
index f2e4291..e8db2bd 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -31,7 +31,7 @@
%global jspspec 2.3
%global major_version 9
%global minor_version 0
-%global micro_version 44
+%global micro_version 45
%global packdname apache-tomcat-%{version}-src
%global servletspec 4.0
%global elspec 3.0
@@ -623,6 +623,9 @@ fi
%attr(0660,tomcat,tomcat) %verify(not size md5 mtime) %{logdir}/catalina.out
%changelog
+* Thu Apr 22 2021 Hui Wang - 1:9.0.45-1
+- Update to 9.0.45
+
* Thu Mar 18 2021 Hui Wang - 1:9.0.44-1
- Update to 9.0.44
From 8db0343ee9b0b10b669c602bb23264bc2af42816 Mon Sep 17 00:00:00 2001
From: Coty Sutherland
Date: Thu, 3 Jun 2021 14:56:15 -0400
Subject: [PATCH 041/177] Remove examples webapps from subpackage
---
tomcat.spec | 56 +++++++++--------------------------------------------
1 file changed, 9 insertions(+), 47 deletions(-)
diff --git a/tomcat.spec b/tomcat.spec
index e8db2bd..7fce0f1 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -59,7 +59,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -90,13 +90,8 @@ BuildRequires: ant
BuildRequires: ecj >= 1:4.10
BuildRequires: findutils
BuildRequires: apache-commons-daemon
-BuildRequires: tomcat-taglibs-standard
BuildRequires: java-devel >= 1:1.8.0
-%if 0%{?fedora} >= 27 || 0%{?rhel} > 7
-# add_maven_depmap is deprecated, using javapackages-local for now
-# See https://fedora-java.github.io/howto/latest/#_add_maven_depmap_macro
BuildRequires: javapackages-local
-%endif
BuildRequires: geronimo-jaxrpc
BuildRequires: geronimo-saaj
BuildRequires: aqute-bnd
@@ -194,12 +189,11 @@ Obsoletes: %{name}-el-2.2-api
Apache Tomcat EL API Implementation Classes.
%package webapps
-Summary: The ROOT and examples web applications for Apache Tomcat
+Summary: The ROOT web application for Apache Tomcat
Requires: %{name} = %{epoch}:%{version}-%{release}
-Requires: tomcat-taglibs-standard >= 0:1.1
%description webapps
-The ROOT and examples web applications for Apache Tomcat.
+The ROOT web application for Apache Tomcat.
%prep
%setup -q -n %{packdname}
@@ -213,9 +207,6 @@ find . -type f \( -name "*.bat" -o -name "*.class" -o -name Thumbs.db -o -name "
%patch3 -p0
%patch4 -p0
-%{__ln_s} $(build-classpath tomcat-taglibs-standard/taglibs-standard-impl) webapps/examples/WEB-INF/lib/jstl.jar
-%{__ln_s} $(build-classpath tomcat-taglibs-standard/taglibs-standard-compat) webapps/examples/WEB-INF/lib/standard.jar
-
%build
export OPT_JAR_LIST="xalan-j2-serializer"
# we don't care about the tarballs and we're going to replace
@@ -249,13 +240,9 @@ export OPT_JAR_LIST="xalan-j2-serializer"
# remove some jars that we'll replace with symlinks later
%{__rm} output/build/bin/commons-daemon.jar output/build/lib/ecj.jar
-pushd output/dist/src/webapps/docs/appdev/sample/src
-%{__mkdir_p} ../web/WEB-INF/classes
-%{javac} -cp ../../../../../../../../output/build/lib/servlet-api.jar -d ../web/WEB-INF/classes mypackage/Hello.java
-pushd ../web
-%{jar} cf ../../../../../../../../output/build/webapps/docs/appdev/sample/sample.war *
-popd
-popd
+ # Remove the example webapps per Apache Tomcat Security Considerations
+ # see https://tomcat.apache.org/tomcat-9.0-doc/security-howto.html
+ %{__rm} -rf output/build/webapps/examples
%install
# build initial path structure
@@ -342,10 +329,6 @@ popd
pushd output/build
%{_bindir}/build-jar-repository lib ecj 2>&1
- # need to use -p here with b-j-r otherwise the examples webapp fails to
- # load with a java.io.IOException
- %{_bindir}/build-jar-repository -p webapps/examples/WEB-INF/lib \
- tomcat-taglibs-standard/taglibs-standard-impl.jar tomcat-taglibs-standard/taglibs-standard-compat.jar 2>&1
popd
pushd ${RPM_BUILD_ROOT}%{libdir}
@@ -369,28 +352,6 @@ pushd ${RPM_BUILD_ROOT}%{homedir}
%{__ln_s} %{workdir} work
popd
-# install sample webapp
-%{__mkdir_p} ${RPM_BUILD_ROOT}%{appdir}/sample
-pushd ${RPM_BUILD_ROOT}%{appdir}/sample
-%{jar} xf ${RPM_BUILD_ROOT}%{appdir}/docs/appdev/sample/sample.war
-popd
-%{__rm} ${RPM_BUILD_ROOT}%{appdir}/docs/appdev/sample/sample.war
-
-# Allow linking for example webapp
-%{__mkdir_p} ${RPM_BUILD_ROOT}%{appdir}/examples/META-INF
-pushd ${RPM_BUILD_ROOT}%{appdir}/examples/META-INF
-echo '' > context.xml
-echo '' >> context.xml
-echo ' ' >> context.xml
-echo '' >> context.xml
-popd
-
-pushd ${RPM_BUILD_ROOT}%{appdir}/examples/WEB-INF/lib
-%{__ln_s} -f $(build-classpath tomcat-taglibs-standard/taglibs-standard-impl) jstl.jar
-%{__ln_s} -f $(build-classpath tomcat-taglibs-standard/taglibs-standard-compat) standard.jar
-popd
-
-
# Install the maven metadata
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_mavenpomdir}
pushd output/dist/src/res/maven
@@ -613,8 +574,6 @@ fi
%files webapps
%defattr(0644,tomcat,tomcat,0755)
%{appdir}/ROOT
-%{appdir}/examples
-%{appdir}/sample
%files jsvc
%defattr(755,root,root,0755)
@@ -623,6 +582,9 @@ fi
%attr(0660,tomcat,tomcat) %verify(not size md5 mtime) %{logdir}/catalina.out
%changelog
+* Thu Jun 03 2021 Coty Sutherland 1:9.0.45-2
+- Remove examples webapps from subpackage
+
* Thu Apr 22 2021 Hui Wang - 1:9.0.45-1
- Update to 9.0.45
From 972b590988e15d6d82db951aa8b14a2ef06e0cc9 Mon Sep 17 00:00:00 2001
From: Coty Sutherland
Date: Thu, 3 Jun 2021 15:45:09 -0400
Subject: [PATCH 042/177] Remove maven artifacts from build as they aren't very
useful
---
tomcat.spec | 103 ++++------------------------------------------------
1 file changed, 8 insertions(+), 95 deletions(-)
diff --git a/tomcat.spec b/tomcat.spec
index 7fce0f1..6458f23 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -53,9 +53,6 @@
%global workdir %{cachedir}/work
%global _systemddir /lib/systemd/system
-# Fedora doesn't seem to have this macro, so we define it if it doesn't exist
-%{!?_mavendepmapfragdir: %global _mavendepmapfragdir /usr/share/maven-metadata}
-
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
@@ -207,6 +204,7 @@ find . -type f \( -name "*.bat" -o -name "*.class" -o -name Thumbs.db -o -name "
%patch3 -p0
%patch4 -p0
+
%build
export OPT_JAR_LIST="xalan-j2-serializer"
# we don't care about the tarballs and we're going to replace
@@ -236,7 +234,7 @@ export OPT_JAR_LIST="xalan-j2-serializer"
-Dosgi-cmpn.jar="$(build-classpath osgi-compendium/osgi.cmpn)" \
-Dversion="%{version}" \
-Dversion.build="%{micro_version}" \
- deploy dist-source
+ deploy
# remove some jars that we'll replace with symlinks later
%{__rm} output/build/bin/commons-daemon.jar output/build/lib/ecj.jar
@@ -337,9 +335,6 @@ pushd ${RPM_BUILD_ROOT}%{libdir}
%{__ln_s} ../../java/%{name}-servlet-%{servletspec}-api.jar .
%{__ln_s} ../../java/%{name}-el-%{elspec}-api.jar .
%{__ln_s} $(build-classpath ecj/ecj) jasper-jdt.jar
-
- # Temporary copy the juli jar here from /usr/share/java/tomcat (for maven depmap)
- %{__cp} -a ${RPM_BUILD_ROOT}%{bindir}/tomcat-juli.jar ./
popd
# symlink to the FHS locations where we've installed things
@@ -352,75 +347,6 @@ pushd ${RPM_BUILD_ROOT}%{homedir}
%{__ln_s} %{workdir} work
popd
-# Install the maven metadata
-%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_mavenpomdir}
-pushd output/dist/src/res/maven
-for pom in *.pom; do
- # fix-up version in all pom files
- sed -i 's/@MAVEN.DEPLOY.VERSION@/%{version}/g' $pom
-done
-
-# we won't install dbcp, juli-adapters and juli-extras pom files
-for libname in annotations-api catalina jasper-el jasper catalina-ha; do
- %{__cp} -a %{name}-$libname.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.%{name}-$libname.pom
- %add_maven_depmap JPP.%{name}-$libname.pom %{name}/$libname.jar -f "tomcat-lib"
-done
-
-# tomcat-util-scan
-%{__cp} -a %{name}-util-scan.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.%{name}-util-scan.pom
-%add_maven_depmap JPP.%{name}-util-scan.pom %{name}/%{name}-util-scan.jar -f "tomcat-lib"
-
-# tomcat-jni
-%{__cp} -a %{name}-jni.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.%{name}-jni.pom
-%add_maven_depmap JPP.%{name}-jni.pom %{name}/%{name}-jni.jar -f "tomcat-lib"
-
-# servlet-api jsp-api and el-api are not in tomcat subdir, since they are widely re-used elsewhere
-%{__cp} -a tomcat-jsp-api.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP-tomcat-jsp-api.pom
-%add_maven_depmap JPP-tomcat-jsp-api.pom tomcat-jsp-api.jar -f "tomcat-jsp-api" -a "org.eclipse.jetty.orbit:javax.servlet.jsp"
-
-%{__cp} -a tomcat-el-api.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP-tomcat-el-api.pom
-%add_maven_depmap JPP-tomcat-el-api.pom tomcat-el-api.jar -f "tomcat-el-api" -a "org.eclipse.jetty.orbit:javax.el"
-
-%{__cp} -a tomcat-servlet-api.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP-tomcat-servlet-api.pom
-# Generate a depmap fragment javax.servlet:servlet-api pointing to
-# tomcat-servlet-3.0-api for backwards compatibility
-# also provide jetty depmap (originally in jetty package, but it's cleaner to have it here
-%add_maven_depmap JPP-tomcat-servlet-api.pom tomcat-servlet-api.jar -f "tomcat-servlet-api"
-
-# replace temporary copy with link
-%{__ln_s} -f $(abs2rel %{bindir}/tomcat-juli.jar %{libdir}) ${RPM_BUILD_ROOT}%{libdir}/
-
-# two special pom where jar files have different names
-%{__cp} -a tomcat-tribes.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.%{name}-catalina-tribes.pom
-%add_maven_depmap JPP.%{name}-catalina-tribes.pom %{name}/catalina-tribes.jar
-
-%{__cp} -a tomcat-coyote.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.%{name}-tomcat-coyote.pom
-%add_maven_depmap JPP.%{name}-tomcat-coyote.pom %{name}/tomcat-coyote.jar
-
-%{__cp} -a tomcat-juli.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.%{name}-tomcat-juli.pom
-%add_maven_depmap JPP.%{name}-tomcat-juli.pom %{name}/tomcat-juli.jar
-
-%{__cp} -a tomcat-api.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.%{name}-tomcat-api.pom
-%add_maven_depmap JPP.%{name}-tomcat-api.pom %{name}/tomcat-api.jar
-
-%{__cp} -a tomcat-util.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.%{name}-tomcat-util.pom
-%add_maven_depmap JPP.%{name}-tomcat-util.pom %{name}/tomcat-util.jar
-
-%{__cp} -a tomcat-jdbc.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.%{name}-tomcat-jdbc.pom
-%add_maven_depmap JPP.%{name}-tomcat-jdbc.pom %{name}/tomcat-jdbc.jar
-
-# tomcat-websocket-api
-%{__cp} -a tomcat-websocket-api.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.%{name}-websocket-api.pom
-%add_maven_depmap JPP.%{name}-websocket-api.pom %{name}/websocket-api.jar
-
-# tomcat-tomcat-websocket
-%{__cp} -a tomcat-websocket.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.%{name}-tomcat-websocket.pom
-%add_maven_depmap JPP.%{name}-tomcat-websocket.pom %{name}/tomcat-websocket.jar
-
-# tomcat-jaspic-api
-%{__cp} -a tomcat-jaspic-api.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.%{name}-jaspic-api.pom
-%add_maven_depmap JPP.%{name}-jaspic-api.pom %{name}/jaspic-api.jar
-
%pre
# add the tomcat user and group
@@ -534,39 +460,24 @@ fi
%files docs-webapp
%{appdir}/docs
-%files jsp-%{jspspec}-api -f output/dist/src/res/maven/.mfiles-tomcat-jsp-api
+%files jsp-%{jspspec}-api
%{_javadir}/%{name}-jsp-%{jspspec}*.jar
-%files lib -f output/dist/src/res/maven/.mfiles-tomcat-lib
+%files lib
%dir %{libdir}
%{libdir}/*.jar
%{_javadir}/*.jar
%{bindir}/tomcat-juli.jar
-%{_mavenpomdir}/JPP.%{name}-annotations-api.pom
-%{_mavenpomdir}/JPP.%{name}-catalina-ha.pom
-%{_mavenpomdir}/JPP.%{name}-catalina-tribes.pom
-%{_mavenpomdir}/JPP.%{name}-catalina.pom
-%{_mavenpomdir}/JPP.%{name}-jasper-el.pom
-%{_mavenpomdir}/JPP.%{name}-jasper.pom
-%{_mavenpomdir}/JPP.%{name}-tomcat-api.pom
-%{_mavenpomdir}/JPP.%{name}-tomcat-juli.pom
-%{_mavenpomdir}/JPP.%{name}-tomcat-coyote.pom
-%{_mavenpomdir}/JPP.%{name}-tomcat-util.pom
-%{_mavenpomdir}/JPP.%{name}-tomcat-jdbc.pom
-%{_mavenpomdir}/JPP.%{name}-websocket-api.pom
-%{_mavenpomdir}/JPP.%{name}-tomcat-websocket.pom
-%{_mavenpomdir}/JPP.%{name}-jaspic-api.pom
-%{_datadir}/maven-metadata/tomcat.xml
%exclude %{libdir}/%{name}-el-%{elspec}-api.jar
%exclude %{_javadir}/%{name}-servlet-%{servletspec}*.jar
%exclude %{_javadir}/%{name}-el-%{elspec}-api.jar
%exclude %{_javadir}/%{name}-jsp-%{jspspec}*.jar
-%files servlet-%{servletspec}-api -f output/dist/src/res/maven/.mfiles-tomcat-servlet-api
+%files servlet-%{servletspec}-api
%doc LICENSE
%{_javadir}/%{name}-servlet-%{servletspec}*.jar
-%files el-%{elspec}-api -f output/dist/src/res/maven/.mfiles-tomcat-el-api
+%files el-%{elspec}-api
%doc LICENSE
%{_javadir}/%{name}-el-%{elspec}-api.jar
%{libdir}/%{name}-el-%{elspec}-api.jar
@@ -584,6 +495,8 @@ fi
%changelog
* Thu Jun 03 2021 Coty Sutherland 1:9.0.45-2
- Remove examples webapps from subpackage
+- Updates to javapackages-local removed %%add_maven_depmap which broke the build,
+ so I removed the maven artifacts as they aren't very useful anyway
* Thu Apr 22 2021 Hui Wang - 1:9.0.45-1
- Update to 9.0.45
From c363ab5b505a6b50450a59897c13ffed530f4cb2 Mon Sep 17 00:00:00 2001
From: Coty Sutherland
Date: Thu, 3 Jun 2021 16:01:50 -0400
Subject: [PATCH 043/177] Drop JSVC support as it's not very useful these days
---
tomcat-9.0-jsvc.service | 22 ----------------------
tomcat-9.0.logrotate | 8 --------
tomcat.spec | 29 ++---------------------------
3 files changed, 2 insertions(+), 57 deletions(-)
delete mode 100644 tomcat-9.0-jsvc.service
delete mode 100644 tomcat-9.0.logrotate
diff --git a/tomcat-9.0-jsvc.service b/tomcat-9.0-jsvc.service
deleted file mode 100644
index f480324..0000000
--- a/tomcat-9.0-jsvc.service
+++ /dev/null
@@ -1,22 +0,0 @@
-# Systemd unit file for tomcat
-#
-# To create clones of this service:
-# 1) By default SERVICE_NAME=tomcat. When cloned, the value must be defined
-# before tomcat-sysd is called.
-# 2) Create /etc/sysconfig/${SERVICE_NAME} from /etc/sysconfig/tomcat
-# to override tomcat defaults
-
-[Unit]
-Description=Apache Tomcat Web Application Container JSVC wrapper
-After=syslog.target network.target
-
-[Service]
-Type=simple
-EnvironmentFile=/etc/tomcat/tomcat.conf
-Environment="NAME=" "USE_JSVC=true"
-EnvironmentFile=-/etc/sysconfig/tomcat
-ExecStart=/usr/libexec/tomcat/server start
-ExecStop=/usr/libexec/tomcat/server stop
-
-[Install]
-WantedBy=multi-user.target
diff --git a/tomcat-9.0.logrotate b/tomcat-9.0.logrotate
deleted file mode 100644
index a87b4c0..0000000
--- a/tomcat-9.0.logrotate
+++ /dev/null
@@ -1,8 +0,0 @@
-@@@TCLOG@@@/catalina.out {
- copytruncate
- weekly
- rotate 52
- compress
- missingok
- create 0644 tomcat tomcat
-}
diff --git a/tomcat.spec b/tomcat.spec
index 6458f23..4153302 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -65,11 +65,9 @@ Source0: http://www.apache.org/dist/tomcat/tomcat-%{major_version}/v%{vers
Source1: %{name}-%{major_version}.%{minor_version}.conf
Source3: %{name}-%{major_version}.%{minor_version}.sysconfig
Source4: %{name}-%{major_version}.%{minor_version}.wrapper
-Source5: %{name}-%{major_version}.%{minor_version}.logrotate
Source6: %{name}-%{major_version}.%{minor_version}-digest.script
Source7: %{name}-%{major_version}.%{minor_version}-tool-wrapper.script
Source11: %{name}-%{major_version}.%{minor_version}.service
-Source20: %{name}-%{major_version}.%{minor_version}-jsvc.service
Source21: tomcat-functions
Source30: tomcat-preamble
Source31: tomcat-server
@@ -86,7 +84,6 @@ BuildArch: noarch
BuildRequires: ant
BuildRequires: ecj >= 1:4.10
BuildRequires: findutils
-BuildRequires: apache-commons-daemon
BuildRequires: java-devel >= 1:1.8.0
BuildRequires: javapackages-local
BuildRequires: geronimo-jaxrpc
@@ -96,7 +93,6 @@ BuildRequires: aqute-bndlib
BuildRequires: wsdl4j
BuildRequires: systemd
-Requires: apache-commons-daemon
Requires: java-headless >= 1:1.8.0
Requires: javapackages-tools
Requires: procps
@@ -136,16 +132,6 @@ Requires: %{name} = %{epoch}:%{version}-%{release}
%description docs-webapp
The docs web application for Apache Tomcat.
-%package jsvc
-Summary: Apache jsvc wrapper for Apache Tomcat as separate service
-Requires: %{name} = %{epoch}:%{version}-%{release}
-Requires: apache-commons-daemon-jsvc
-
-%description jsvc
-Systemd service to start tomcat with jsvc,
-which allows tomcat to perform some privileged operations
-(e.g. bind to a port < 1024) and then switch identity to a non-privileged user.
-
%package jsp-%{jspspec}-api
Summary: Apache Tomcat JavaServer Pages v%{jspspec} API Implementation Classes
Provides: jsp = %{jspspec}
@@ -215,7 +201,7 @@ export OPT_JAR_LIST="xalan-j2-serializer"
# who needs a build.properties file anyway
%{ant} -Dbase.path="." \
-Dbuild.compiler="modern" \
- -Dcommons-daemon.jar="$(build-classpath apache-commons-daemon)" \
+ -Dcommons-daemon.jar="HACK" \
-Dcommons-daemon.native.src.tgz="HACK" \
-Djdt.jar="$(build-classpath ecj/ecj)" \
-Dtomcat-native.tar.gz="HACK" \
@@ -247,7 +233,6 @@ export OPT_JAR_LIST="xalan-j2-serializer"
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_bindir}
%{__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}/sysconfig
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{appdir}
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{bindir}
@@ -257,7 +242,6 @@ export OPT_JAR_LIST="xalan-j2-serializer"
/bin/echo "Place your custom *.conf files here. Shell expansion is supported." > ${RPM_BUILD_ROOT}%{confdir}/conf.d/README
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{libdir}
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{logdir}
-/bin/touch ${RPM_BUILD_ROOT}%{logdir}/catalina.out
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{_localstatedir}/lib/tomcats
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{homedir}
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{tempdir}
@@ -286,10 +270,6 @@ popd
${RPM_BUILD_ROOT}%{_sbindir}/%{name}
%{__install} -m 0644 %{SOURCE11} \
${RPM_BUILD_ROOT}%{_unitdir}/%{name}.service
-%{__install} -m 0644 %{SOURCE20} \
- ${RPM_BUILD_ROOT}%{_unitdir}/%{name}-jsvc.service
-%{__sed} -e "s|\@\@\@TCLOG\@\@\@|%{logdir}|g" %{SOURCE5} \
- > ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/%{name}
%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
-e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
-e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE6} \
@@ -486,17 +466,12 @@ fi
%defattr(0644,tomcat,tomcat,0755)
%{appdir}/ROOT
-%files jsvc
-%defattr(755,root,root,0755)
-%attr(0644,root,root) %{_unitdir}/%{name}-jsvc.service
-%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
-%attr(0660,tomcat,tomcat) %verify(not size md5 mtime) %{logdir}/catalina.out
-
%changelog
* Thu Jun 03 2021 Coty Sutherland 1:9.0.45-2
- Remove examples webapps from subpackage
- Updates to javapackages-local removed %%add_maven_depmap which broke the build,
so I removed the maven artifacts as they aren't very useful anyway
+- Drop JSVC support as it's not very useful these days
* Thu Apr 22 2021 Hui Wang - 1:9.0.45-1
- Update to 9.0.45
From 395ca77492ffeca15ffa41190b57935d1c6a37fc Mon Sep 17 00:00:00 2001
From: Coty Sutherland
Date: Thu, 3 Jun 2021 16:21:37 -0400
Subject: [PATCH 044/177] Drop geronimo-saaj as it's no longer required
---
tomcat.spec | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tomcat.spec b/tomcat.spec
index 4153302..d56d7dc 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -87,7 +87,6 @@ BuildRequires: findutils
BuildRequires: java-devel >= 1:1.8.0
BuildRequires: javapackages-local
BuildRequires: geronimo-jaxrpc
-BuildRequires: geronimo-saaj
BuildRequires: aqute-bnd
BuildRequires: aqute-bndlib
BuildRequires: wsdl4j
@@ -210,7 +209,6 @@ export OPT_JAR_LIST="xalan-j2-serializer"
-Dnsis.exe="HACK" \
-Djaxrpc-lib.jar="$(build-classpath jaxrpc)" \
-Dwsdl4j-lib.jar="$(build-classpath wsdl4j)" \
- -Dsaaj-api.jar="$(build-classpath geronimo-saaj)" \
-Dbnd.jar="$(build-classpath aqute-bnd/biz.aQute.bnd)" \
-Dbndlib.jar="$(build-classpath aqute-bnd/biz.aQute.bndlib)" \
-Dbndlibg.jar="$(build-classpath aqute-bnd/aQute.libg)" \
@@ -472,6 +470,7 @@ fi
- Updates to javapackages-local removed %%add_maven_depmap which broke the build,
so I removed the maven artifacts as they aren't very useful anyway
- Drop JSVC support as it's not very useful these days
+- Drop geronimo-saaj as it's no longer required
* Thu Apr 22 2021 Hui Wang - 1:9.0.45-1
- Update to 9.0.45
From 66b528dc613d98d0184d26b993af387af2e0061e Mon Sep 17 00:00:00 2001
From: Coty Sutherland
Date: Fri, 4 Jun 2021 07:22:37 -0400
Subject: [PATCH 045/177] Drop geronimo-jaxrpc, which provided the webservices
naming factory resources that are generally unused
---
tomcat.spec | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/tomcat.spec b/tomcat.spec
index d56d7dc..5308ba2 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -86,7 +86,6 @@ BuildRequires: ecj >= 1:4.10
BuildRequires: findutils
BuildRequires: java-devel >= 1:1.8.0
BuildRequires: javapackages-local
-BuildRequires: geronimo-jaxrpc
BuildRequires: aqute-bnd
BuildRequires: aqute-bndlib
BuildRequires: wsdl4j
@@ -189,6 +188,9 @@ find . -type f \( -name "*.bat" -o -name "*.class" -o -name Thumbs.db -o -name "
%patch3 -p0
%patch4 -p0
+# Remove webservices naming resources as it's generally unused
+%{__rm} -rf java/org/apache/naming/factory/webservices
+
%build
export OPT_JAR_LIST="xalan-j2-serializer"
@@ -207,7 +209,7 @@ export OPT_JAR_LIST="xalan-j2-serializer"
-Dtomcat-native.home="." \
-Dcommons-daemon.native.win.mgr.exe="HACK" \
-Dnsis.exe="HACK" \
- -Djaxrpc-lib.jar="$(build-classpath jaxrpc)" \
+ -Djaxrpc-lib.jar="HACK" \
-Dwsdl4j-lib.jar="$(build-classpath wsdl4j)" \
-Dbnd.jar="$(build-classpath aqute-bnd/biz.aQute.bnd)" \
-Dbndlib.jar="$(build-classpath aqute-bnd/biz.aQute.bndlib)" \
@@ -471,6 +473,7 @@ fi
so I removed the maven artifacts as they aren't very useful anyway
- Drop JSVC support as it's not very useful these days
- Drop geronimo-saaj as it's no longer required
+- Drop geronimo-jaxrpc, which provided the webservices naming factory resources that are generally unused
* Thu Apr 22 2021 Hui Wang - 1:9.0.45-1
- Update to 9.0.45
From da829a92c9a5ff9cc097d278b2b84e7106ce9175 Mon Sep 17 00:00:00 2001
From: Coty Sutherland
Date: Fri, 4 Jun 2021 07:23:54 -0400
Subject: [PATCH 046/177] Increment release number
---
tomcat.spec | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tomcat.spec b/tomcat.spec
index 5308ba2..4fd3e6d 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -56,7 +56,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -467,13 +467,15 @@ fi
%{appdir}/ROOT
%changelog
+* Fri Jun 04 2021 Coty Sutherland 1:9.0.45-3
+- Drop geronimo-jaxrpc, which provided the webservices naming factory resources that are generally unused
+
* Thu Jun 03 2021 Coty Sutherland 1:9.0.45-2
- Remove examples webapps from subpackage
- Updates to javapackages-local removed %%add_maven_depmap which broke the build,
so I removed the maven artifacts as they aren't very useful anyway
- Drop JSVC support as it's not very useful these days
- Drop geronimo-saaj as it's no longer required
-- Drop geronimo-jaxrpc, which provided the webservices naming factory resources that are generally unused
* Thu Apr 22 2021 Hui Wang - 1:9.0.45-1
- Update to 9.0.45
From 7d7781ca2404b56d3b0a455e550b072cccbee980 Mon Sep 17 00:00:00 2001
From: Coty Sutherland
Date: Fri, 4 Jun 2021 10:29:44 -0400
Subject: [PATCH 047/177] Add back logrotate config file per devel list request
---
tomcat-9.0.logrotate | 11 +++++++++++
tomcat.spec | 10 +++++++++-
2 files changed, 20 insertions(+), 1 deletion(-)
create mode 100644 tomcat-9.0.logrotate
diff --git a/tomcat-9.0.logrotate b/tomcat-9.0.logrotate
new file mode 100644
index 0000000..082092a
--- /dev/null
+++ b/tomcat-9.0.logrotate
@@ -0,0 +1,11 @@
+# This is an example config only and is disabled by default
+# If you wish to use it, you'll need to update /etc/tomcat/logging.properties
+# to prevent catalina*.log from being rotated by Tomcat
+@@@TCLOG@@@/catalina*.log {
+ copytruncate
+ weekly
+ rotate 52
+ compress
+ missingok
+ create 0644 tomcat tomcat
+}
diff --git a/tomcat.spec b/tomcat.spec
index 4fd3e6d..3c95116 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -56,7 +56,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -65,6 +65,7 @@ Source0: http://www.apache.org/dist/tomcat/tomcat-%{major_version}/v%{vers
Source1: %{name}-%{major_version}.%{minor_version}.conf
Source3: %{name}-%{major_version}.%{minor_version}.sysconfig
Source4: %{name}-%{major_version}.%{minor_version}.wrapper
+Source5: %{name}-%{major_version}.%{minor_version}.logrotate
Source6: %{name}-%{major_version}.%{minor_version}-digest.script
Source7: %{name}-%{major_version}.%{minor_version}-tool-wrapper.script
Source11: %{name}-%{major_version}.%{minor_version}.service
@@ -233,6 +234,7 @@ export OPT_JAR_LIST="xalan-j2-serializer"
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_bindir}
%{__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}/sysconfig
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{appdir}
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{bindir}
@@ -270,6 +272,8 @@ popd
${RPM_BUILD_ROOT}%{_sbindir}/%{name}
%{__install} -m 0644 %{SOURCE11} \
${RPM_BUILD_ROOT}%{_unitdir}/%{name}.service
+%{__sed} -e "s|\@\@\@TCLOG\@\@\@|%{logdir}|g" %{SOURCE5} \
+ > ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/%{name}.disabled
%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
-e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
-e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE6} \
@@ -395,6 +399,7 @@ fi
%attr(0755,root,root) %{_libexecdir}/%{name}/preamble
%attr(0755,root,root) %{_libexecdir}/%{name}/server
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/%{name}
+%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}.disabled
%attr(0755,root,tomcat) %dir %{basedir}
%attr(0755,root,tomcat) %dir %{confdir}
@@ -467,6 +472,9 @@ fi
%{appdir}/ROOT
%changelog
+* Fri Jun 04 2021 Coty Sutherland 1:9.0.45-4
+- Add back logrotate config file per devel list request
+
* Fri Jun 04 2021 Coty Sutherland 1:9.0.45-3
- Drop geronimo-jaxrpc, which provided the webservices naming factory resources that are generally unused
From de863ffa6657ae4fb789d2ece41abe9f2413ea12 Mon Sep 17 00:00:00 2001
From: Coty Sutherland
Date: Sat, 5 Jun 2021 20:23:34 -0400
Subject: [PATCH 048/177] Add mvn virtual provides back for the servlet, el,
and jsp spec impls
---
tomcat.spec | 97 +++++++++++++++++++++++++++++++++--------------------
1 file changed, 60 insertions(+), 37 deletions(-)
diff --git a/tomcat.spec b/tomcat.spec
index 3c95116..ae4a3fe 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -192,42 +192,50 @@ find . -type f \( -name "*.bat" -o -name "*.class" -o -name Thumbs.db -o -name "
# Remove webservices naming resources as it's generally unused
%{__rm} -rf java/org/apache/naming/factory/webservices
+# Configure maven files
+%mvn_package ":tomcat-el-api" tomcat-el-api
+%mvn_alias "org.apache.tomcat:tomcat-el-api" "org.eclipse.jetty.orbit:javax.el"
+%mvn_package ":tomcat-jsp-api" tomcat-jsp-api
+%mvn_alias "org.apache.tomcat:tomcat-jsp-api" "org.eclipse.jetty.orbit:javax.servlet.jsp"
+%mvn_package ":tomcat-servlet-api" tomcat-servlet-api
+
%build
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
- touch HACK
+# 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
+touch HACK
- # who needs a build.properties file anyway
- %{ant} -Dbase.path="." \
- -Dbuild.compiler="modern" \
- -Dcommons-daemon.jar="HACK" \
- -Dcommons-daemon.native.src.tgz="HACK" \
- -Djdt.jar="$(build-classpath ecj/ecj)" \
- -Dtomcat-native.tar.gz="HACK" \
- -Dtomcat-native.home="." \
- -Dcommons-daemon.native.win.mgr.exe="HACK" \
- -Dnsis.exe="HACK" \
- -Djaxrpc-lib.jar="HACK" \
- -Dwsdl4j-lib.jar="$(build-classpath wsdl4j)" \
- -Dbnd.jar="$(build-classpath aqute-bnd/biz.aQute.bnd)" \
- -Dbndlib.jar="$(build-classpath aqute-bnd/biz.aQute.bndlib)" \
- -Dbndlibg.jar="$(build-classpath aqute-bnd/aQute.libg)" \
- -Dbndannotation.jar="$(build-classpath aqute-bnd/biz.aQute.bnd.annotation)" \
- -Dosgi-annotations.jar="$(build-classpath aqute-bnd/biz.aQute.bnd.annotation)" \
- -Dslf4j-api.jar="$(build-classpath slf4j/slf4j-api)" \
- -Dosgi-cmpn.jar="$(build-classpath osgi-compendium/osgi.cmpn)" \
- -Dversion="%{version}" \
- -Dversion.build="%{micro_version}" \
- deploy
+# who needs a build.properties file anyway
+%{ant} -Dbase.path="." \
+ -Dbuild.compiler="modern" \
+ -Dcommons-daemon.jar="HACK" \
+ -Dcommons-daemon.native.src.tgz="HACK" \
+ -Djdt.jar="$(build-classpath ecj/ecj)" \
+ -Dtomcat-native.tar.gz="HACK" \
+ -Dtomcat-native.home="." \
+ -Dcommons-daemon.native.win.mgr.exe="HACK" \
+ -Dnsis.exe="HACK" \
+ -Djaxrpc-lib.jar="HACK" \
+ -Dwsdl4j-lib.jar="$(build-classpath wsdl4j)" \
+ -Dbnd.jar="$(build-classpath aqute-bnd/biz.aQute.bnd)" \
+ -Dbndlib.jar="$(build-classpath aqute-bnd/biz.aQute.bndlib)" \
+ -Dbndlibg.jar="$(build-classpath aqute-bnd/aQute.libg)" \
+ -Dbndannotation.jar="$(build-classpath aqute-bnd/biz.aQute.bnd.annotation)" \
+ -Dosgi-annotations.jar="$(build-classpath aqute-bnd/biz.aQute.bnd.annotation)" \
+ -Dslf4j-api.jar="$(build-classpath slf4j/slf4j-api)" \
+ -Dosgi-cmpn.jar="$(build-classpath osgi-compendium/osgi.cmpn)" \
+ -Dversion="%{version}" \
+ -Dversion.build="%{micro_version}" \
+ deploy
+
+# remove some jars that we'll replace with symlinks later
+%{__rm} output/build/bin/commons-daemon.jar output/build/lib/ecj.jar
+# Remove the example webapps per Apache Tomcat Security Considerations
+# see https://tomcat.apache.org/tomcat-9.0-doc/security-howto.html
+%{__rm} -rf output/build/webapps/examples
- # remove some jars that we'll replace with symlinks later
- %{__rm} output/build/bin/commons-daemon.jar output/build/lib/ecj.jar
- # Remove the example webapps per Apache Tomcat Security Considerations
- # see https://tomcat.apache.org/tomcat-9.0-doc/security-howto.html
- %{__rm} -rf output/build/webapps/examples
%install
# build initial path structure
@@ -331,6 +339,20 @@ pushd ${RPM_BUILD_ROOT}%{homedir}
%{__ln_s} %{workdir} work
popd
+# Install the maven metadata for the spec impl artifacts as other projects use them
+#%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_mavenpomdir}
+pushd res/maven
+ for pom in tomcat-el-api.pom tomcat-jsp-api.pom tomcat-servlet-api.pom; do
+ # fix-up version in all pom files
+ sed -i 's/@MAVEN.DEPLOY.VERSION@/%{version}/g' $pom
+ done
+popd
+
+# Configure and install maven artifacts
+%mvn_artifact res/maven/tomcat-el-api.pom output/build/lib/el-api.jar
+%mvn_artifact res/maven/tomcat-jsp-api.pom output/build/lib/jsp-api.jar
+%mvn_artifact res/maven/tomcat-servlet-api.pom output/build/lib/servlet-api.jar
+%mvn_install
%pre
# add the tomcat user and group
@@ -445,9 +467,6 @@ fi
%files docs-webapp
%{appdir}/docs
-%files jsp-%{jspspec}-api
-%{_javadir}/%{name}-jsp-%{jspspec}*.jar
-
%files lib
%dir %{libdir}
%{libdir}/*.jar
@@ -458,11 +477,14 @@ fi
%exclude %{_javadir}/%{name}-el-%{elspec}-api.jar
%exclude %{_javadir}/%{name}-jsp-%{jspspec}*.jar
-%files servlet-%{servletspec}-api
+%files jsp-%{jspspec}-api -f .mfiles-tomcat-jsp-api
+%{_javadir}/%{name}-jsp-%{jspspec}*.jar
+
+%files servlet-%{servletspec}-api -f .mfiles-tomcat-servlet-api
%doc LICENSE
%{_javadir}/%{name}-servlet-%{servletspec}*.jar
-%files el-%{elspec}-api
+%files el-%{elspec}-api -f .mfiles-tomcat-el-api
%doc LICENSE
%{_javadir}/%{name}-el-%{elspec}-api.jar
%{libdir}/%{name}-el-%{elspec}-api.jar
@@ -472,8 +494,9 @@ fi
%{appdir}/ROOT
%changelog
-* Fri Jun 04 2021 Coty Sutherland 1:9.0.45-4
+* Sat Jun 05 2021 Coty Sutherland 1:9.0.45-4
- Add back logrotate config file per devel list request
+- Add mvn virtual provides back for the servlet, el, and jsp spec impls
* Fri Jun 04 2021 Coty Sutherland 1:9.0.45-3
- Drop geronimo-jaxrpc, which provided the webservices naming factory resources that are generally unused
From fde9af69056bae4ace1b5fafe18bc1090917f684 Mon Sep 17 00:00:00 2001
From: Hui Wang
Date: Wed, 7 Jul 2021 14:16:09 +0800
Subject: [PATCH 049/177] Update to 9.0.50
---
rhbz-1857043.patch | 24 ++++++++++++------------
tomcat-9.0-JDTCompiler.patch | 23 +++++++++++++++++++++++
tomcat-9.0-catalina-policy.patch | 20 +++++++++++++-------
tomcat.spec | 9 +++++++--
4 files changed, 55 insertions(+), 21 deletions(-)
create mode 100644 tomcat-9.0-JDTCompiler.patch
diff --git a/rhbz-1857043.patch b/rhbz-1857043.patch
index 3730769..7d68c42 100644
--- a/rhbz-1857043.patch
+++ b/rhbz-1857043.patch
@@ -1,16 +1,16 @@
diff -up ./build.xml.orig ./build.xml
---- ./build.xml.orig 2020-07-24 10:24:08.313796968 -0400
-+++ ./build.xml 2020-07-24 10:24:38.027427445 -0400
-@@ -757,7 +757,7 @@
+--- build.xml.orig 2021-07-07 10:53:55.493742841 +0800
++++ build.xml 2021-07-07 11:09:43.107968515 +0800
+@@ -1030,7 +1030,7 @@
filesDir="${tomcat.classes}"
filesId="files.annotations-api"
manifest="${tomcat.manifests}/annotations-api.jar.manifest"
- addOSGi="true" />
+ addOSGi="false" />
-
+
+ addOSGi="false" />
-
+
1:9.0.50-1
+- Update to 9.0.50
+
* Sat Jun 05 2021 Coty Sutherland 1:9.0.45-4
- Add back logrotate config file per devel list request
- Add mvn virtual provides back for the servlet, el, and jsp spec impls
From fd93ca49bb21e8f857897a2e5a6c1220822525ad Mon Sep 17 00:00:00 2001
From: Hui Wang
Date: Wed, 7 Jul 2021 14:22:35 +0800
Subject: [PATCH 050/177] 9.0.50 source
---
sources | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sources b/sources
index fd2a7c6..6e8caa6 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (apache-tomcat-9.0.45-src.tar.gz) = e3edfd6ab9e3ddf6a15f63a4e11f5237e03d7cacdec11805f4a901bd325c0edeca1ee0b62bee92d53e521af0a9d5a7b10ce12a8262a57fd7faa69d93ca1c066e
+SHA512 (apache-tomcat-9.0.50-src.tar.gz) = 1032d2d5c342fb495b76426fdc301e0e5546815e709e604061d7aa2cdab19bcd376adc957fd25dee1d574306186eafd2e9d24140dd5e725b130128592cac47a2
From 7a01193a3924eac36044e5a16dcc5e5daf31dc99 Mon Sep 17 00:00:00 2001
From: Fedora Release Engineering
Date: Fri, 23 Jul 2021 19:26:22 +0000
Subject: [PATCH 051/177] - Rebuilt for
https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering
---
tomcat.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tomcat.spec b/tomcat.spec
index 53f945f..bced38a 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -56,7 +56,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -496,6 +496,9 @@ fi
%{appdir}/ROOT
%changelog
+* Fri Jul 23 2021 Fedora Release Engineering - 1:9.0.50-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
+
* Tue Jul 06 2021 Hui Wang 1:9.0.50-1
- Update to 9.0.50
From 2c4c2c1d936d4bf2ad1543bd0f7ff6c3507841f8 Mon Sep 17 00:00:00 2001
From: Hui Wang
Date: Wed, 18 Aug 2021 15:52:49 +0800
Subject: [PATCH 052/177] Update to 9.0.52
---
sources | 2 +-
tomcat.spec | 7 +++++--
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/sources b/sources
index 6e8caa6..c659d36 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (apache-tomcat-9.0.50-src.tar.gz) = 1032d2d5c342fb495b76426fdc301e0e5546815e709e604061d7aa2cdab19bcd376adc957fd25dee1d574306186eafd2e9d24140dd5e725b130128592cac47a2
+SHA512 (apache-tomcat-9.0.52-src.tar.gz) = 8b1817c171fa49e5568fb24a72b6b7533c5eb3ddd6d232b78e67186574f70bb311bbef9a58af047caa14bdae57c27c6a3df721c4583072740fec0a3863bb068d
diff --git a/tomcat.spec b/tomcat.spec
index bced38a..2e9ea9e 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -31,7 +31,7 @@
%global jspspec 2.3
%global major_version 9
%global minor_version 0
-%global micro_version 50
+%global micro_version 52
%global packdname apache-tomcat-%{version}-src
%global servletspec 4.0
%global elspec 3.0
@@ -56,7 +56,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 2%{?dist}
+Release: 1%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -496,6 +496,9 @@ fi
%{appdir}/ROOT
%changelog
+* Wed Aug 18 2021 Hui Wang 1:9.0.52-1
+- Update to 9.0.52
+
* Fri Jul 23 2021 Fedora Release Engineering - 1:9.0.50-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
From 5bcc834dc35a70706738b1dc1a4273593de27b45 Mon Sep 17 00:00:00 2001
From: Hui Wang
Date: Thu, 16 Sep 2021 17:58:33 +0800
Subject: [PATCH 053/177] Update to 9.0.53
---
sources | 2 +-
tomcat.spec | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/sources b/sources
index c659d36..aaa42c4 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (apache-tomcat-9.0.52-src.tar.gz) = 8b1817c171fa49e5568fb24a72b6b7533c5eb3ddd6d232b78e67186574f70bb311bbef9a58af047caa14bdae57c27c6a3df721c4583072740fec0a3863bb068d
+SHA512 (apache-tomcat-9.0.53-src.tar.gz) = f72b9abff6af24d486a1e3dd3cd8b6cb44feab811efb74a3469502676e661bdb4cfed0fe44f38b7f5a6f74a6776ae1c0c732504d26609b88280e0b0da6710b27
diff --git a/tomcat.spec b/tomcat.spec
index 2e9ea9e..d22fd4a 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -31,7 +31,7 @@
%global jspspec 2.3
%global major_version 9
%global minor_version 0
-%global micro_version 52
+%global micro_version 53
%global packdname apache-tomcat-%{version}-src
%global servletspec 4.0
%global elspec 3.0
@@ -496,6 +496,9 @@ fi
%{appdir}/ROOT
%changelog
+* Thu Sep 16 2021 Hui Wang 1:9.0.53-1
+- Update to 9.0.53
+
* Wed Aug 18 2021 Hui Wang 1:9.0.52-1
- Update to 9.0.52
From bb861ab8fa9f6884a8cbb40b4dcb5415ac6c2fbf Mon Sep 17 00:00:00 2001
From: Hui Wang
Date: Tue, 12 Oct 2021 14:45:31 +0800
Subject: [PATCH 054/177] Update to 9.0.54
---
sources | 2 +-
tomcat.spec | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/sources b/sources
index aaa42c4..99f5bbd 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (apache-tomcat-9.0.53-src.tar.gz) = f72b9abff6af24d486a1e3dd3cd8b6cb44feab811efb74a3469502676e661bdb4cfed0fe44f38b7f5a6f74a6776ae1c0c732504d26609b88280e0b0da6710b27
+SHA512 (apache-tomcat-9.0.54-src.tar.gz) = e9d532a966aa8e7c2fcf28e4ecb0a618a8be4dacf8dc579a407483de86ef969383e3662fba07be629bfb8fbd85c041a5a2f1dd8875cc309b69a147b37c58974b
diff --git a/tomcat.spec b/tomcat.spec
index d22fd4a..fe5e9a6 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -31,7 +31,7 @@
%global jspspec 2.3
%global major_version 9
%global minor_version 0
-%global micro_version 53
+%global micro_version 54
%global packdname apache-tomcat-%{version}-src
%global servletspec 4.0
%global elspec 3.0
@@ -496,6 +496,9 @@ fi
%{appdir}/ROOT
%changelog
+* Tue Oct 12 2021 Hui Wang 1:9.0.54-1
+- Update to 9.0.54
+
* Thu Sep 16 2021 Hui Wang 1:9.0.53-1
- Update to 9.0.53
From 1eeff668b547b170ccbd23b58b8fa43cb22fb10c Mon Sep 17 00:00:00 2001
From: Hui Wang
Date: Tue, 23 Nov 2021 14:57:50 +0800
Subject: [PATCH 055/177] Update to 9.0.55
---
sources | 2 +-
tomcat.spec | 19 +++++++++++--------
2 files changed, 12 insertions(+), 9 deletions(-)
diff --git a/sources b/sources
index 99f5bbd..f5c9c8e 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (apache-tomcat-9.0.54-src.tar.gz) = e9d532a966aa8e7c2fcf28e4ecb0a618a8be4dacf8dc579a407483de86ef969383e3662fba07be629bfb8fbd85c041a5a2f1dd8875cc309b69a147b37c58974b
+SHA512 (apache-tomcat-9.0.55-src.tar.gz) = abfb1824387045fc6b5a5077179149e6c348c0deae933e8766c60cbf92466f5e8883ebe4cc260c23ece6d3975ab2e25f7cdde58f9dd83dfdd22cab33c967b28c
diff --git a/tomcat.spec b/tomcat.spec
index fe5e9a6..7d59ec9 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -31,7 +31,7 @@
%global jspspec 2.3
%global major_version 9
%global minor_version 0
-%global micro_version 54
+%global micro_version 55
%global packdname apache-tomcat-%{version}-src
%global servletspec 4.0
%global elspec 3.0
@@ -496,29 +496,32 @@ fi
%{appdir}/ROOT
%changelog
-* Tue Oct 12 2021 Hui Wang 1:9.0.54-1
+* Tue Oct 12 2021 Hui Wang - 1:9.0.55-1
+- Update to 9.0.55
+
+* Tue Oct 12 2021 Hui Wang - 1:9.0.54-1
- Update to 9.0.54
-* Thu Sep 16 2021 Hui Wang 1:9.0.53-1
+* Thu Sep 16 2021 Hui Wang - 1:9.0.53-1
- Update to 9.0.53
-* Wed Aug 18 2021 Hui Wang 1:9.0.52-1
+* Wed Aug 18 2021 Hui Wang - 1:9.0.52-1
- Update to 9.0.52
* Fri Jul 23 2021 Fedora Release Engineering - 1:9.0.50-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
-* Tue Jul 06 2021 Hui Wang 1:9.0.50-1
+* Tue Jul 06 2021 Hui Wang - 1:9.0.50-1
- Update to 9.0.50
-* Sat Jun 05 2021 Coty Sutherland 1:9.0.45-4
+* Sat Jun 05 2021 Coty Sutherland - 1:9.0.45-4
- Add back logrotate config file per devel list request
- Add mvn virtual provides back for the servlet, el, and jsp spec impls
-* Fri Jun 04 2021 Coty Sutherland 1:9.0.45-3
+* Fri Jun 04 2021 Coty Sutherland - 1:9.0.45-3
- Drop geronimo-jaxrpc, which provided the webservices naming factory resources that are generally unused
-* Thu Jun 03 2021 Coty Sutherland 1:9.0.45-2
+* Thu Jun 03 2021 Coty Sutherland - 1:9.0.45-2
- Remove examples webapps from subpackage
- Updates to javapackages-local removed %%add_maven_depmap which broke the build,
so I removed the maven artifacts as they aren't very useful anyway
From da561178516b386e5387bf450e7ae44f3214f1c3 Mon Sep 17 00:00:00 2001
From: Hui Wang
Date: Thu, 9 Dec 2021 18:15:03 +0800
Subject: [PATCH 056/177] Update to 9.0.56
---
sources | 2 +-
tomcat.spec | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/sources b/sources
index f5c9c8e..259252b 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (apache-tomcat-9.0.55-src.tar.gz) = abfb1824387045fc6b5a5077179149e6c348c0deae933e8766c60cbf92466f5e8883ebe4cc260c23ece6d3975ab2e25f7cdde58f9dd83dfdd22cab33c967b28c
+SHA512 (apache-tomcat-9.0.56-src.tar.gz) = 43332241fda149f9da107496cc6b812e38544c9043c567e3fe11ee01b5abfbd02b6a377c3f6090902048bd9dc67746cdc65d59f03bd0de68c05e0955bfe018c5
diff --git a/tomcat.spec b/tomcat.spec
index 7d59ec9..b605dde 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -31,7 +31,7 @@
%global jspspec 2.3
%global major_version 9
%global minor_version 0
-%global micro_version 55
+%global micro_version 56
%global packdname apache-tomcat-%{version}-src
%global servletspec 4.0
%global elspec 3.0
@@ -496,6 +496,9 @@ fi
%{appdir}/ROOT
%changelog
+* Thu Dec 09 2021 Hui Wang - 1:9.0.56-1
+- Update to 9.0.56
+
* Tue Oct 12 2021 Hui Wang - 1:9.0.55-1
- Update to 9.0.55
From dc8a02a819a3322e44de613d3c7a7791e6289bc7 Mon Sep 17 00:00:00 2001
From: Fedora Release Engineering
Date: Sat, 22 Jan 2022 02:53:10 +0000
Subject: [PATCH 057/177] - Rebuilt for
https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering
---
tomcat.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tomcat.spec b/tomcat.spec
index b605dde..295e0cc 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -56,7 +56,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -496,6 +496,9 @@ fi
%{appdir}/ROOT
%changelog
+* Sat Jan 22 2022 Fedora Release Engineering - 1:9.0.56-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
+
* Thu Dec 09 2021 Hui Wang - 1:9.0.56-1
- Update to 9.0.56
From cdf645a2cff682220adcab3ccbe4152b021cf540 Mon Sep 17 00:00:00 2001
From: Jiri
Date: Sun, 6 Feb 2022 00:27:17 +0100
Subject: [PATCH 058/177] Rebuilt for java-17-openjdk as system jdk
https://fedoraproject.org/wiki/Changes/Java17
---
tomcat.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tomcat.spec b/tomcat.spec
index 295e0cc..31a5258 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -56,7 +56,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -496,6 +496,9 @@ fi
%{appdir}/ROOT
%changelog
+* Sat Feb 05 2022 Jiri Vanek - 1:9.0.56-3
+- Rebuilt for java-17-openjdk as system jdk
+
* Sat Jan 22 2022 Fedora Release Engineering - 1:9.0.56-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
From 37136861dfa67cc58a4d72d3928f2b0ee8ef99c8 Mon Sep 17 00:00:00 2001
From: Sonia Xu
Date: Wed, 2 Mar 2022 23:41:57 +0000
Subject: [PATCH 059/177] Update to 9.0.59
Fixes CVE-2022-23181
---
sources | 2 +-
tomcat-9.0-JDTCompiler.patch | 19 ++++++++++---------
tomcat.spec | 8 ++++++--
3 files changed, 17 insertions(+), 12 deletions(-)
diff --git a/sources b/sources
index 259252b..8ef1969 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (apache-tomcat-9.0.56-src.tar.gz) = 43332241fda149f9da107496cc6b812e38544c9043c567e3fe11ee01b5abfbd02b6a377c3f6090902048bd9dc67746cdc65d59f03bd0de68c05e0955bfe018c5
+SHA512 (apache-tomcat-9.0.59-src.tar.gz) = cea0125ca9b90b247ed114fa7b2e9c63da38b1ef97b3a373a43ed0d775764178534a4014b254219c8c5a26575eaf0ddc25ebc1e276b2ad5086ef3406627f1c80
diff --git a/tomcat-9.0-JDTCompiler.patch b/tomcat-9.0-JDTCompiler.patch
index 20605ce..edf156a 100644
--- a/tomcat-9.0-JDTCompiler.patch
+++ b/tomcat-9.0-JDTCompiler.patch
@@ -1,16 +1,17 @@
-diff -up ./java/org/apache/jasper/compiler/JDTCompiler.java.orig ./java/org/apache/jasper/compiler/JDTCompiler.java
---- java/org/apache/jasper/compiler/JDTCompiler.java.orig 2021-07-07 11:31:21.583507995 +0800
-+++ java/org/apache/jasper/compiler/JDTCompiler.java 2021-07-07 11:35:13.009251246 +0800
-@@ -310,7 +310,7 @@ public class JDTCompiler extends org.apa
+diff -up ./java/org/apache/jasper/compiler/JDTCompiler.java ./java/org/apache/jasper/compiler/JDTCompiler.java
+index 2e361f2..277d8f4 100644
+--- java/org/apache/jasper/compiler/JDTCompiler.java
++++ java/org/apache/jasper/compiler/JDTCompiler.java
+@@ -310,7 +310,7 @@ public class JDTCompiler extends org.apache.jasper.compiler.Compiler {
} else if(opt.equals("15")) {
settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_15);
} else if(opt.equals("16")) {
- settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_16);
+ settings.put(CompilerOptions.OPTION_Source, "16");
} else if(opt.equals("17")) {
- // Constant not available in latest ECJ version shipped with
- // Tomcat. May be supported in a snapshot build.
-@@ -372,8 +372,8 @@ public class JDTCompiler extends org.apa
+ // Constant not available in latest ECJ version that runs on
+ // Java 8.
+@@ -377,8 +377,8 @@ public class JDTCompiler extends org.apache.jasper.compiler.Compiler {
settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_15);
settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_15);
} else if(opt.equals("16")) {
@@ -19,5 +20,5 @@ diff -up ./java/org/apache/jasper/compiler/JDTCompiler.java.orig ./java/org/apac
+ settings.put(CompilerOptions.OPTION_TargetPlatform, "16");
+ settings.put(CompilerOptions.OPTION_Compliance, "16");
} else if(opt.equals("17")) {
- // Constant not available in latest ECJ version shipped with
- // Tomcat. May be supported in a snapshot build.
+ // Constant not available in latest ECJ version that runs on
+ // Java 8.
diff --git a/tomcat.spec b/tomcat.spec
index 31a5258..8f3948c 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -31,7 +31,7 @@
%global jspspec 2.3
%global major_version 9
%global minor_version 0
-%global micro_version 56
+%global micro_version 59
%global packdname apache-tomcat-%{version}-src
%global servletspec 4.0
%global elspec 3.0
@@ -56,7 +56,7 @@
Name: tomcat
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
License: ASL 2.0
@@ -496,6 +496,10 @@ fi
%{appdir}/ROOT
%changelog
+* Wed Mar 02 2022 Sonia Xu - 1:9.0.59-1
+- Update to 9.0.59
+- Resolves: rhbz#2047419 - CVE-2022-23181 tomcat: local privilege escalation vulnerability
+
* Sat Feb 05 2022 Jiri Vanek - 1:9.0.56-3
- Rebuilt for java-17-openjdk as system jdk
From 9b5ef6dbd7adb3dca35411e43d1f8ba9517b8010 Mon Sep 17 00:00:00 2001
From: Coty Sutherland
Date: Tue, 8 Mar 2022 15:22:53 -0500
Subject: [PATCH 060/177] Resolves: rhbz#2061424 Add Java 9 start-up parameters
to allow reflection
---
java-9-start-up-parameters.conf | 6 ++++++
tomcat.spec | 9 ++++++++-
2 files changed, 14 insertions(+), 1 deletion(-)
create mode 100644 java-9-start-up-parameters.conf
diff --git a/java-9-start-up-parameters.conf b/java-9-start-up-parameters.conf
new file mode 100644
index 0000000..0fd43ba
--- /dev/null
+++ b/java-9-start-up-parameters.conf
@@ -0,0 +1,6 @@
+# Add the JAVA 9 specific 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"
diff --git a/tomcat.spec b/tomcat.spec
index 8f3948c..4d48f16 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -56,7 +56,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -73,6 +73,7 @@ Source21: tomcat-functions
Source30: tomcat-preamble
Source31: tomcat-server
Source32: tomcat-named.service
+Source33: java-9-start-up-parameters.conf
Patch0: %{name}-%{major_version}.%{minor_version}-bootstrap-MANIFEST.MF.patch
Patch1: %{name}-%{major_version}.%{minor_version}-tomcat-users-webapp.patch
@@ -302,6 +303,8 @@ popd
%{__install} -m 0644 %{SOURCE32} \
${RPM_BUILD_ROOT}%{_unitdir}/%{name}@.service
+%{__install} -m 0644 %{SOURCE33} ${RPM_BUILD_ROOT}%{confdir}/conf.d/
+
# Substitute libnames in catalina-tasks.xml
sed -i \
"s,el-api.jar,%{name}-el-%{elspec}-api.jar,;
@@ -441,6 +444,7 @@ fi
%attr(0775,root,tomcat) %dir %{confdir}/Catalina/localhost
%attr(0755,root,tomcat) %dir %{confdir}/conf.d
%{confdir}/conf.d/README
+%{confdir}/conf.d/java-9-start-up-parameters.conf
%config(noreplace) %{confdir}/%{name}.conf
%config(noreplace) %{confdir}/*.policy
%config(noreplace) %{confdir}/*.properties
@@ -496,6 +500,9 @@ fi
%{appdir}/ROOT
%changelog
+* Tue Mar 08 2022 Coty Sutherland - 1:9.0.59-2
+- Resolves: rhbz#2061424 Add Java 9 start-up parameters to allow reflection
+
* Wed Mar 02 2022 Sonia Xu - 1:9.0.59-1
- Update to 9.0.59
- Resolves: rhbz#2047419 - CVE-2022-23181 tomcat: local privilege escalation vulnerability
From d3f20202a305e997a7cde37c20b45ee3b3d55ec3 Mon Sep 17 00:00:00 2001
From: Coty Sutherland
Date: Thu, 10 Mar 2022 15:44:16 -0500
Subject: [PATCH 061/177] Related: rhbz#2061424 Adjust fix so that it uses the
proper env var
---
java-9-start-up-parameters.conf | 11 ++++++-----
tomcat.spec | 5 ++++-
2 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/java-9-start-up-parameters.conf b/java-9-start-up-parameters.conf
index 0fd43ba..341e077 100644
--- a/java-9-start-up-parameters.conf
+++ b/java-9-start-up-parameters.conf
@@ -1,6 +1,7 @@
# Add the JAVA 9 specific 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"
+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
diff --git a/tomcat.spec b/tomcat.spec
index 4d48f16..fc199ff 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -56,7 +56,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -500,6 +500,9 @@ fi
%{appdir}/ROOT
%changelog
+* Thu Mar 10 2022 Coty Sutherland - 1:9.0.59-3
+- Related: rhbz#2061424 Adjust fix so that it uses the proper env var
+
* Tue Mar 08 2022 Coty Sutherland - 1:9.0.59-2
- Resolves: rhbz#2061424 Add Java 9 start-up parameters to allow reflection
From 57ef513427d2d4d46134b153ac135140aa24a717 Mon Sep 17 00:00:00 2001
From: Hui Wang
Date: Tue, 21 Jun 2022 21:03:19 +0800
Subject: [PATCH 062/177] Update for 9.0.64
---
rhbz-1857043.patch | 16 +++----
sources | 2 +-
tomcat-9.0-catalina-policy.patch | 2 +-
tomcat-9.0-osgi-annotations.patch | 66 ++++++++++++++++++++++++++++
tomcat-9.0-tomcat-users-webapp.patch | 2 +-
tomcat-build.patch | 15 -------
tomcat.spec | 10 ++++-
7 files changed, 85 insertions(+), 28 deletions(-)
create mode 100644 tomcat-9.0-osgi-annotations.patch
diff --git a/rhbz-1857043.patch b/rhbz-1857043.patch
index 7d68c42..dd74c3b 100644
--- a/rhbz-1857043.patch
+++ b/rhbz-1857043.patch
@@ -1,7 +1,7 @@
diff -up ./build.xml.orig ./build.xml
--- build.xml.orig 2021-07-07 10:53:55.493742841 +0800
+++ build.xml 2021-07-07 11:09:43.107968515 +0800
-@@ -1030,7 +1030,7 @@
+@@ -1020,7 +1020,7 @@
filesDir="${tomcat.classes}"
filesId="files.annotations-api"
manifest="${tomcat.manifests}/annotations-api.jar.manifest"
@@ -10,7 +10,7 @@ diff -up ./build.xml.orig ./build.xml
+
+
++
+
+
+
+@@ -2270,7 +2271,8 @@ Apache Tomcat ${version} native binaries
+ failonwarning="true">
+
+
+-
++
++
+
+
+
+@@ -3671,12 +3673,26 @@ Read the Building page on the Apache Tom
+
+
+
++
++
++
++
++
++
++
++
++
+
+
+
+
+
+
++
++
++
++
++
+
+
+
diff --git a/tomcat-9.0-tomcat-users-webapp.patch b/tomcat-9.0-tomcat-users-webapp.patch
index 860c4cf..85b8b9b 100644
--- a/tomcat-9.0-tomcat-users-webapp.patch
+++ b/tomcat-9.0-tomcat-users-webapp.patch
@@ -1,6 +1,6 @@
--- conf/tomcat-users.xml~ 2008-01-28 17:41:06.000000000 -0500
+++ conf/tomcat-users.xml 2008-03-07 19:40:07.000000000 -0500
-@@ -23,4 +23,14 @@
+@@ -53,4 +53,14 @@
-->
diff --git a/tomcat-build.patch b/tomcat-build.patch
index 97440f1..49c63ff 100644
--- a/tomcat-build.patch
+++ b/tomcat-build.patch
@@ -1,18 +1,3 @@
-diff -up ./build.xml.orig ./build.xml
---- ./build.xml.orig 2020-07-13 12:59:09.555368724 -0400
-+++ ./build.xml 2020-07-13 13:06:51.246135917 -0400
-@@ -3307,6 +3307,11 @@ Read the Building page on the Apache Tom
-
-
-
-+
-+
-+
-+
-+
-
-
-
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
diff --git a/tomcat.spec b/tomcat.spec
index fc199ff..142b2bd 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -31,7 +31,7 @@
%global jspspec 2.3
%global major_version 9
%global minor_version 0
-%global micro_version 59
+%global micro_version 64
%global packdname apache-tomcat-%{version}-src
%global servletspec 4.0
%global elspec 3.0
@@ -56,7 +56,7 @@
Name: tomcat
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
License: ASL 2.0
@@ -81,6 +81,7 @@ Patch2: %{name}-build.patch
Patch3: %{name}-%{major_version}.%{minor_version}-catalina-policy.patch
Patch4: rhbz-1857043.patch
Patch5: %{name}-%{major_version}.%{minor_version}-JDTCompiler.patch
+Patch6: %{name}-%{major_version}.%{minor_version}-osgi-annotations.patch
BuildArch: noarch
@@ -191,6 +192,7 @@ find . -type f \( -name "*.bat" -o -name "*.class" -o -name Thumbs.db -o -name "
%patch3 -p0
%patch4 -p0
%patch5 -p0
+%patch6 -p0
# Remove webservices naming resources as it's generally unused
%{__rm} -rf java/org/apache/naming/factory/webservices
@@ -500,6 +502,10 @@ fi
%{appdir}/ROOT
%changelog
+* Tue Jun 21 2022 Hui Wang - 1:9.0.64-1
+- Update to 9.0.64
+- Add osgi-annotations dependency back
+
* Thu Mar 10 2022 Coty Sutherland - 1:9.0.59-3
- Related: rhbz#2061424 Adjust fix so that it uses the proper env var
From 882334e985cd20fce979418228c3e14cd7ad8d05 Mon Sep 17 00:00:00 2001
From: Jiri
Date: Fri, 8 Jul 2022 16:55:08 +0200
Subject: [PATCH 063/177] Rebuilt for Drop i686 JDKs
https://fedoraproject.org/wiki/Changes/Drop_i686_JDKs
---
tomcat.spec | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/tomcat.spec b/tomcat.spec
index 142b2bd..8f6270f 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -56,7 +56,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -84,6 +84,7 @@ Patch5: %{name}-%{major_version}.%{minor_version}-JDTCompiler.patch
Patch6: %{name}-%{major_version}.%{minor_version}-osgi-annotations.patch
BuildArch: noarch
+ExclusiveArch: %{java_arches} noarch
BuildRequires: ant
BuildRequires: ecj >= 1:4.10
@@ -502,6 +503,9 @@ fi
%{appdir}/ROOT
%changelog
+* Fri Jul 08 2022 Jiri Vanek - 1:9.0.64-2
+- Rebuilt for Drop i686 JDKs
+
* Tue Jun 21 2022 Hui Wang - 1:9.0.64-1
- Update to 9.0.64
- Add osgi-annotations dependency back
From 84177caec5a7e90d4b9a45492c8420754287bd09 Mon Sep 17 00:00:00 2001
From: Hui Wang
Date: Fri, 22 Jul 2022 17:33:41 +0800
Subject: [PATCH 064/177] Update to 9.0.65
---
sources | 2 +-
tomcat.spec | 7 +++++--
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/sources b/sources
index 82edd85..78df857 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (apache-tomcat-9.0.64-src.tar.gz) = 7e01a979d41f7d73204b7a7ae5a85b0094626bf64bcfa3a52f1fc46989369d504b6dd49718084ee0a10af775cab488aae1e18ce05eb2b527800e2a693c7b6386
+SHA512 (apache-tomcat-9.0.65-src.tar.gz) = 3ff344370cc36f5bed389ed198054783a4f5bc86476a751cda280618457a06bae38c1e764b0c110c2f68efe2d34243a4e24596e8b90e8fbd171bf584a22fd3bc
diff --git a/tomcat.spec b/tomcat.spec
index 8f6270f..22e25c2 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -31,7 +31,7 @@
%global jspspec 2.3
%global major_version 9
%global minor_version 0
-%global micro_version 64
+%global micro_version 65
%global packdname apache-tomcat-%{version}-src
%global servletspec 4.0
%global elspec 3.0
@@ -56,7 +56,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 2%{?dist}
+Release: 1%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -503,6 +503,9 @@ fi
%{appdir}/ROOT
%changelog
+* Thu Jul 21 2022 Hui Wang - 1:9.0.65-1
+- Update to 9.0.65
+
* Fri Jul 08 2022 Jiri Vanek - 1:9.0.64-2
- Rebuilt for Drop i686 JDKs
From 83e980a86f856fff632adb866fe0f29ddcfac322 Mon Sep 17 00:00:00 2001
From: Coty Sutherland
Date: Thu, 1 Sep 2022 14:35:49 -0400
Subject: [PATCH 065/177] Cleaning up some unused deps and system properties
---
tomcat.spec | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
diff --git a/tomcat.spec b/tomcat.spec
index 22e25c2..ad3145e 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -56,7 +56,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -92,8 +92,6 @@ BuildRequires: findutils
BuildRequires: java-devel >= 1:1.8.0
BuildRequires: javapackages-local
BuildRequires: aqute-bnd
-BuildRequires: aqute-bndlib
-BuildRequires: wsdl4j
BuildRequires: systemd
Requires: java-headless >= 1:1.8.0
@@ -224,14 +222,9 @@ touch HACK
-Dcommons-daemon.native.win.mgr.exe="HACK" \
-Dnsis.exe="HACK" \
-Djaxrpc-lib.jar="HACK" \
- -Dwsdl4j-lib.jar="$(build-classpath wsdl4j)" \
+ -Dwsdl4j-lib.jar="HACK" \
-Dbnd.jar="$(build-classpath aqute-bnd/biz.aQute.bnd)" \
- -Dbndlib.jar="$(build-classpath aqute-bnd/biz.aQute.bndlib)" \
- -Dbndlibg.jar="$(build-classpath aqute-bnd/aQute.libg)" \
- -Dbndannotation.jar="$(build-classpath aqute-bnd/biz.aQute.bnd.annotation)" \
-Dosgi-annotations.jar="$(build-classpath aqute-bnd/biz.aQute.bnd.annotation)" \
- -Dslf4j-api.jar="$(build-classpath slf4j/slf4j-api)" \
- -Dosgi-cmpn.jar="$(build-classpath osgi-compendium/osgi.cmpn)" \
-Dversion="%{version}" \
-Dversion.build="%{micro_version}" \
deploy
@@ -503,6 +496,9 @@ fi
%{appdir}/ROOT
%changelog
+* Thu Sep 01 2022 Coty Sutherland - 1:9.0.65-2
+- Cleaning up some unused deps and system properties
+
* Thu Jul 21 2022 Hui Wang - 1:9.0.65-1
- Update to 9.0.65
From 8e4906e924e855514fd1bf7db251bcba4868437e Mon Sep 17 00:00:00 2001
From: Hui Wang
Date: Tue, 8 Nov 2022 16:50:53 +0800
Subject: [PATCH 066/177] Update tomcat to 9.0.68
---
sources | 2 +-
tomcat-9.0-catalina-policy.patch | 9 ++++-----
tomcat-9.0-osgi-annotations.patch | 4 ++--
tomcat.spec | 17 ++++++++++++-----
4 files changed, 19 insertions(+), 13 deletions(-)
diff --git a/sources b/sources
index 78df857..5c55728 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (apache-tomcat-9.0.65-src.tar.gz) = 3ff344370cc36f5bed389ed198054783a4f5bc86476a751cda280618457a06bae38c1e764b0c110c2f68efe2d34243a4e24596e8b90e8fbd171bf584a22fd3bc
+SHA512 (apache-tomcat-9.0.68-src.tar.gz) = 63bb2c42f683c4c5e362b19bda046de172382714e80298106c61cc728feea9681b568450f04cb95d6cae08e5a71933c7755b9b81b706c46d63f4683c2a3a96be
diff --git a/tomcat-9.0-catalina-policy.patch b/tomcat-9.0-catalina-policy.patch
index 0211e70..dd6a47d 100644
--- a/tomcat-9.0-catalina-policy.patch
+++ b/tomcat-9.0-catalina-policy.patch
@@ -1,6 +1,6 @@
---- conf/catalina.policy.orig 2021-07-07 10:25:53.461393329 +0800
-+++ conf/catalina.policy 2021-07-07 10:27:47.688682404 +0800
-@@ -56,6 +56,16 @@ grant codeBase "file:${java.home}/lib/ex
+--- 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;
//};
@@ -13,11 +13,10 @@
+grant codeBase "file:/usr/share/java/ecj/ecj.jar" {
+ permission java.security.AllPermission;
+};
-+
// ========== CATALINA CODE PERMISSIONS =======================================
-@@ -261,4 +271,4 @@ grant codeBase "file:${catalina.home}/we
+@@ -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" {
diff --git a/tomcat-9.0-osgi-annotations.patch b/tomcat-9.0-osgi-annotations.patch
index c68708a..c70b463 100644
--- a/tomcat-9.0-osgi-annotations.patch
+++ b/tomcat-9.0-osgi-annotations.patch
@@ -1,6 +1,6 @@
--- build.properties.default.orig 2022-06-21 20:30:04.498997718 +0800
+++ build.properties.default 2022-06-21 20:30:57.579522800 +0800
-@@ -308,6 +308,16 @@ bnd.home=${base.path}/bnd-${bnd.version}
+@@ -309,6 +309,16 @@ 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
@@ -15,7 +15,7 @@
+osgi-annotations.loc=${base-maven.loc}/org/osgi/org.osgi.annotation.bundle/${osgi-annotations.version}/org.osgi.annotation.bundle-${osgi-annotations.version}.jar
+
# ----- JSign, version 4.1 or later -----
- jsign.version=4.1
+ jsign.version=4.2
--- build.xml.orig 2022-06-21 20:36:12.785560093 +0800
+++ build.xml 2022-06-21 20:40:41.155154959 +0800
diff --git a/tomcat.spec b/tomcat.spec
index ad3145e..7acea9b 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -31,7 +31,7 @@
%global jspspec 2.3
%global major_version 9
%global minor_version 0
-%global micro_version 65
+%global micro_version 68
%global packdname apache-tomcat-%{version}-src
%global servletspec 4.0
%global elspec 3.0
@@ -56,7 +56,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 2%{?dist}
+Release: 1%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -92,6 +92,8 @@ BuildRequires: findutils
BuildRequires: java-devel >= 1:1.8.0
BuildRequires: javapackages-local
BuildRequires: aqute-bnd
+BuildRequires: aqute-bndlib
+BuildRequires: wsdl4j
BuildRequires: systemd
Requires: java-headless >= 1:1.8.0
@@ -222,9 +224,14 @@ touch HACK
-Dcommons-daemon.native.win.mgr.exe="HACK" \
-Dnsis.exe="HACK" \
-Djaxrpc-lib.jar="HACK" \
- -Dwsdl4j-lib.jar="HACK" \
+ -Dwsdl4j-lib.jar="$(build-classpath wsdl4j)" \
-Dbnd.jar="$(build-classpath aqute-bnd/biz.aQute.bnd)" \
+ -Dbndlib.jar="$(build-classpath aqute-bnd/biz.aQute.bndlib)" \
+ -Dbndlibg.jar="$(build-classpath aqute-bnd/aQute.libg)" \
+ -Dbndannotation.jar="$(build-classpath aqute-bnd/biz.aQute.bnd.annotation)" \
-Dosgi-annotations.jar="$(build-classpath aqute-bnd/biz.aQute.bnd.annotation)" \
+ -Dslf4j-api.jar="$(build-classpath slf4j/slf4j-api)" \
+ -Dosgi-cmpn.jar="$(build-classpath osgi-compendium/osgi.cmpn)" \
-Dversion="%{version}" \
-Dversion.build="%{micro_version}" \
deploy
@@ -496,8 +503,8 @@ fi
%{appdir}/ROOT
%changelog
-* Thu Sep 01 2022 Coty Sutherland - 1:9.0.65-2
-- Cleaning up some unused deps and system properties
+* Thu Nov 03 2033 Hui Wang - 1:9.0.68-1
+- Update to 9.0.68
* Thu Jul 21 2022 Hui Wang - 1:9.0.65-1
- Update to 9.0.65
From f1660807811a5b94ea5ac6ed4e201db6e64c3d3c Mon Sep 17 00:00:00 2001
From: Hui Wang
Date: Fri, 13 Jan 2023 19:25:32 +0800
Subject: [PATCH 067/177] Update tomcat to 9.0.70
---
sources | 2 +-
tomcat.spec | 7 +++++--
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/sources b/sources
index 5c55728..e456e94 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (apache-tomcat-9.0.68-src.tar.gz) = 63bb2c42f683c4c5e362b19bda046de172382714e80298106c61cc728feea9681b568450f04cb95d6cae08e5a71933c7755b9b81b706c46d63f4683c2a3a96be
+SHA512 (apache-tomcat-9.0.70-src.tar.gz) = 266ffbdfa57bd9778ea3485f5e2cabf9a2d389235afa74b154e684bcf2806a4fe7a54049f2bd8ea96414396d06695fe890b1eed9672278d9eb345ba3cd71032e
diff --git a/tomcat.spec b/tomcat.spec
index 7acea9b..d86c64b 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -31,7 +31,7 @@
%global jspspec 2.3
%global major_version 9
%global minor_version 0
-%global micro_version 68
+%global micro_version 70
%global packdname apache-tomcat-%{version}-src
%global servletspec 4.0
%global elspec 3.0
@@ -503,7 +503,10 @@ fi
%{appdir}/ROOT
%changelog
-* Thu Nov 03 2033 Hui Wang - 1:9.0.68-1
+* Fri Jan 13 2023 Hui Wang - 1:9.0.70-1
+- Update to 9.0.70
+
+* Thu Nov 03 2022 Hui Wang - 1:9.0.68-1
- Update to 9.0.68
* Thu Jul 21 2022 Hui Wang - 1:9.0.65-1
From 3d349e6aeafcabfd53be4239c7b951ada14b7f5b Mon Sep 17 00:00:00 2001
From: Fedora Release Engineering
Date: Sat, 21 Jan 2023 05:15:06 +0000
Subject: [PATCH 068/177] Rebuilt for
https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering
---
tomcat.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tomcat.spec b/tomcat.spec
index d86c64b..932e42d 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -56,7 +56,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -503,6 +503,9 @@ fi
%{appdir}/ROOT
%changelog
+* Sat Jan 21 2023 Fedora Release Engineering - 1:9.0.70-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
+
* Fri Jan 13 2023 Hui Wang - 1:9.0.70-1
- Update to 9.0.70
From 06d3a3141584885d8416da02c4124539cdc229c3 Mon Sep 17 00:00:00 2001
From: Hui Wang
Date: Sun, 29 Jan 2023 19:23:32 +0800
Subject: [PATCH 069/177] Update to 9.0.71 Remove osgi-annotations patch Add
bnd annotation dependency which is in bndlib package
---
tomcat-9.0-bnd-annotation.patch | 10 +++++
tomcat-9.0-osgi-annotations.patch | 66 -------------------------------
tomcat.spec | 22 +++++------
3 files changed, 20 insertions(+), 78 deletions(-)
create mode 100644 tomcat-9.0-bnd-annotation.patch
delete mode 100644 tomcat-9.0-osgi-annotations.patch
diff --git a/tomcat-9.0-bnd-annotation.patch b/tomcat-9.0-bnd-annotation.patch
new file mode 100644
index 0000000..9d57c81
--- /dev/null
+++ b/tomcat-9.0-bnd-annotation.patch
@@ -0,0 +1,10 @@
+--- 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 @@
+
+
+
++
+
+
+
diff --git a/tomcat-9.0-osgi-annotations.patch b/tomcat-9.0-osgi-annotations.patch
deleted file mode 100644
index c70b463..0000000
--- a/tomcat-9.0-osgi-annotations.patch
+++ /dev/null
@@ -1,66 +0,0 @@
---- build.properties.default.orig 2022-06-21 20:30:04.498997718 +0800
-+++ build.properties.default 2022-06-21 20:30:57.579522800 +0800
-@@ -309,6 +309,16 @@ 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
-
-+# ----- OSGi annotations bundle, version 1.0.0 or later -----
-+# ----- required to avoid Javadoc error when using bnd annotations -----
-+osgi-annotations.version=1.1.1
-+osgi-annotations.checksum.enabled=true
-+osgi-annotations.checksum.algorithm=MD5|SHA-1
-+osgi-annotations.checksum.value=04e5db48a469cb53dd0e4e954deab2e0|a1644f3dbbb614f2a44671d27dd13c4d9142007d
-+osgi-annotations.home=${base.path}/osgi-annotations-${osgi-annotations.version}
-+osgi-annotations.jar=${osgi-annotations.home}/org.osgi.annotation.bundle-${osgi-annotations.version}.jar
-+osgi-annotations.loc=${base-maven.loc}/org/osgi/org.osgi.annotation.bundle/${osgi-annotations.version}/org.osgi.annotation.bundle-${osgi-annotations.version}.jar
-+
- # ----- JSign, version 4.1 or later -----
- jsign.version=4.2
-
---- build.xml.orig 2022-06-21 20:36:12.785560093 +0800
-+++ build.xml 2022-06-21 20:40:41.155154959 +0800
-@@ -213,6 +213,7 @@
-
-
-
-+
-
-
-
-@@ -2270,7 +2271,8 @@ Apache Tomcat ${version} native binaries
- failonwarning="true">
-
-
--
-+
-+
-
-
-
-@@ -3671,12 +3673,26 @@ Read the Building page on the Apache Tom
-
-
-
-+
-+
-+
-+
-+
-+
-+
-+
-+
-
-
-
-
-
-
-+
-+
-+
-+
-+
-
-
-
diff --git a/tomcat.spec b/tomcat.spec
index 932e42d..0e194dd 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -31,7 +31,7 @@
%global jspspec 2.3
%global major_version 9
%global minor_version 0
-%global micro_version 70
+%global micro_version 71
%global packdname apache-tomcat-%{version}-src
%global servletspec 4.0
%global elspec 3.0
@@ -56,7 +56,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 2%{?dist}
+Release: 1%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -81,7 +81,7 @@ Patch2: %{name}-build.patch
Patch3: %{name}-%{major_version}.%{minor_version}-catalina-policy.patch
Patch4: rhbz-1857043.patch
Patch5: %{name}-%{major_version}.%{minor_version}-JDTCompiler.patch
-Patch6: %{name}-%{major_version}.%{minor_version}-osgi-annotations.patch
+Patch6: %{name}-%{major_version}.%{minor_version}-bnd-annotation.patch
BuildArch: noarch
ExclusiveArch: %{java_arches} noarch
@@ -93,12 +93,10 @@ BuildRequires: java-devel >= 1:1.8.0
BuildRequires: javapackages-local
BuildRequires: aqute-bnd
BuildRequires: aqute-bndlib
-BuildRequires: wsdl4j
BuildRequires: systemd
Requires: java-headless >= 1:1.8.0
Requires: javapackages-tools
-Requires: procps
Requires: %{name}-lib = %{epoch}:%{version}-%{release}
%if 0%{?fedora} || 0%{?rhel} > 7
Recommends: tomcat-native >= %{native_version}
@@ -224,14 +222,9 @@ touch HACK
-Dcommons-daemon.native.win.mgr.exe="HACK" \
-Dnsis.exe="HACK" \
-Djaxrpc-lib.jar="HACK" \
- -Dwsdl4j-lib.jar="$(build-classpath wsdl4j)" \
+ -Dwsdl4j-lib.jar="HACK" \
-Dbnd.jar="$(build-classpath aqute-bnd/biz.aQute.bnd)" \
- -Dbndlib.jar="$(build-classpath aqute-bnd/biz.aQute.bndlib)" \
- -Dbndlibg.jar="$(build-classpath aqute-bnd/aQute.libg)" \
- -Dbndannotation.jar="$(build-classpath aqute-bnd/biz.aQute.bnd.annotation)" \
- -Dosgi-annotations.jar="$(build-classpath aqute-bnd/biz.aQute.bnd.annotation)" \
- -Dslf4j-api.jar="$(build-classpath slf4j/slf4j-api)" \
- -Dosgi-cmpn.jar="$(build-classpath osgi-compendium/osgi.cmpn)" \
+ -Dbnd-annotation.jar="$(build-classpath aqute-bnd/biz.aQute.bnd.annotation)" \
-Dversion="%{version}" \
-Dversion.build="%{micro_version}" \
deploy
@@ -503,6 +496,11 @@ fi
%{appdir}/ROOT
%changelog
+* Sun Jan 29 2023 Hui Wang - 1:9.0.71-1
+- Update to 9.0.71
+- Remove osgi-annotations patch
+- Add bnd-annotation dependency which is in bndlib package
+
* Sat Jan 21 2023 Fedora Release Engineering - 1:9.0.70-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
From 013888a3ae3d51a70673472c883df7d66cbd4ce2 Mon Sep 17 00:00:00 2001
From: Hui Wang
Date: Sun, 29 Jan 2023 19:31:45 +0800
Subject: [PATCH 070/177] Upload 9.0.72 source
---
sources | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sources b/sources
index e456e94..fa93e4d 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (apache-tomcat-9.0.70-src.tar.gz) = 266ffbdfa57bd9778ea3485f5e2cabf9a2d389235afa74b154e684bcf2806a4fe7a54049f2bd8ea96414396d06695fe890b1eed9672278d9eb345ba3cd71032e
+SHA512 (apache-tomcat-9.0.71-src.tar.gz) = 0c62a5e526178e39c68717223ce2cb4a31096e5765b718639e4ba4bbf3d70ba28238cd1bb5cf74747f718b35baf98de32c7ee8a7ebd445c6191700070c1ca930
From 2145287741463cc2fd7e1fefd84cdb004d38d05f Mon Sep 17 00:00:00 2001
From: Hui Wang
Date: Fri, 17 Mar 2023 17:05:19 +0800
Subject: [PATCH 071/177] Update to 9.0.73
---
sources | 2 +-
tomcat.spec | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/sources b/sources
index fa93e4d..261d4f4 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (apache-tomcat-9.0.71-src.tar.gz) = 0c62a5e526178e39c68717223ce2cb4a31096e5765b718639e4ba4bbf3d70ba28238cd1bb5cf74747f718b35baf98de32c7ee8a7ebd445c6191700070c1ca930
+SHA512 (apache-tomcat-9.0.73-src.tar.gz) = 1691a0087ceaf2100ce17fe9b9a973d079c39b20effbe0c0d68f92d2684a681e001b0c2b8bde40c289754ac02ba02f9eb4dfac617fccb8f451c96dfdd4741237
diff --git a/tomcat.spec b/tomcat.spec
index 0e194dd..f89963e 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -31,7 +31,7 @@
%global jspspec 2.3
%global major_version 9
%global minor_version 0
-%global micro_version 71
+%global micro_version 73
%global packdname apache-tomcat-%{version}-src
%global servletspec 4.0
%global elspec 3.0
@@ -496,6 +496,9 @@ fi
%{appdir}/ROOT
%changelog
+* Fri Mar 17 2023 Hui Wang - 1:9.0.73-1
+- Update to 9.0.73
+
* Sun Jan 29 2023 Hui Wang - 1:9.0.71-1
- Update to 9.0.71
- Remove osgi-annotations patch
From f590c47ebf36dd7913b2862374284604d4380d1c Mon Sep 17 00:00:00 2001
From: Hui Wang
Date: Fri, 9 Jun 2023 14:50:31 +0800
Subject: [PATCH 072/177] Update to 9.0.75
---
sources | 2 +-
tomcat.spec | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/sources b/sources
index 261d4f4..27278f4 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (apache-tomcat-9.0.73-src.tar.gz) = 1691a0087ceaf2100ce17fe9b9a973d079c39b20effbe0c0d68f92d2684a681e001b0c2b8bde40c289754ac02ba02f9eb4dfac617fccb8f451c96dfdd4741237
+SHA512 (apache-tomcat-9.0.75-src.tar.gz) = 19f78fbe3391bbad65494e0071a6df9a26ceb1a4bd387b3425c5f34a02391fcaaae40442cdca3a98c4b7b45963d3a9e51dd6a1b72f11c29904c755cff03def64
diff --git a/tomcat.spec b/tomcat.spec
index f89963e..f457721 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -31,7 +31,7 @@
%global jspspec 2.3
%global major_version 9
%global minor_version 0
-%global micro_version 73
+%global micro_version 75
%global packdname apache-tomcat-%{version}-src
%global servletspec 4.0
%global elspec 3.0
@@ -496,6 +496,9 @@ fi
%{appdir}/ROOT
%changelog
+* Thu Jun 08 2023 Hui Wang - 1:9.0.75-1
+- Updated to 9.0.75
+
* Fri Mar 17 2023 Hui Wang - 1:9.0.73-1
- Update to 9.0.73
From 92faf5efdbf5b83cf1eb350acce9c86c791e319b Mon Sep 17 00:00:00 2001
From: Hui Wang
Date: Wed, 14 Jun 2023 09:46:01 +0800
Subject: [PATCH 073/177] Update to 9.0.76
---
sources | 2 +-
tomcat.spec | 10 ++++++++--
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/sources b/sources
index 27278f4..2bc150a 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (apache-tomcat-9.0.75-src.tar.gz) = 19f78fbe3391bbad65494e0071a6df9a26ceb1a4bd387b3425c5f34a02391fcaaae40442cdca3a98c4b7b45963d3a9e51dd6a1b72f11c29904c755cff03def64
+SHA512 (apache-tomcat-9.0.76-src.tar.gz) = 64de4778a4e142baa6e49d5b2d2ca30aaf0133fa1cb450ceb528d6da0440933d01dc9571b6f7b35162de41bf740b71487948ba179ea3d2c75a842848e1bae7bf
diff --git a/tomcat.spec b/tomcat.spec
index f457721..8211813 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -31,7 +31,7 @@
%global jspspec 2.3
%global major_version 9
%global minor_version 0
-%global micro_version 75
+%global micro_version 76
%global packdname apache-tomcat-%{version}-src
%global servletspec 4.0
%global elspec 3.0
@@ -328,6 +328,8 @@ pushd ${RPM_BUILD_ROOT}%{libdir}
%{__ln_s} ../../java/%{name}-servlet-%{servletspec}-api.jar .
%{__ln_s} ../../java/%{name}-el-%{elspec}-api.jar .
%{__ln_s} $(build-classpath ecj/ecj) jasper-jdt.jar
+
+ %{__ln_s} ${RPM_BUILD_ROOT}%{bindir}/tomcat-juli.jar ./
popd
# symlink to the FHS locations where we've installed things
@@ -496,8 +498,12 @@ fi
%{appdir}/ROOT
%changelog
+* Wed Jun 14 2023 Hui Wang - 1:9.0.76-1
+- Update to 9.0.76
+- Resolves: rhbz#2188218 Link bin/tomcat-juli.jar to /usr/share/java
+
* Thu Jun 08 2023 Hui Wang - 1:9.0.75-1
-- Updated to 9.0.75
+- Update to 9.0.75
* Fri Mar 17 2023 Hui Wang - 1:9.0.73-1
- Update to 9.0.73
From 33141d8c71b2eba2c6be8a32a70a50fc504ff435 Mon Sep 17 00:00:00 2001
From: Hui Wang
Date: Wed, 14 Jun 2023 12:34:57 +0800
Subject: [PATCH 074/177] Update to 9.0.76 Update patch command because %patchN
is deprecated Resolves: rhbz#2188218 Link bin/tomcat-juli.jar to
/usr/share/java Move tomcat-jsp-2.3-api.jar,tomcat-servlet-4.0-api.jar and
tomcat-el-api.jar to the subpackages
---
tomcat.spec | 27 +++++++++++++++++++--------
1 file changed, 19 insertions(+), 8 deletions(-)
diff --git a/tomcat.spec b/tomcat.spec
index 8211813..10f0b72 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -185,13 +185,13 @@ The ROOT web application for Apache Tomcat.
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
-%patch0 -p0
-%patch1 -p0
-%patch2 -p0
-%patch3 -p0
-%patch4 -p0
-%patch5 -p0
-%patch6 -p0
+%patch 0 -p0
+%patch 1 -p0
+%patch 2 -p0
+%patch 3 -p0
+%patch 4 -p0
+%patch 5 -p0
+%patch 6 -p0
# Remove webservices naming resources as it's generally unused
%{__rm} -rf java/org/apache/naming/factory/webservices
@@ -329,7 +329,7 @@ pushd ${RPM_BUILD_ROOT}%{libdir}
%{__ln_s} ../../java/%{name}-el-%{elspec}-api.jar .
%{__ln_s} $(build-classpath ecj/ecj) jasper-jdt.jar
- %{__ln_s} ${RPM_BUILD_ROOT}%{bindir}/tomcat-juli.jar ./
+ %{__cp} -a ../../%{name}/bin/tomcat-juli.jar .
popd
# symlink to the FHS locations where we've installed things
@@ -477,21 +477,31 @@ fi
%{_javadir}/*.jar
%{bindir}/tomcat-juli.jar
%exclude %{libdir}/%{name}-el-%{elspec}-api.jar
+%exclude %{libdir}/%{name}-servlet-%{servletspec}*.jar
+%exclude %{libdir}/%{name}-jsp-%{jspspec}*.jar
%exclude %{_javadir}/%{name}-servlet-%{servletspec}*.jar
%exclude %{_javadir}/%{name}-el-%{elspec}-api.jar
%exclude %{_javadir}/%{name}-jsp-%{jspspec}*.jar
+%exclude %{_javadir}/%{name}-servlet-api.jar
+%exclude %{_javadir}/%{name}-el-api.jar
+%exclude %{_javadir}/%{name}-jsp-api.jar
%files jsp-%{jspspec}-api -f .mfiles-tomcat-jsp-api
%{_javadir}/%{name}-jsp-%{jspspec}*.jar
+%{libdir}/%{name}-jsp-%{jspspec}*.jar
+%{_javadir}/%{name}-jsp-api.jar
%files servlet-%{servletspec}-api -f .mfiles-tomcat-servlet-api
%doc LICENSE
%{_javadir}/%{name}-servlet-%{servletspec}*.jar
+%{libdir}/%{name}-servlet-%{servletspec}*.jar
+%{_javadir}/%{name}-servlet-api.jar
%files el-%{elspec}-api -f .mfiles-tomcat-el-api
%doc LICENSE
%{_javadir}/%{name}-el-%{elspec}-api.jar
%{libdir}/%{name}-el-%{elspec}-api.jar
+%{_javadir}/%{name}-el-api.jar
%files webapps
%defattr(0644,tomcat,tomcat,0755)
@@ -501,6 +511,7 @@ fi
* Wed Jun 14 2023 Hui Wang - 1:9.0.76-1
- Update to 9.0.76
- Resolves: rhbz#2188218 Link bin/tomcat-juli.jar to /usr/share/java
+- Move tomcat-jsp-2.3-api.jar,tomcat-servlet-4.0-api.jar and tomcat-el-api.jar to the subpackages
* Thu Jun 08 2023 Hui Wang - 1:9.0.75-1
- Update to 9.0.75
From e6859de378cb6ccaf7039209cbdc9eef810bf1f9 Mon Sep 17 00:00:00 2001
From: Hui Wang
Date: Tue, 20 Jun 2023 15:02:14 +0800
Subject: [PATCH 075/177] Resolves: rhbz#2189672 Missing Tomcat POM files in
Fedora Rawhide
---
tomcat.spec | 43 +++++++++++++++++++++++++++++++++++++------
1 file changed, 37 insertions(+), 6 deletions(-)
diff --git a/tomcat.spec b/tomcat.spec
index 10f0b72..ebfe52b 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -56,7 +56,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -80,7 +80,6 @@ Patch1: %{name}-%{major_version}.%{minor_version}-tomcat-users-webapp.pat
Patch2: %{name}-build.patch
Patch3: %{name}-%{major_version}.%{minor_version}-catalina-policy.patch
Patch4: rhbz-1857043.patch
-Patch5: %{name}-%{major_version}.%{minor_version}-JDTCompiler.patch
Patch6: %{name}-%{major_version}.%{minor_version}-bnd-annotation.patch
BuildArch: noarch
@@ -190,7 +189,6 @@ find . -type f \( -name "*.bat" -o -name "*.class" -o -name Thumbs.db -o -name "
%patch 2 -p0
%patch 3 -p0
%patch 4 -p0
-%patch 5 -p0
%patch 6 -p0
# Remove webservices naming resources as it's generally unused
@@ -345,7 +343,7 @@ popd
# Install the maven metadata for the spec impl artifacts as other projects use them
#%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_mavenpomdir}
pushd res/maven
- for pom in tomcat-el-api.pom tomcat-jsp-api.pom tomcat-servlet-api.pom; do
+ for pom in *.pom; do
# fix-up version in all pom files
sed -i 's/@MAVEN.DEPLOY.VERSION@/%{version}/g' $pom
done
@@ -355,6 +353,37 @@ popd
%mvn_artifact res/maven/tomcat-el-api.pom output/build/lib/el-api.jar
%mvn_artifact res/maven/tomcat-jsp-api.pom output/build/lib/jsp-api.jar
%mvn_artifact res/maven/tomcat-servlet-api.pom output/build/lib/servlet-api.jar
+%mvn_artifact res/maven/tomcat-annotations-api.pom ${RPM_BUILD_ROOT}%{libdir}/annotations-api.jar
+%mvn_artifact res/maven/tomcat-api.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-api.jar
+%mvn_artifact res/maven/tomcat-catalina-ant.pom ${RPM_BUILD_ROOT}%{libdir}/catalina-ant.jar
+%mvn_artifact res/maven/tomcat-catalina-ha.pom ${RPM_BUILD_ROOT}%{libdir}/catalina-ha.jar
+%mvn_artifact res/maven/tomcat-ssi.pom ${RPM_BUILD_ROOT}%{libdir}/catalina-ssi.jar
+%mvn_artifact res/maven/tomcat-storeconfig.pom ${RPM_BUILD_ROOT}%{libdir}/catalina-storeconfig.jar
+%mvn_artifact res/maven/tomcat-tribes.pom ${RPM_BUILD_ROOT}%{libdir}/catalina-tribes.jar
+%mvn_artifact res/maven/tomcat-catalina.pom ${RPM_BUILD_ROOT}%{libdir}/catalina.jar
+%mvn_artifact res/maven/tomcat-jasper-el.pom ${RPM_BUILD_ROOT}%{libdir}/jasper-el.jar
+%mvn_artifact res/maven/tomcat-jasper.pom ${RPM_BUILD_ROOT}%{libdir}/jasper.jar
+%mvn_artifact res/maven/tomcat-jaspic-api.pom ${RPM_BUILD_ROOT}%{libdir}/jaspic-api.jar
+%mvn_artifact res/maven/tomcat-coyote.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-coyote.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-de.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-i18n-de.jar
+%mvn_artifact res/maven/tomcat-i18n-es.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-i18n-es.jar
+%mvn_artifact res/maven/tomcat-i18n-fr.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-i18n-fr.jar
+%mvn_artifact res/maven/tomcat-i18n-ja.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-i18n-ja.jar
+%mvn_artifact res/maven/tomcat-i18n-ko.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-i18n-ko.jar
+%mvn_artifact res/maven/tomcat-i18n-pt-BR.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-i18n-pt-BR.jar
+%mvn_artifact res/maven/tomcat-i18n-ru.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-i18n-ru.jar
+%mvn_artifact res/maven/tomcat-i18n-zh-CN.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-i18n-zh-CN.jar
+%mvn_artifact res/maven/tomcat-jdbc.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-jdbc.jar
+%mvn_artifact res/maven/tomcat-jni.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-jni.jar
+%mvn_artifact res/maven/tomcat-juli.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-juli.jar
+%mvn_artifact res/maven/tomcat-util-scan.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-util-scan.jar
+%mvn_artifact res/maven/tomcat-util.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-util.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.pom
+
%mvn_install
%pre
@@ -471,7 +500,7 @@ fi
%files docs-webapp
%{appdir}/docs
-%files lib
+%files lib -f .mfiles
%dir %{libdir}
%{libdir}/*.jar
%{_javadir}/*.jar
@@ -508,7 +537,9 @@ fi
%{appdir}/ROOT
%changelog
-* Wed Jun 14 2023 Hui Wang - 1:9.0.76-1
+* Tue Jun 20 2023 Hui Wang - 1:9.0.76-2
+- Resolves: rhbz#2189672 Missing Tomcat POM files in Fedora Rawhide
+- Remove JDTCompiler patch because ecj has been update
- Update to 9.0.76
- Resolves: rhbz#2188218 Link bin/tomcat-juli.jar to /usr/share/java
- Move tomcat-jsp-2.3-api.jar,tomcat-servlet-4.0-api.jar and tomcat-el-api.jar to the subpackages
From 3321e54ad4fb13646c4c961ac1580bb97dffaed7 Mon Sep 17 00:00:00 2001
From: Fedora Release Engineering
Date: Sat, 22 Jul 2023 16:33:06 +0000
Subject: [PATCH 076/177] Rebuilt for
https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering
---
tomcat.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tomcat.spec b/tomcat.spec
index ebfe52b..4888982 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -56,7 +56,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -537,6 +537,9 @@ fi
%{appdir}/ROOT
%changelog
+* Sat Jul 22 2023 Fedora Release Engineering - 1:9.0.76-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
+
* Tue Jun 20 2023 Hui Wang - 1:9.0.76-2
- Resolves: rhbz#2189672 Missing Tomcat POM files in Fedora Rawhide
- Remove JDTCompiler patch because ecj has been update
From 629d280689cc736385b042a9d39de1d41db2e387 Mon Sep 17 00:00:00 2001
From: Hui Wang
Date: Tue, 25 Jul 2023 18:33:59 +0800
Subject: [PATCH 077/177] Resolves: rhbz#2224318 There are duplicated jars in
the tomcat lib-subpackage Update to 9.0.78
---
sources | 2 +-
tomcat.spec | 34 +++++++++++++++++++++++++---------
2 files changed, 26 insertions(+), 10 deletions(-)
diff --git a/sources b/sources
index 2bc150a..fcff246 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (apache-tomcat-9.0.76-src.tar.gz) = 64de4778a4e142baa6e49d5b2d2ca30aaf0133fa1cb450ceb528d6da0440933d01dc9571b6f7b35162de41bf740b71487948ba179ea3d2c75a842848e1bae7bf
+SHA512 (apache-tomcat-9.0.78-src.tar.gz) = 220bf46004c4cbad536a7040c979651ee49a13994cf83045369c1bfdc0a96c0172ddc8fd24ab76c9526591c50033d915dbd258939b24d22d660050dcb5abcad4
diff --git a/tomcat.spec b/tomcat.spec
index 4888982..2185fb7 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -31,7 +31,7 @@
%global jspspec 2.3
%global major_version 9
%global minor_version 0
-%global micro_version 76
+%global micro_version 78
%global packdname apache-tomcat-%{version}-src
%global servletspec 4.0
%global elspec 3.0
@@ -56,7 +56,7 @@
Name: tomcat
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
License: ASL 2.0
@@ -327,7 +327,7 @@ pushd ${RPM_BUILD_ROOT}%{libdir}
%{__ln_s} ../../java/%{name}-el-%{elspec}-api.jar .
%{__ln_s} $(build-classpath ecj/ecj) jasper-jdt.jar
- %{__cp} -a ../../%{name}/bin/tomcat-juli.jar .
+ %{__ln_s} ../../%{name}/bin/tomcat-juli.jar .
popd
# symlink to the FHS locations where we've installed things
@@ -353,17 +353,16 @@ popd
%mvn_artifact res/maven/tomcat-el-api.pom output/build/lib/el-api.jar
%mvn_artifact res/maven/tomcat-jsp-api.pom output/build/lib/jsp-api.jar
%mvn_artifact res/maven/tomcat-servlet-api.pom output/build/lib/servlet-api.jar
+
+%mvn_file org.apache.tomcat:tomcat-annotations-api annotations-api.jar
%mvn_artifact res/maven/tomcat-annotations-api.pom ${RPM_BUILD_ROOT}%{libdir}/annotations-api.jar
%mvn_artifact res/maven/tomcat-api.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-api.jar
+%mvn_file org.apache.tomcat:tomcat-catalina-ant catalina-ant.jar
%mvn_artifact res/maven/tomcat-catalina-ant.pom ${RPM_BUILD_ROOT}%{libdir}/catalina-ant.jar
+%mvn_file org.apache.tomcat:tomcat-catalina-ha catalina-ha.jar
%mvn_artifact res/maven/tomcat-catalina-ha.pom ${RPM_BUILD_ROOT}%{libdir}/catalina-ha.jar
-%mvn_artifact res/maven/tomcat-ssi.pom ${RPM_BUILD_ROOT}%{libdir}/catalina-ssi.jar
-%mvn_artifact res/maven/tomcat-storeconfig.pom ${RPM_BUILD_ROOT}%{libdir}/catalina-storeconfig.jar
-%mvn_artifact res/maven/tomcat-tribes.pom ${RPM_BUILD_ROOT}%{libdir}/catalina-tribes.jar
+%mvn_file org.apache.tomcat:tomcat-catalina catalina.jar
%mvn_artifact res/maven/tomcat-catalina.pom ${RPM_BUILD_ROOT}%{libdir}/catalina.jar
-%mvn_artifact res/maven/tomcat-jasper-el.pom ${RPM_BUILD_ROOT}%{libdir}/jasper-el.jar
-%mvn_artifact res/maven/tomcat-jasper.pom ${RPM_BUILD_ROOT}%{libdir}/jasper.jar
-%mvn_artifact res/maven/tomcat-jaspic-api.pom ${RPM_BUILD_ROOT}%{libdir}/jaspic-api.jar
%mvn_artifact res/maven/tomcat-coyote.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-coyote.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
@@ -375,11 +374,24 @@ popd
%mvn_artifact res/maven/tomcat-i18n-pt-BR.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-i18n-pt-BR.jar
%mvn_artifact res/maven/tomcat-i18n-ru.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-i18n-ru.jar
%mvn_artifact res/maven/tomcat-i18n-zh-CN.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-i18n-zh-CN.jar
+%mvn_file org.apache.tomcat:tomcat-jasper-el jasper-el.jar
+%mvn_artifact res/maven/tomcat-jasper-el.pom ${RPM_BUILD_ROOT}%{libdir}/jasper-el.jar
+%mvn_file org.apache.tomcat:tomcat-jasper jasper.jar
+%mvn_artifact res/maven/tomcat-jasper.pom ${RPM_BUILD_ROOT}%{libdir}/jasper.jar
+%mvn_file org.apache.tomcat:tomcat-jaspic-api jaspic-api.jar
+%mvn_artifact res/maven/tomcat-jaspic-api.pom ${RPM_BUILD_ROOT}%{libdir}/jaspic-api.jar
%mvn_artifact res/maven/tomcat-jdbc.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-jdbc.jar
%mvn_artifact res/maven/tomcat-jni.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-jni.jar
%mvn_artifact res/maven/tomcat-juli.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-juli.jar
+%mvn_file org.apache.tomcat:tomcat-ssi catalina-ssi.jar
+%mvn_artifact res/maven/tomcat-ssi.pom ${RPM_BUILD_ROOT}%{libdir}/catalina-ssi.jar
+%mvn_file org.apache.tomcat:tomcat-storeconfig catalina-storeconfig.jar
+%mvn_artifact res/maven/tomcat-storeconfig.pom ${RPM_BUILD_ROOT}%{libdir}/catalina-storeconfig.jar
+%mvn_file org.apache.tomcat:tomcat-tribes catalina-tribes.jar
+%mvn_artifact res/maven/tomcat-tribes.pom ${RPM_BUILD_ROOT}%{libdir}/catalina-tribes.jar
%mvn_artifact res/maven/tomcat-util-scan.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-util-scan.jar
%mvn_artifact res/maven/tomcat-util.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-util.jar
+%mvn_file org.apache.tomcat:tomcat-websocket-api 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.pom
@@ -537,6 +549,10 @@ fi
%{appdir}/ROOT
%changelog
+* Tue Jul 25 2023 Hui Wang - 1:9.0.78-1
+- Resolves: rhbz#2224318 There are duplicated jars in the tomcat lib-subpackage
+- Update to 9.0.78
+
* Sat Jul 22 2023 Fedora Release Engineering - 1:9.0.76-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
From 6a5576eae4a7cb6888d5ae514fbaacd4fa76e71d Mon Sep 17 00:00:00 2001
From: Hui Wang
Date: Tue, 25 Jul 2023 18:45:35 +0800
Subject: [PATCH 078/177] copy tomcat-juli.jar into the lib subpackage
Resolves: rhbz#2224318 There are duplicated jars in the tomcat lib-subpackage
---
tomcat.spec | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tomcat.spec b/tomcat.spec
index 2185fb7..c1244ae 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -327,7 +327,7 @@ pushd ${RPM_BUILD_ROOT}%{libdir}
%{__ln_s} ../../java/%{name}-el-%{elspec}-api.jar .
%{__ln_s} $(build-classpath ecj/ecj) jasper-jdt.jar
- %{__ln_s} ../../%{name}/bin/tomcat-juli.jar .
+ cp ../../%{name}/bin/tomcat-juli.jar .
popd
# symlink to the FHS locations where we've installed things
From 8b4c6be1c692dfba42febdca263feb0fc26ba4d5 Mon Sep 17 00:00:00 2001
From: Hui Wang
Date: Tue, 25 Jul 2023 19:53:55 +0800
Subject: [PATCH 079/177] Related: rhbz#2224318 There are duplicated jars in
the tomcat lib-subpackage
---
tomcat.spec | 29 +++++++++++++++++------------
1 file changed, 17 insertions(+), 12 deletions(-)
diff --git a/tomcat.spec b/tomcat.spec
index c1244ae..63070c6 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -56,7 +56,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -354,14 +354,14 @@ popd
%mvn_artifact res/maven/tomcat-jsp-api.pom output/build/lib/jsp-api.jar
%mvn_artifact res/maven/tomcat-servlet-api.pom output/build/lib/servlet-api.jar
-%mvn_file org.apache.tomcat:tomcat-annotations-api annotations-api.jar
+%mvn_file org.apache.tomcat:tomcat-annotations-api tomcat/annotations-api
%mvn_artifact res/maven/tomcat-annotations-api.pom ${RPM_BUILD_ROOT}%{libdir}/annotations-api.jar
%mvn_artifact res/maven/tomcat-api.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-api.jar
-%mvn_file org.apache.tomcat:tomcat-catalina-ant catalina-ant.jar
+%mvn_file org.apache.tomcat:tomcat-catalina-ant tomcat/catalina-ant
%mvn_artifact res/maven/tomcat-catalina-ant.pom ${RPM_BUILD_ROOT}%{libdir}/catalina-ant.jar
-%mvn_file org.apache.tomcat:tomcat-catalina-ha catalina-ha.jar
+%mvn_file org.apache.tomcat:tomcat-catalina-ha tomcat/catalina-ha
%mvn_artifact res/maven/tomcat-catalina-ha.pom ${RPM_BUILD_ROOT}%{libdir}/catalina-ha.jar
-%mvn_file org.apache.tomcat:tomcat-catalina catalina.jar
+%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-coyote.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-coyote.jar
%mvn_artifact res/maven/tomcat-dbcp.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-dbcp.jar
@@ -374,29 +374,31 @@ popd
%mvn_artifact res/maven/tomcat-i18n-pt-BR.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-i18n-pt-BR.jar
%mvn_artifact res/maven/tomcat-i18n-ru.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-i18n-ru.jar
%mvn_artifact res/maven/tomcat-i18n-zh-CN.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-i18n-zh-CN.jar
-%mvn_file org.apache.tomcat:tomcat-jasper-el jasper-el.jar
+%mvn_file org.apache.tomcat:tomcat-jasper-el tomcat/jasper-el
%mvn_artifact res/maven/tomcat-jasper-el.pom ${RPM_BUILD_ROOT}%{libdir}/jasper-el.jar
-%mvn_file org.apache.tomcat:tomcat-jasper jasper.jar
+%mvn_file org.apache.tomcat:tomcat-jasper tomcat/jasper
%mvn_artifact res/maven/tomcat-jasper.pom ${RPM_BUILD_ROOT}%{libdir}/jasper.jar
-%mvn_file org.apache.tomcat:tomcat-jaspic-api jaspic-api.jar
+%mvn_file org.apache.tomcat:tomcat-jaspic-api tomcat/jaspic-api
%mvn_artifact res/maven/tomcat-jaspic-api.pom ${RPM_BUILD_ROOT}%{libdir}/jaspic-api.jar
%mvn_artifact res/maven/tomcat-jdbc.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-jdbc.jar
%mvn_artifact res/maven/tomcat-jni.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-jni.jar
%mvn_artifact res/maven/tomcat-juli.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-juli.jar
-%mvn_file org.apache.tomcat:tomcat-ssi catalina-ssi.jar
+%mvn_file org.apache.tomcat:tomcat-ssi tomcat/catalina-ssi
%mvn_artifact res/maven/tomcat-ssi.pom ${RPM_BUILD_ROOT}%{libdir}/catalina-ssi.jar
-%mvn_file org.apache.tomcat:tomcat-storeconfig catalina-storeconfig.jar
+%mvn_file org.apache.tomcat:tomcat-storeconfig tomcat/catalina-storeconfig
%mvn_artifact res/maven/tomcat-storeconfig.pom ${RPM_BUILD_ROOT}%{libdir}/catalina-storeconfig.jar
-%mvn_file org.apache.tomcat:tomcat-tribes catalina-tribes.jar
+%mvn_file org.apache.tomcat:tomcat-tribes tomcat/catalina-tribes
%mvn_artifact res/maven/tomcat-tribes.pom ${RPM_BUILD_ROOT}%{libdir}/catalina-tribes.jar
%mvn_artifact res/maven/tomcat-util-scan.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-util-scan.jar
%mvn_artifact res/maven/tomcat-util.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-util.jar
-%mvn_file org.apache.tomcat:tomcat-websocket-api websocket-api.jar
+%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.pom ${RPM_BUILD_ROOT}%{libdir}/tomcat-websocket.jar
%mvn_artifact res/maven/tomcat.pom
%mvn_install
+#remove the jars which %mvn_file installs jars in the %{_javadir}
+%{__rm} ${RPM_BUILD_ROOT}%{_javadir}/*.jar
%pre
# add the tomcat user and group
@@ -549,6 +551,9 @@ fi
%{appdir}/ROOT
%changelog
+* Tue Jul 25 2023 Hui Wang - 1:9.0.78-2
+- Resolves: rhbz#2224318 There are duplicated jars in the tomcat lib-subpackage
+
* Tue Jul 25 2023 Hui Wang - 1:9.0.78-1
- Resolves: rhbz#2224318 There are duplicated jars in the tomcat lib-subpackage
- Update to 9.0.78
From e5a0772f993b5fb85f42741e017eada92d40cf61 Mon Sep 17 00:00:00 2001
From: Hui Wang
Date: Tue, 25 Jul 2023 20:04:31 +0800
Subject: [PATCH 080/177] Related: rhbz#2224318 There are duplicated jars in
the tomcat lib-subpackage
---
tomcat.spec | 2 --
1 file changed, 2 deletions(-)
diff --git a/tomcat.spec b/tomcat.spec
index 63070c6..fb404e0 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -397,8 +397,6 @@ popd
%mvn_artifact res/maven/tomcat.pom
%mvn_install
-#remove the jars which %mvn_file installs jars in the %{_javadir}
-%{__rm} ${RPM_BUILD_ROOT}%{_javadir}/*.jar
%pre
# add the tomcat user and group
From 335305ef4fababd76569811ca18ebc065c4426bb Mon Sep 17 00:00:00 2001
From: Hui Wang
Date: Wed, 26 Jul 2023 18:04:07 +0800
Subject: [PATCH 081/177] Exclude jnidir in the lib subpackage
---
tomcat.spec | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/tomcat.spec b/tomcat.spec
index fb404e0..2becd14 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -56,7 +56,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -526,6 +526,7 @@ fi
%exclude %{_javadir}/%{name}-servlet-api.jar
%exclude %{_javadir}/%{name}-el-api.jar
%exclude %{_javadir}/%{name}-jsp-api.jar
+%exclude %{_jnidir}/*
%files jsp-%{jspspec}-api -f .mfiles-tomcat-jsp-api
%{_javadir}/%{name}-jsp-%{jspspec}*.jar
@@ -549,8 +550,11 @@ fi
%{appdir}/ROOT
%changelog
+* Wed Jul 26 2023 Hui Wang - 1:9.0.78-3
+- Exclude jnidir in the lib subpackage
+
* Tue Jul 25 2023 Hui Wang - 1:9.0.78-2
-- Resolves: rhbz#2224318 There are duplicated jars in the tomcat lib-subpackage
+- Resolves: rhbz#2224318 There are duplicated jars in the tomcat lib subpackage
* Tue Jul 25 2023 Hui Wang - 1:9.0.78-1
- Resolves: rhbz#2224318 There are duplicated jars in the tomcat lib-subpackage
From d26c29c4e836e1083303a2dfe4858e7b1e9be824 Mon Sep 17 00:00:00 2001
From: Hui Wang
Date: Fri, 4 Aug 2023 21:55:14 +0800
Subject: [PATCH 082/177] Fix files permission
---
tomcat.spec | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/tomcat.spec b/tomcat.spec
index 2becd14..fe229b4 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -56,7 +56,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -510,9 +510,11 @@ fi
%{appdir}/manager
%files docs-webapp
+%defattr(-,root,root,-)
%{appdir}/docs
%files lib -f .mfiles
+%defattr(-,root,root,-)
%dir %{libdir}
%{libdir}/*.jar
%{_javadir}/*.jar
@@ -529,17 +531,20 @@ fi
%exclude %{_jnidir}/*
%files jsp-%{jspspec}-api -f .mfiles-tomcat-jsp-api
+%defattr(-,root,root,-)
%{_javadir}/%{name}-jsp-%{jspspec}*.jar
%{libdir}/%{name}-jsp-%{jspspec}*.jar
%{_javadir}/%{name}-jsp-api.jar
%files servlet-%{servletspec}-api -f .mfiles-tomcat-servlet-api
+%defattr(-,root,root,-)
%doc LICENSE
%{_javadir}/%{name}-servlet-%{servletspec}*.jar
%{libdir}/%{name}-servlet-%{servletspec}*.jar
%{_javadir}/%{name}-servlet-api.jar
%files el-%{elspec}-api -f .mfiles-tomcat-el-api
+%defattr(-,root,root,-)
%doc LICENSE
%{_javadir}/%{name}-el-%{elspec}-api.jar
%{libdir}/%{name}-el-%{elspec}-api.jar
@@ -550,6 +555,9 @@ fi
%{appdir}/ROOT
%changelog
+* Fri Aug 04 2023 Hui Wang - 1:9.0.78-4
+- Fix files permission
+
* Wed Jul 26 2023 Hui Wang - 1:9.0.78-3
- Exclude jnidir in the lib subpackage
From 95b25c29b3b64ad79f0949ff09093d2c03034341 Mon Sep 17 00:00:00 2001
From: Hui Wang
Date: Tue, 8 Aug 2023 15:35:30 +0800
Subject: [PATCH 083/177] Revert the fix files permission
---
tomcat.spec | 5 -----
1 file changed, 5 deletions(-)
diff --git a/tomcat.spec b/tomcat.spec
index fe229b4..101c183 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -510,11 +510,9 @@ fi
%{appdir}/manager
%files docs-webapp
-%defattr(-,root,root,-)
%{appdir}/docs
%files lib -f .mfiles
-%defattr(-,root,root,-)
%dir %{libdir}
%{libdir}/*.jar
%{_javadir}/*.jar
@@ -531,20 +529,17 @@ fi
%exclude %{_jnidir}/*
%files jsp-%{jspspec}-api -f .mfiles-tomcat-jsp-api
-%defattr(-,root,root,-)
%{_javadir}/%{name}-jsp-%{jspspec}*.jar
%{libdir}/%{name}-jsp-%{jspspec}*.jar
%{_javadir}/%{name}-jsp-api.jar
%files servlet-%{servletspec}-api -f .mfiles-tomcat-servlet-api
-%defattr(-,root,root,-)
%doc LICENSE
%{_javadir}/%{name}-servlet-%{servletspec}*.jar
%{libdir}/%{name}-servlet-%{servletspec}*.jar
%{_javadir}/%{name}-servlet-api.jar
%files el-%{elspec}-api -f .mfiles-tomcat-el-api
-%defattr(-,root,root,-)
%doc LICENSE
%{_javadir}/%{name}-el-%{elspec}-api.jar
%{libdir}/%{name}-el-%{elspec}-api.jar
From f1ec641a7b07729b29bf8babcd2deea15ad8a720 Mon Sep 17 00:00:00 2001
From: Hui Wang
Date: Wed, 13 Sep 2023 15:32:34 +0800
Subject: [PATCH 084/177] Update to 9.0.80
---
sources | 2 +-
tomcat.spec | 10 +++++++---
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/sources b/sources
index fcff246..2068d0a 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (apache-tomcat-9.0.78-src.tar.gz) = 220bf46004c4cbad536a7040c979651ee49a13994cf83045369c1bfdc0a96c0172ddc8fd24ab76c9526591c50033d915dbd258939b24d22d660050dcb5abcad4
+SHA512 (apache-tomcat-9.0.80-src.tar.gz) = a2fb298c1fd2615e1a69371b5f84eb569e897faad3cbe17e3626460f5ce311085c120dd3f62c255fde87e6517915365ab52ada613776d45185b8e53624935114
diff --git a/tomcat.spec b/tomcat.spec
index 101c183..c33f106 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -31,7 +31,7 @@
%global jspspec 2.3
%global major_version 9
%global minor_version 0
-%global micro_version 78
+%global micro_version 80
%global packdname apache-tomcat-%{version}-src
%global servletspec 4.0
%global elspec 3.0
@@ -56,7 +56,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 4%{?dist}
+Release: 1%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -94,7 +94,7 @@ BuildRequires: aqute-bnd
BuildRequires: aqute-bndlib
BuildRequires: systemd
-Requires: java-headless >= 1:1.8.0
+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: %{name}-lib = %{epoch}:%{version}-%{release}
%if 0%{?fedora} || 0%{?rhel} > 7
@@ -550,6 +550,10 @@ fi
%{appdir}/ROOT
%changelog
+* Wed Sep 13 2023 Hui Wang - 1:9.0.80-1
+- Update to 9.0.80
+- Fix java version
+
* Fri Aug 04 2023 Hui Wang - 1:9.0.78-4
- Fix files permission
From 703557e0a6e86d22c00a160620749e61af18f818 Mon Sep 17 00:00:00 2001
From: Hui Wang
Date: Mon, 16 Oct 2023 11:06:28 +0800
Subject: [PATCH 085/177] Update to 9.0.82 Resolves: rhbz#2244333 Wrong dbcp
class in tomcat 9
---
sources | 2 +-
tomcat-9.0.conf | 2 +-
tomcat.spec | 6 +++++-
3 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/sources b/sources
index 2068d0a..05325b8 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (apache-tomcat-9.0.80-src.tar.gz) = a2fb298c1fd2615e1a69371b5f84eb569e897faad3cbe17e3626460f5ce311085c120dd3f62c255fde87e6517915365ab52ada613776d45185b8e53624935114
+SHA512 (apache-tomcat-9.0.82-src.tar.gz) = 0291196832150147230a263bcfd64f7ac9ce9f6c26924f72b831d28479e7886f00b9ab3adff175785e8c5b47d8b16f7a7897acafa3474428f48cec02fd852b3e
diff --git a/tomcat-9.0.conf b/tomcat-9.0.conf
index e5fa60a..6e9eed1 100644
--- a/tomcat-9.0.conf
+++ b/tomcat-9.0.conf
@@ -35,7 +35,7 @@ CATALINA_TMPDIR="/var/cache/tomcat/temp"
#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"
+JAVA_OPTS="-Djavax.sql.DataSource.Factory=org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory"
# You can change your tomcat locale here
#LANG="en_US"
diff --git a/tomcat.spec b/tomcat.spec
index c33f106..8c97935 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -31,7 +31,7 @@
%global jspspec 2.3
%global major_version 9
%global minor_version 0
-%global micro_version 80
+%global micro_version 82
%global packdname apache-tomcat-%{version}-src
%global servletspec 4.0
%global elspec 3.0
@@ -550,6 +550,10 @@ fi
%{appdir}/ROOT
%changelog
+* Mon Oct 16 2023 Hui Wang - 1:9.0.82-1
+- Update to 9.0.82
+- Resolves: rhbz#2244333 Wrong dbcp class in tomcat 9
+
* Wed Sep 13 2023 Hui Wang - 1:9.0.80-1
- Update to 9.0.80
- Fix java version
From 939897238cdd90835ccc354c775b4c86463c98f2 Mon Sep 17 00:00:00 2001
From: Hui Wang
Date: Mon, 16 Oct 2023 11:36:25 +0800
Subject: [PATCH 086/177] Update tomcat-build.patch
---
tomcat-build.patch | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/tomcat-build.patch b/tomcat-build.patch
index 49c63ff..cdf73ef 100644
--- a/tomcat-build.patch
+++ b/tomcat-build.patch
@@ -1,12 +1,19 @@
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
+--- res/bnd/build-defaults.bnd.orig 2023-10-16 11:23:04.752754202 +0800
++++ res/bnd/build-defaults.bnd 2023-10-16 11:23:29.931876910 +0800
@@ -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}
+ Bundle-License: https://www.apache.org/licenses/LICENSE-2.0.txt
Specification-Title: Apache Tomcat
- Specification-Version: ${version.major.minor}
+@@ -36,4 +36,4 @@ X-Compile-Target-JDK: ${compile.release}
+
+ -removeheaders: DSTAMP,TODAY,TSTAMP
+
+-module.name: org.apache.${replace;${Bundle-Name};-;.}
+\ No newline at end of file
++module.name: org.apache.${replace;${Bundle-Name};-;.}
From a1fd99bcdea731d166b0e6b587c503b6119a3b70 Mon Sep 17 00:00:00 2001
From: Hui Wang
Date: Fri, 1 Dec 2023 17:41:19 +0800
Subject: [PATCH 087/177] Update to 9.0.83
---
sources | 2 +-
tomcat.spec | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/sources b/sources
index 05325b8..4196751 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (apache-tomcat-9.0.82-src.tar.gz) = 0291196832150147230a263bcfd64f7ac9ce9f6c26924f72b831d28479e7886f00b9ab3adff175785e8c5b47d8b16f7a7897acafa3474428f48cec02fd852b3e
+SHA512 (apache-tomcat-9.0.83-src.tar.gz) = 28e112a9d01918434ad03c414058275bbc4e34be408c2cfe2d819c3a08cadc3c31920e279c5312529aa2f5abf1e002537012c5f06d43ba8894448afd5585c231
diff --git a/tomcat.spec b/tomcat.spec
index 8c97935..4d2cae1 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -31,7 +31,7 @@
%global jspspec 2.3
%global major_version 9
%global minor_version 0
-%global micro_version 82
+%global micro_version 83
%global packdname apache-tomcat-%{version}-src
%global servletspec 4.0
%global elspec 3.0
@@ -550,6 +550,9 @@ fi
%{appdir}/ROOT
%changelog
+* Fri Dec 01 2023 Hui Wang - 1:9.0.83-1
+- Update to 9.0.83
+
* Mon Oct 16 2023 Hui Wang - 1:9.0.82-1
- Update to 9.0.82
- Resolves: rhbz#2244333 Wrong dbcp class in tomcat 9
From a50fce8a6a5dff61c9bff89e785859f33d9ee893 Mon Sep 17 00:00:00 2001
From: Fedora Release Engineering
Date: Sat, 27 Jan 2024 06:30:56 +0000
Subject: [PATCH 088/177] Rebuilt for
https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
---
tomcat.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tomcat.spec b/tomcat.spec
index 4d2cae1..74eb1ea 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -56,7 +56,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -550,6 +550,9 @@ fi
%{appdir}/ROOT
%changelog
+* Sat Jan 27 2024 Fedora Release Engineering - 1:9.0.83-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
+
* Fri Dec 01 2023 Hui Wang - 1:9.0.83-1
- Update to 9.0.83
From 1c0506a38e7f9988511a996d4923e7053cb21ee7 Mon Sep 17 00:00:00 2001
From: Jiri Vanek
Date: Tue, 27 Feb 2024 18:20:42 +0100
Subject: [PATCH 089/177] Rebuilt for java-21-openjdk as system jdk
https://fedoraproject.org/wiki/Changes/Java21
---
tomcat.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tomcat.spec b/tomcat.spec
index 74eb1ea..cbed8f5 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -56,7 +56,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -550,6 +550,9 @@ fi
%{appdir}/ROOT
%changelog
+* Tue Feb 27 2024 Jiri Vanek - 1:9.0.83-3
+- Rebuilt for java-21-openjdk as system jdk
+
* Sat Jan 27 2024 Fedora Release Engineering - 1:9.0.83-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
From 1ee70ac927e6926b3afdd3164175319e5b78a5c1 Mon Sep 17 00:00:00 2001
From: Adam Williamson
Date: Thu, 29 Feb 2024 15:45:57 -0800
Subject: [PATCH 090/177] Accept java-21-headless as one of the alternatives
for java
---
tomcat.spec | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/tomcat.spec b/tomcat.spec
index cbed8f5..3e2e6e6 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -56,7 +56,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -94,7 +94,7 @@ BuildRequires: aqute-bnd
BuildRequires: aqute-bndlib
BuildRequires: systemd
-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: (java-headless >= 1:1.8 or java-1.8.0-headless or java-11-headless or java-17-headless or java-21-headless or java >= 1:1.8)
Requires: javapackages-tools
Requires: %{name}-lib = %{epoch}:%{version}-%{release}
%if 0%{?fedora} || 0%{?rhel} > 7
@@ -550,6 +550,9 @@ fi
%{appdir}/ROOT
%changelog
+* Thu Feb 29 2024 Adam Williamson - 1:9.0.83-4
+- Accept java-21-headless as one of the alternatives for java
+
* Tue Feb 27 2024 Jiri Vanek - 1:9.0.83-3
- Rebuilt for java-21-openjdk as system jdk
From 9f4d5c76f549c6a11c349097c60bc44662663248 Mon Sep 17 00:00:00 2001
From: dsoumis
Date: Fri, 24 May 2024 14:10:14 +0300
Subject: [PATCH 091/177] Update to 10.1.24
---
java-9-start-up-parameters.conf | 7 -
module-start-up-parameters.conf | 7 +
rhbz-1857043.patch | 29 ++--
sources | 2 +-
tomcat-10.1-JDTCompiler.patch | 46 ++++++
....patch => tomcat-10.1-bnd-annotation.patch | 0
...=> tomcat-10.1-bootstrap-MANIFEST.MF.patch | 0
tomcat-10.1-catalina-policy.patch | 17 +++
...digest.script => tomcat-10.1-digest.script | 0
...h => tomcat-10.1-tomcat-users-webapp.patch | 0
....script => tomcat-10.1-tool-wrapper.script | 0
tomcat-9.0.conf => tomcat-10.1.conf | 15 +-
tomcat-9.0.logrotate => tomcat-10.1.logrotate | 0
tomcat-9.0.service => tomcat-10.1.service | 0
tomcat-9.0.sysconfig => tomcat-10.1.sysconfig | 0
tomcat-9.0.wrapper => tomcat-10.1.wrapper | 0
tomcat-9.0-JDTCompiler.patch | 24 ---
tomcat-9.0-catalina-policy.patch | 25 ----
tomcat-9.0-log4j.properties | 11 --
tomcat.spec | 139 ++++++++----------
20 files changed, 150 insertions(+), 172 deletions(-)
delete mode 100644 java-9-start-up-parameters.conf
create mode 100644 module-start-up-parameters.conf
create mode 100644 tomcat-10.1-JDTCompiler.patch
rename tomcat-9.0-bnd-annotation.patch => tomcat-10.1-bnd-annotation.patch (100%)
rename tomcat-9.0-bootstrap-MANIFEST.MF.patch => tomcat-10.1-bootstrap-MANIFEST.MF.patch (100%)
create mode 100644 tomcat-10.1-catalina-policy.patch
rename tomcat-9.0-digest.script => tomcat-10.1-digest.script (100%)
rename tomcat-9.0-tomcat-users-webapp.patch => tomcat-10.1-tomcat-users-webapp.patch (100%)
rename tomcat-9.0-tool-wrapper.script => tomcat-10.1-tool-wrapper.script (100%)
rename tomcat-9.0.conf => tomcat-10.1.conf (73%)
rename tomcat-9.0.logrotate => tomcat-10.1.logrotate (100%)
rename tomcat-9.0.service => tomcat-10.1.service (100%)
rename tomcat-9.0.sysconfig => tomcat-10.1.sysconfig (100%)
rename tomcat-9.0.wrapper => tomcat-10.1.wrapper (100%)
delete mode 100644 tomcat-9.0-JDTCompiler.patch
delete mode 100644 tomcat-9.0-catalina-policy.patch
delete mode 100644 tomcat-9.0-log4j.properties
diff --git a/java-9-start-up-parameters.conf b/java-9-start-up-parameters.conf
deleted file mode 100644
index 341e077..0000000
--- a/java-9-start-up-parameters.conf
+++ /dev/null
@@ -1,7 +0,0 @@
-# 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
diff --git a/module-start-up-parameters.conf b/module-start-up-parameters.conf
new file mode 100644
index 0000000..ba35e23
--- /dev/null
+++ b/module-start-up-parameters.conf
@@ -0,0 +1,7 @@
+# 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
diff --git a/rhbz-1857043.patch b/rhbz-1857043.patch
index dd74c3b..dd2a38c 100644
--- a/rhbz-1857043.patch
+++ b/rhbz-1857043.patch
@@ -1,7 +1,6 @@
-diff -up ./build.xml.orig ./build.xml
---- build.xml.orig 2021-07-07 10:53:55.493742841 +0800
-+++ build.xml 2021-07-07 11:09:43.107968515 +0800
-@@ -1020,7 +1020,7 @@
+--- build.xml.orig 2024-05-09 20:41:23.000000000 +0300
++++ build.xml 2024-05-22 17:26:11.558331902 +0300
+@@ -1111,7 +1111,7 @@
filesDir="${tomcat.classes}"
filesId="files.annotations-api"
manifest="${tomcat.manifests}/annotations-api.jar.manifest"
@@ -10,7 +9,7 @@ diff -up ./build.xml.orig ./build.xml
++ addOSGi="false" />
+
+
+
+ addOSGi="false" />
@@ -58,7 +65,7 @@ diff -up ./build.xml.orig ./build.xml
= 1:4.10
+BuildRequires: ant >= 1.10.2
+BuildRequires: ecj >= 4.20
BuildRequires: findutils
-BuildRequires: java-devel >= 1:1.8.0
+BuildRequires: java-devel >= 17
BuildRequires: javapackages-local
BuildRequires: aqute-bnd
BuildRequires: aqute-bndlib
BuildRequires: systemd
+BuildRequires: tomcat-jakartaee-migration
-Requires: (java-headless >= 1:1.8 or java-1.8.0-headless or java-11-headless or java-17-headless or java-21-headless or java >= 1:1.8)
+Requires: (java-headless >= 11 or java >= 11)
Requires: javapackages-tools
Requires: %{name}-lib = %{epoch}:%{version}-%{release}
%if 0%{?fedora} || 0%{?rhel} > 7
@@ -135,7 +137,7 @@ The docs web application for Apache Tomcat.
%package jsp-%{jspspec}-api
Summary: Apache Tomcat JavaServer Pages v%{jspspec} API Implementation Classes
Provides: jsp = %{jspspec}
-Obsoletes: %{name}-jsp-2.2-api
+Obsoletes: %{name}-jsp-2.3-api
Requires: %{name}-servlet-%{servletspec}-api = %{epoch}:%{version}-%{release}
Requires: %{name}-el-%{elspec}-api = %{epoch}:%{version}-%{release}
@@ -147,7 +149,8 @@ Summary: Libraries needed to run the Tomcat Web container
Requires: %{name}-jsp-%{jspspec}-api = %{epoch}:%{version}-%{release}
Requires: %{name}-servlet-%{servletspec}-api = %{epoch}:%{version}-%{release}
Requires: %{name}-el-%{elspec}-api = %{epoch}:%{version}-%{release}
-Requires: ecj >= 1:4.10
+Requires: ecj >= 4.20
+Requires: tomcat-jakartaee-migration
Requires(preun): coreutils
%description lib
@@ -156,9 +159,7 @@ Libraries needed to run the Tomcat Web container.
%package servlet-%{servletspec}-api
Summary: Apache Tomcat Java Servlet v%{servletspec} API Implementation Classes
Provides: servlet = %{servletspec}
-Provides: servlet6
-Provides: servlet3
-Obsoletes: %{name}-servlet-3.1-api
+Obsoletes: %{name}-servlet-4.0-api
%description servlet-%{servletspec}-api
Apache Tomcat Servlet API Implementation Classes.
@@ -166,7 +167,7 @@ Apache Tomcat Servlet API Implementation Classes.
%package el-%{elspec}-api
Summary: Apache Tomcat Expression Language v%{elspec} API Implementation Classes
Provides: el_api = %{elspec}
-Obsoletes: %{name}-el-2.2-api
+Obsoletes: %{name}-el-3.0-api
%description el-%{elspec}-api
Apache Tomcat EL API Implementation Classes.
@@ -189,6 +190,7 @@ find . -type f \( -name "*.bat" -o -name "*.class" -o -name Thumbs.db -o -name "
%patch 2 -p0
%patch 3 -p0
%patch 4 -p0
+%patch 5 -p0
%patch 6 -p0
# Remove webservices naming resources as it's generally unused
@@ -196,14 +198,13 @@ find . -type f \( -name "*.bat" -o -name "*.class" -o -name Thumbs.db -o -name "
# Configure maven files
%mvn_package ":tomcat-el-api" tomcat-el-api
-%mvn_alias "org.apache.tomcat:tomcat-el-api" "org.eclipse.jetty.orbit:javax.el"
+%mvn_alias "org.apache.tomcat:tomcat-el-api" "jakarta.servlet:jakarta.servlet-api"
%mvn_package ":tomcat-jsp-api" tomcat-jsp-api
-%mvn_alias "org.apache.tomcat:tomcat-jsp-api" "org.eclipse.jetty.orbit:javax.servlet.jsp"
+%mvn_alias "org.apache.tomcat:tomcat-jsp-api" "jakarta.servlet:jakarta.servlet.jsp"
%mvn_package ":tomcat-servlet-api" tomcat-servlet-api
-
%build
-export OPT_JAR_LIST="xalan-j2-serializer"
+#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
@@ -225,12 +226,13 @@ touch HACK
-Dbnd-annotation.jar="$(build-classpath aqute-bnd/biz.aQute.bnd.annotation)" \
-Dversion="%{version}" \
-Dversion.build="%{micro_version}" \
+ -Dmigration-lib.jar="$(build-classpath tomcat-jakartaee-migration/jakartaee-migration.jar)" \
deploy
# remove some jars that we'll replace with symlinks later
-%{__rm} output/build/bin/commons-daemon.jar output/build/lib/ecj.jar
+%{__rm} output/build/bin/commons-daemon.jar output/build/lib/ecj.jar output/build/lib/jakartaee-migration.jar
# Remove the example webapps per Apache Tomcat Security Considerations
-# see https://tomcat.apache.org/tomcat-9.0-doc/security-howto.html
+# see https://tomcat.apache.org/tomcat-10.1-doc/security-howto.html
%{__rm} -rf output/build/webapps/examples
@@ -238,7 +240,6 @@ touch HACK
# build initial path structure
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_bindir}
%{__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}/sysconfig
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{appdir}
@@ -271,33 +272,33 @@ popd
> ${RPM_BUILD_ROOT}%{confdir}/%{name}.conf
%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
-e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
- -e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE3} \
+ -e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE2} \
> ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/%{name}
-%{__install} -m 0644 %{SOURCE4} \
+%{__install} -m 0755 %{SOURCE3} \
${RPM_BUILD_ROOT}%{_sbindir}/%{name}
-%{__install} -m 0644 %{SOURCE11} \
+%{__install} -m 0644 %{SOURCE7} \
${RPM_BUILD_ROOT}%{_unitdir}/%{name}.service
-%{__sed} -e "s|\@\@\@TCLOG\@\@\@|%{logdir}|g" %{SOURCE5} \
+%{__sed} -e "s|\@\@\@TCLOG\@\@\@|%{logdir}|g" %{SOURCE4} \
> ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/%{name}.disabled
%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
-e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
- -e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE6} \
+ -e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE5} \
> ${RPM_BUILD_ROOT}%{_bindir}/%{name}-digest
%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
-e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
- -e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE7} \
+ -e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE6} \
> ${RPM_BUILD_ROOT}%{_bindir}/%{name}-tool-wrapper
-%{__install} -m 0644 %{SOURCE21} \
+%{__install} -m 0644 %{SOURCE8} \
${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/functions
-%{__install} -m 0755 %{SOURCE30} \
+%{__install} -m 0755 %{SOURCE9} \
${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/preamble
-%{__install} -m 0755 %{SOURCE31} \
+%{__install} -m 0755 %{SOURCE10} \
${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/server
-%{__install} -m 0644 %{SOURCE32} \
+%{__install} -m 0644 %{SOURCE11} \
${RPM_BUILD_ROOT}%{_unitdir}/%{name}@.service
-%{__install} -m 0644 %{SOURCE33} ${RPM_BUILD_ROOT}%{confdir}/conf.d/
+%{__install} -m 0644 %{SOURCE12} ${RPM_BUILD_ROOT}%{confdir}/conf.d/
# Substitute libnames in catalina-tasks.xml
sed -i \
@@ -318,6 +319,7 @@ popd
pushd output/build
%{_bindir}/build-jar-repository lib ecj 2>&1
+ %{_bindir}/build-jar-repository lib tomcat-jakartaee-migration 2>&1
popd
pushd ${RPM_BUILD_ROOT}%{libdir}
@@ -326,6 +328,7 @@ pushd ${RPM_BUILD_ROOT}%{libdir}
%{__ln_s} ../../java/%{name}-servlet-%{servletspec}-api.jar .
%{__ln_s} ../../java/%{name}-el-%{elspec}-api.jar .
%{__ln_s} $(build-classpath ecj/ecj) jasper-jdt.jar
+ %{__ln_s} $(build-classpath tomcat-jakartaee-migration/jakartaee-migration) jakartaee-migration.jar
cp ../../%{name}/bin/tomcat-juli.jar .
popd
@@ -394,6 +397,7 @@ popd
%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.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_install
@@ -413,18 +417,6 @@ exit 0
# install but don't activate
%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
# clean tempdir and workdir on removal or upgrade
%{__rm} -rf %{workdir}/* %{tempdir}/*
@@ -433,24 +425,6 @@ exit 0
%postun
%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
%defattr(0664,root,tomcat,0755)
%doc {LICENSE,NOTICE,RELEASE*}
@@ -483,7 +457,7 @@ fi
%attr(0775,root,tomcat) %dir %{confdir}/Catalina/localhost
%attr(0755,root,tomcat) %dir %{confdir}/conf.d
%{confdir}/conf.d/README
-%{confdir}/conf.d/java-9-start-up-parameters.conf
+%{confdir}/conf.d/module-start-up-parameters.conf
%config(noreplace) %{confdir}/%{name}.conf
%config(noreplace) %{confdir}/*.policy
%config(noreplace) %{confdir}/*.properties
@@ -550,6 +524,9 @@ fi
%{appdir}/ROOT
%changelog
+* Fri May 31 2024 Dimitris Soumis - 1:10.1.24-1
+- Update to 10.1.24
+
* Thu Feb 29 2024 Adam Williamson - 1:9.0.83-4
- Accept java-21-headless as one of the alternatives for java
From e151cd9da8aeccd9bf6c13296d2ea78a6cf8c8ab Mon Sep 17 00:00:00 2001
From: dsoumis
Date: Fri, 7 Jun 2024 19:04:58 +0300
Subject: [PATCH 092/177] Revert "Update to 10.1.24"
This reverts commit 9f4d5c76f549c6a11c349097c60bc44662663248.
---
java-9-start-up-parameters.conf | 7 +
module-start-up-parameters.conf | 7 -
rhbz-1857043.patch | 29 ++--
sources | 2 +-
tomcat-10.1-JDTCompiler.patch | 46 ------
tomcat-10.1-catalina-policy.patch | 17 ---
tomcat-9.0-JDTCompiler.patch | 24 +++
...n.patch => tomcat-9.0-bnd-annotation.patch | 0
... => tomcat-9.0-bootstrap-MANIFEST.MF.patch | 0
tomcat-9.0-catalina-policy.patch | 25 ++++
...-digest.script => tomcat-9.0-digest.script | 0
tomcat-9.0-log4j.properties | 11 ++
...ch => tomcat-9.0-tomcat-users-webapp.patch | 0
...r.script => tomcat-9.0-tool-wrapper.script | 0
tomcat-10.1.conf => tomcat-9.0.conf | 15 +-
tomcat-10.1.logrotate => tomcat-9.0.logrotate | 0
tomcat-10.1.service => tomcat-9.0.service | 0
tomcat-10.1.sysconfig => tomcat-9.0.sysconfig | 0
tomcat-10.1.wrapper => tomcat-9.0.wrapper | 0
tomcat.spec | 139 ++++++++++--------
20 files changed, 172 insertions(+), 150 deletions(-)
create mode 100644 java-9-start-up-parameters.conf
delete mode 100644 module-start-up-parameters.conf
delete mode 100644 tomcat-10.1-JDTCompiler.patch
delete mode 100644 tomcat-10.1-catalina-policy.patch
create mode 100644 tomcat-9.0-JDTCompiler.patch
rename tomcat-10.1-bnd-annotation.patch => tomcat-9.0-bnd-annotation.patch (100%)
rename tomcat-10.1-bootstrap-MANIFEST.MF.patch => tomcat-9.0-bootstrap-MANIFEST.MF.patch (100%)
create mode 100644 tomcat-9.0-catalina-policy.patch
rename tomcat-10.1-digest.script => tomcat-9.0-digest.script (100%)
create mode 100644 tomcat-9.0-log4j.properties
rename tomcat-10.1-tomcat-users-webapp.patch => tomcat-9.0-tomcat-users-webapp.patch (100%)
rename tomcat-10.1-tool-wrapper.script => tomcat-9.0-tool-wrapper.script (100%)
rename tomcat-10.1.conf => tomcat-9.0.conf (73%)
rename tomcat-10.1.logrotate => tomcat-9.0.logrotate (100%)
rename tomcat-10.1.service => tomcat-9.0.service (100%)
rename tomcat-10.1.sysconfig => tomcat-9.0.sysconfig (100%)
rename tomcat-10.1.wrapper => tomcat-9.0.wrapper (100%)
diff --git a/java-9-start-up-parameters.conf b/java-9-start-up-parameters.conf
new file mode 100644
index 0000000..341e077
--- /dev/null
+++ b/java-9-start-up-parameters.conf
@@ -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
diff --git a/module-start-up-parameters.conf b/module-start-up-parameters.conf
deleted file mode 100644
index ba35e23..0000000
--- a/module-start-up-parameters.conf
+++ /dev/null
@@ -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
diff --git a/rhbz-1857043.patch b/rhbz-1857043.patch
index dd2a38c..dd74c3b 100644
--- a/rhbz-1857043.patch
+++ b/rhbz-1857043.patch
@@ -1,6 +1,7 @@
---- build.xml.orig 2024-05-09 20:41:23.000000000 +0300
-+++ build.xml 2024-05-22 17:26:11.558331902 +0300
-@@ -1111,7 +1111,7 @@
+diff -up ./build.xml.orig ./build.xml
+--- build.xml.orig 2021-07-07 10:53:55.493742841 +0800
++++ build.xml 2021-07-07 11:09:43.107968515 +0800
+@@ -1020,7 +1020,7 @@
filesDir="${tomcat.classes}"
filesId="files.annotations-api"
manifest="${tomcat.manifests}/annotations-api.jar.manifest"
@@ -9,7 +10,7 @@
-+ addOSGi="false" />
-
-
-
+ addOSGi="false" />
@@ -65,7 +58,7 @@
= 1.10.2
-BuildRequires: ecj >= 4.20
+BuildRequires: ant
+BuildRequires: ecj >= 1:4.10
BuildRequires: findutils
-BuildRequires: java-devel >= 17
+BuildRequires: java-devel >= 1:1.8.0
BuildRequires: javapackages-local
BuildRequires: aqute-bnd
BuildRequires: aqute-bndlib
BuildRequires: systemd
-BuildRequires: tomcat-jakartaee-migration
-Requires: (java-headless >= 11 or java >= 11)
+Requires: (java-headless >= 1:1.8 or java-1.8.0-headless or java-11-headless or java-17-headless or java-21-headless or java >= 1:1.8)
Requires: javapackages-tools
Requires: %{name}-lib = %{epoch}:%{version}-%{release}
%if 0%{?fedora} || 0%{?rhel} > 7
@@ -137,7 +135,7 @@ The docs web application for Apache Tomcat.
%package jsp-%{jspspec}-api
Summary: Apache Tomcat JavaServer Pages v%{jspspec} API Implementation Classes
Provides: jsp = %{jspspec}
-Obsoletes: %{name}-jsp-2.3-api
+Obsoletes: %{name}-jsp-2.2-api
Requires: %{name}-servlet-%{servletspec}-api = %{epoch}:%{version}-%{release}
Requires: %{name}-el-%{elspec}-api = %{epoch}:%{version}-%{release}
@@ -149,8 +147,7 @@ Summary: Libraries needed to run the Tomcat Web container
Requires: %{name}-jsp-%{jspspec}-api = %{epoch}:%{version}-%{release}
Requires: %{name}-servlet-%{servletspec}-api = %{epoch}:%{version}-%{release}
Requires: %{name}-el-%{elspec}-api = %{epoch}:%{version}-%{release}
-Requires: ecj >= 4.20
-Requires: tomcat-jakartaee-migration
+Requires: ecj >= 1:4.10
Requires(preun): coreutils
%description lib
@@ -159,7 +156,9 @@ Libraries needed to run the Tomcat Web container.
%package servlet-%{servletspec}-api
Summary: Apache Tomcat Java Servlet v%{servletspec} API Implementation Classes
Provides: servlet = %{servletspec}
-Obsoletes: %{name}-servlet-4.0-api
+Provides: servlet6
+Provides: servlet3
+Obsoletes: %{name}-servlet-3.1-api
%description servlet-%{servletspec}-api
Apache Tomcat Servlet API Implementation Classes.
@@ -167,7 +166,7 @@ Apache Tomcat Servlet API Implementation Classes.
%package el-%{elspec}-api
Summary: Apache Tomcat Expression Language v%{elspec} API Implementation Classes
Provides: el_api = %{elspec}
-Obsoletes: %{name}-el-3.0-api
+Obsoletes: %{name}-el-2.2-api
%description el-%{elspec}-api
Apache Tomcat EL API Implementation Classes.
@@ -190,7 +189,6 @@ find . -type f \( -name "*.bat" -o -name "*.class" -o -name Thumbs.db -o -name "
%patch 2 -p0
%patch 3 -p0
%patch 4 -p0
-%patch 5 -p0
%patch 6 -p0
# Remove webservices naming resources as it's generally unused
@@ -198,13 +196,14 @@ find . -type f \( -name "*.bat" -o -name "*.class" -o -name Thumbs.db -o -name "
# Configure maven files
%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_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
+
%build
-#export OPT_JAR_LIST="xalan-j2-serializer"
+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
@@ -226,13 +225,12 @@ touch HACK
-Dbnd-annotation.jar="$(build-classpath aqute-bnd/biz.aQute.bnd.annotation)" \
-Dversion="%{version}" \
-Dversion.build="%{micro_version}" \
- -Dmigration-lib.jar="$(build-classpath tomcat-jakartaee-migration/jakartaee-migration.jar)" \
deploy
# 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/bin/commons-daemon.jar output/build/lib/ecj.jar
# 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
@@ -240,6 +238,7 @@ touch HACK
# build initial path structure
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_bindir}
%{__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}/sysconfig
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{appdir}
@@ -272,33 +271,33 @@ popd
> ${RPM_BUILD_ROOT}%{confdir}/%{name}.conf
%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
-e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
- -e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE2} \
+ -e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE3} \
> ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/%{name}
-%{__install} -m 0755 %{SOURCE3} \
+%{__install} -m 0644 %{SOURCE4} \
${RPM_BUILD_ROOT}%{_sbindir}/%{name}
-%{__install} -m 0644 %{SOURCE7} \
+%{__install} -m 0644 %{SOURCE11} \
${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
%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
-e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
- -e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE5} \
+ -e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE6} \
> ${RPM_BUILD_ROOT}%{_bindir}/%{name}-digest
%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|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
-%{__install} -m 0644 %{SOURCE8} \
+%{__install} -m 0644 %{SOURCE21} \
${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/functions
-%{__install} -m 0755 %{SOURCE9} \
+%{__install} -m 0755 %{SOURCE30} \
${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/preamble
-%{__install} -m 0755 %{SOURCE10} \
+%{__install} -m 0755 %{SOURCE31} \
${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/server
-%{__install} -m 0644 %{SOURCE11} \
+%{__install} -m 0644 %{SOURCE32} \
${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
sed -i \
@@ -319,7 +318,6 @@ popd
pushd output/build
%{_bindir}/build-jar-repository lib ecj 2>&1
- %{_bindir}/build-jar-repository lib tomcat-jakartaee-migration 2>&1
popd
pushd ${RPM_BUILD_ROOT}%{libdir}
@@ -328,7 +326,6 @@ pushd ${RPM_BUILD_ROOT}%{libdir}
%{__ln_s} ../../java/%{name}-servlet-%{servletspec}-api.jar .
%{__ln_s} ../../java/%{name}-el-%{elspec}-api.jar .
%{__ln_s} $(build-classpath ecj/ecj) jasper-jdt.jar
- %{__ln_s} $(build-classpath tomcat-jakartaee-migration/jakartaee-migration) jakartaee-migration.jar
cp ../../%{name}/bin/tomcat-juli.jar .
popd
@@ -397,7 +394,6 @@ popd
%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.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_install
@@ -417,6 +413,18 @@ exit 0
# install but don't activate
%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
# clean tempdir and workdir on removal or upgrade
%{__rm} -rf %{workdir}/* %{tempdir}/*
@@ -425,6 +433,24 @@ exit 0
%postun
%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
%defattr(0664,root,tomcat,0755)
%doc {LICENSE,NOTICE,RELEASE*}
@@ -457,7 +483,7 @@ exit 0
%attr(0775,root,tomcat) %dir %{confdir}/Catalina/localhost
%attr(0755,root,tomcat) %dir %{confdir}/conf.d
%{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}/*.policy
%config(noreplace) %{confdir}/*.properties
@@ -524,9 +550,6 @@ exit 0
%{appdir}/ROOT
%changelog
-* Fri May 31 2024 Dimitris Soumis - 1:10.1.24-1
-- Update to 10.1.24
-
* Thu Feb 29 2024 Adam Williamson - 1:9.0.83-4
- Accept java-21-headless as one of the alternatives for java
From 6222b99f521358c465446c3c9957d82c05eb1c47 Mon Sep 17 00:00:00 2001
From: dsoumis
Date: Fri, 7 Jun 2024 19:07:06 +0300
Subject: [PATCH 093/177] Revert 10.1.24 update, rebase to 9.0.89
---
sources | 2 +-
tomcat.spec | 7 +++++--
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/sources b/sources
index 4196751..a23d2c8 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (apache-tomcat-9.0.83-src.tar.gz) = 28e112a9d01918434ad03c414058275bbc4e34be408c2cfe2d819c3a08cadc3c31920e279c5312529aa2f5abf1e002537012c5f06d43ba8894448afd5585c231
+SHA512 (apache-tomcat-9.0.89-src.tar.gz) = c2e8e45a98cd30764b507bb997c7cf1b8e337be9c6d1833bb5f916a5d86d96cb095f430884d0a248cdc3b510beb11e227cc160f8402ba5b2e3952399a44461d1
diff --git a/tomcat.spec b/tomcat.spec
index 3e2e6e6..cb29eb8 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -31,7 +31,7 @@
%global jspspec 2.3
%global major_version 9
%global minor_version 0
-%global micro_version 83
+%global micro_version 89
%global packdname apache-tomcat-%{version}-src
%global servletspec 4.0
%global elspec 3.0
@@ -56,7 +56,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 4%{?dist}
+Release: 1%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -550,6 +550,9 @@ fi
%{appdir}/ROOT
%changelog
+* Fri Jun 7 2024 Dimitris Soumis - 1:9.0.89-1
+- Update to 9.0.89
+
* Thu Feb 29 2024 Adam Williamson - 1:9.0.83-4
- Accept java-21-headless as one of the alternatives for java
From b34c55f50e11a51a2aeb457295318240b94b3a57 Mon Sep 17 00:00:00 2001
From: dsoumis
Date: Thu, 20 Jun 2024 13:29:56 +0300
Subject: [PATCH 094/177] Update to 9.0.90
---
sources | 2 +-
tomcat.spec | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/sources b/sources
index a23d2c8..6bccc7c 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (apache-tomcat-9.0.89-src.tar.gz) = c2e8e45a98cd30764b507bb997c7cf1b8e337be9c6d1833bb5f916a5d86d96cb095f430884d0a248cdc3b510beb11e227cc160f8402ba5b2e3952399a44461d1
+SHA512 (apache-tomcat-9.0.90-src.tar.gz) = ade9eda20fe137080eb4fb43a36e510025822acabaf5564a950d24eded491e3f8846dff6ab6382716cd2f3aa676e4f134d28d7c1fa5f9d89230aa600d18071cb
diff --git a/tomcat.spec b/tomcat.spec
index cb29eb8..e8a8ee9 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -31,7 +31,7 @@
%global jspspec 2.3
%global major_version 9
%global minor_version 0
-%global micro_version 89
+%global micro_version 90
%global packdname apache-tomcat-%{version}-src
%global servletspec 4.0
%global elspec 3.0
@@ -550,6 +550,9 @@ fi
%{appdir}/ROOT
%changelog
+* Thu Jun 20 2024 Dimitris Soumis - 1:9.0.90-1
+- Update to 9.0.90
+
* Fri Jun 7 2024 Dimitris Soumis - 1:9.0.89-1
- Update to 9.0.89
From 8ad9415f16a133ccf1342ee8479b286ec09fd58e Mon Sep 17 00:00:00 2001
From: dsoumis
Date: Tue, 9 Jul 2024 15:58:14 +0300
Subject: [PATCH 095/177] Add packit integration
---
.packit.yaml | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
create mode 100644 .packit.yaml
diff --git a/.packit.yaml b/.packit.yaml
new file mode 100644
index 0000000..f335425
--- /dev/null
+++ b/.packit.yaml
@@ -0,0 +1,38 @@
+# See the documentation for more information:
+# https://packit.dev/docs/configuration/
+
+create_sync_note: false
+
+upstream_project_url: https://github.com/apache/tomcat.git
+
+issue_repository: https://github.com/dsoumis/fedora-tomcat-packit-notifications
+
+jobs:
+# https://packit.dev/docs/configuration/downstream/pull_from_upstream
+# Make sure there is Fedora mapping for the 'tomcat' project in https://release-monitoring.org/projects/search/?pattern=tomcat
+# Make sure Monitoring status on the left side at https://src.fedoraproject.org/rpms/tomcat is set to Monitoring
+- job: pull_from_upstream
+ trigger: release
+ dist_git_branches:
+ - fedora-all
+
+# https://packit.dev/docs/configuration/downstream/koji_build
+- job: koji_build
+ trigger: commit
+ dist_git_branches:
+ - fedora-all
+
+- job: koji_build
+ trigger: commit
+ scratch: true
+ allowed_pr_authors: ['all_admins', 'all_committers']
+ allowed_committers: ['all_admins', 'all_committers']
+ dist_git_branches:
+ - fedora-all
+
+# https://packit.dev/docs/configuration/downstream/bodhi_update
+- job: bodhi_update
+ trigger: commit
+ allowed_builders: ['packit', 'all_admins']
+ dist_git_branches:
+ - fedora-branched # rawhide updates are created automatically
From 18974097f961245f2af3dff4ff795d93df103d05 Mon Sep 17 00:00:00 2001
From: dsoumis
Date: Tue, 9 Jul 2024 18:25:39 +0300
Subject: [PATCH 096/177] Replace issue repository with project's repo
---
.packit.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.packit.yaml b/.packit.yaml
index f335425..0bb10aa 100644
--- a/.packit.yaml
+++ b/.packit.yaml
@@ -5,7 +5,7 @@ create_sync_note: false
upstream_project_url: https://github.com/apache/tomcat.git
-issue_repository: https://github.com/dsoumis/fedora-tomcat-packit-notifications
+issue_repository: https://src.fedoraproject.org/rpms/tomcat
jobs:
# https://packit.dev/docs/configuration/downstream/pull_from_upstream
From 91e20eb8e1acea0dd3c242f7641deaec671841ab Mon Sep 17 00:00:00 2001
From: dsoumis
Date: Thu, 11 Jul 2024 12:55:24 +0300
Subject: [PATCH 097/177] Update to 9.0.91
---
sources | 2 +-
tomcat.spec | 7 +++++--
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/sources b/sources
index 6bccc7c..02d68a0 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (apache-tomcat-9.0.90-src.tar.gz) = ade9eda20fe137080eb4fb43a36e510025822acabaf5564a950d24eded491e3f8846dff6ab6382716cd2f3aa676e4f134d28d7c1fa5f9d89230aa600d18071cb
+SHA512 (apache-tomcat-9.0.91-src.tar.gz) = 43e09871b76f63416d8ac9d4594752dba5f8335e34bceb0ef0b210f47314e922e95e0e6a2939ac4807d60d2fb5b81f03079590644fc2a9fa5d51cccfd3813ab4
diff --git a/tomcat.spec b/tomcat.spec
index e8a8ee9..75e8ab3 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -31,7 +31,7 @@
%global jspspec 2.3
%global major_version 9
%global minor_version 0
-%global micro_version 90
+%global micro_version 91
%global packdname apache-tomcat-%{version}-src
%global servletspec 4.0
%global elspec 3.0
@@ -56,7 +56,7 @@
Name: tomcat
Epoch: 1
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 1%{?dist}
+Release: %autorelease
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
License: ASL 2.0
@@ -550,6 +550,9 @@ fi
%{appdir}/ROOT
%changelog
+* Thu Jul 11 2024 Dimitris Soumis - 1:9.0.91-1
+- Update to 9.0.91
+
* Thu Jun 20 2024 Dimitris Soumis - 1:9.0.90-1
- Update to 9.0.90
From 673c7dd900dc140aa8a61266a594bf0f749d8827 Mon Sep 17 00:00:00 2001
From: Fedora Release Engineering
Date: Sat, 20 Jul 2024 07:40:00 +0000
Subject: [PATCH 098/177] Rebuilt for
https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
From ebf0621e4119d4be82cd752215cbe65bd5fb3690 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Miroslav=20Such=C3=BD?=
Date: Wed, 24 Jul 2024 18:07:27 +0200
Subject: [PATCH 099/177] convert ASL 2.0 license to SPDX
This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4
---
tomcat.spec | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/tomcat.spec b/tomcat.spec
index 75e8ab3..41380fc 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -59,7 +59,8 @@ Version: %{major_version}.%{minor_version}.%{micro_version}
Release: %autorelease
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
-License: ASL 2.0
+# Automatically converted from old format: ASL 2.0 - review is highly recommended.
+License: Apache-2.0
URL: http://tomcat.apache.org/
Source0: http://www.apache.org/dist/tomcat/tomcat-%{major_version}/v%{version}/src/%{packdname}.tar.gz
Source1: %{name}-%{major_version}.%{minor_version}.conf
@@ -550,6 +551,9 @@ fi
%{appdir}/ROOT
%changelog
+* Wed Jul 24 2024 Miroslav Suchý