Compare commits

...
Sign in to create a new pull request.

224 commits

Author SHA1 Message Date
Adam Williamson
b6246accae Fix java requirements (#2398212)
With java-latest now being 25, but only java-25 providing the
generic 'java' and 'java-headless' etc., we get file conflicts
if a transaction includes both things that want 'java-25' or
'java-25-headless' and things that want 'java' or 'java-headless'.
This is because dnf prefers java-latest as a provider of the
java-25-* provides (it's versioned higher than the java-25
packages), but only the java-25 packages provide the generic
requirements.

To avoid this making FreeIPA uninstallable, let's get rid of the
generic 'java-headless' requirement. I think f7115aee was meant
to do this already, but missed it.

Also get rid of the now-useless version bounds on requirements
where the java version is included in the requirement name.
2025-09-25 11:10:06 -07:00
dsoumis
1b2f8ef6d9 Update to 10.1.46 upstream release 2025-09-12 17:30:11 +03:00
Adam Williamson
e1a22bc2bf On second thought, let's keep bodhi_update_push_testing
It doesn't really work, but without it, we may have a short time
early in an update's life when no gating policy applies for
stable push...let's not do that. As long as the policies for
stable and testing are the same, things should work right.
2025-08-20 17:43:44 -07:00
Adam Williamson
922d589e64 Merge branch 'f43' into rawhide 2025-08-20 17:25:14 -07:00
Adam Williamson
cfa0ed06cc Fix gating policy, again
I don't know why the previous changes were reverted. We cannot
gate on rpmdeplint for non-Rawhide releases because it only runs
on Rawhide: https://pagure.io/fedora-ci/general/issue/471

Also, the bodhi_update_push_testing context doesn't really work.
It's only very partially hooked up in Bodhi, so defining it does
nothing useful but only potentially causes weird things like
https://github.com/fedora-infra/bodhi/issues/5660 .
2025-08-20 17:18:34 -07:00
dsoumis
35f2755fd1 Add virtual provides to resolve installability issues 2025-08-19 16:00:55 +03:00
dsoumis
6015a7ef86 Rebuilt for the side tag f43-build-side-116701 2025-08-14 11:43:33 +03:00
dsoumis
6a5dffd2aa Rebuilt for the side tag f43-build-side-114811 2025-07-29 11:59:45 +03:00
Jiri Vanek
f7115aee66 Rebuilt for java-25-openjdk as preffered jdk
https://fedoraproject.org/wiki/Changes/Java25AndNoMoreSystemJdk
Note, that since f43, you should be always explicit on what jdk to use.
This commit should do exactly that.
2025-07-28 19:25:32 +02:00
dsoumis
2dc58c1b4a Add required conflicts 2025-07-28 16:37:19 +03:00
dsoumis
9eae7c317a Update to 10.1.43 2025-07-28 16:16:04 +03:00
dsoumis
55ffac7941 Update to 10.1.43 2025-07-28 16:13:52 +03:00
dsoumis
cdf316a2f0 Add obsoletes as temporary solution 2025-07-28 16:12:51 +03:00
dsoumis
397fdf2e2e Revert "General tweaks, fixes and enhancements"
This reverts commit a7d2bc1fe9.
2025-07-28 16:09:09 +03:00
dsoumis
3c60e9fb09 Revert "Use ecj and jakartaee-migration jars from the installed system rather than distributing the jars in tomcat-lib package."
This reverts commit 727c3d6f65.
2025-07-28 16:09:08 +03:00
dsoumis
3b3d4720d7 Revert "Remove javapackages test case rule from gating"
This reverts commit 2c9c3acacc.
2025-07-28 16:09:08 +03:00
dsoumis
79945597b9 Revert "- This commit introduces the major change of dropping the custom scripts and using the upstream scripts for tomcat deployment."
This reverts commit 0ca450977f.
2025-07-28 16:09:08 +03:00
dsoumis
25b0e35ce6 Revert "Introduce tomcat-common subpackage"
This reverts commit da88992d30.
2025-07-28 16:09:07 +03:00
dsoumis
7e3be976ab Revert "Add min_java_version variable"
This reverts commit 6313caf0fd.
2025-07-28 16:09:07 +03:00
dsoumis
987625859e Revert "Reorganize docs and add RUNNING.txt file in tomcat-common package"
This reverts commit e4b70e261a.
2025-07-28 16:09:07 +03:00
dsoumis
33955ca639 Revert "Add Suggests: sections in tomcat package"
This reverts commit c76067efd8.
2025-07-28 16:09:06 +03:00
dsoumis
4a35676781 Revert "Introduce tomcat-user-instance package"
This reverts commit 4cb7465289.
2025-07-28 16:09:06 +03:00
dsoumis
3bc9669c92 Revert "Remove redundant defattr from webapps files section"
This reverts commit fd0d6ea01f.
2025-07-28 16:09:06 +03:00
dsoumis
b4f5296338 Revert "Improve package descriptions and summaries"
This reverts commit c1868d6654.
2025-07-28 16:09:06 +03:00
dsoumis
78f7015909 Revert "Remove logrotate file since Tomcat rotates its own logs"
This reverts commit 48b049b116.
2025-07-28 16:09:05 +03:00
dsoumis
866385e700 Revert "Rename service start script more properly"
This reverts commit 74d5d93859.
2025-07-28 16:09:05 +03:00
dsoumis
d56e3c9a0e Revert "Remove unused parameter"
This reverts commit c86e1e94da.
2025-07-28 16:09:05 +03:00
dsoumis
bd10c72eff Revert "Fix tomcat-juli.jar not placed in tomcat-common package"
This reverts commit 4c675c785f.
2025-07-28 16:09:04 +03:00
dsoumis
cd185fa508 Revert "Update catalina-policy.patch"
This reverts commit d584406620.
2025-07-28 16:09:04 +03:00
dsoumis
36b27510aa Revert "Reorganize installs and preserve timestamps as suggested by Fedora Packaging guidelines"
This reverts commit 740d603f37.
2025-07-28 16:09:04 +03:00
dsoumis
fb80fe23e4 Revert "Fix man page rendering"
This reverts commit 03b7b8f8e6.
2025-07-28 16:09:03 +03:00
dsoumis
0559a64142 Revert "Update to 10.1.36 and verify signatures as suggested in the Fedora Packaging Guidelines"
This reverts commit 07f14cc8f8.
2025-07-28 16:09:03 +03:00
dsoumis
8d8a869c2e Revert "Add symlinks of tomcat-bootstrap.jar and tomcat-juli.jar in libdir"
This reverts commit 1a5e851e22.
2025-07-28 16:09:03 +03:00
dsoumis
177c1aa024 Revert "Fix script calling from service file"
This reverts commit 524080c49f.
2025-07-28 16:09:03 +03:00
dsoumis
01f88a3e9c Revert "- Enhancing comments"
This reverts commit 9e1550b608.
2025-07-28 16:09:03 +03:00
dsoumis
527e2158f3 Revert "- Fixes in tomcat-10.1-user-instance-create.sh"
This reverts commit 5c8a69deca.
2025-07-28 16:09:03 +03:00
dsoumis
f771c96d92 Revert "Define the provision method for tests"
This reverts commit eca613a2ab.
2025-07-28 16:09:03 +03:00
dsoumis
0d75b57e96 Revert "Fix gating rules"
This reverts commit afc96310f4.
2025-07-28 16:09:03 +03:00
dsoumis
5b42bbd1ae Revert "Fix gating rules"
This reverts commit 153431058b.
2025-07-28 16:09:03 +03:00
Fedora Release Engineering
5a663f3961 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 19:25:36 +00:00
dsoumis
153431058b Fix gating rules 2025-04-25 14:47:40 +03:00
dsoumis
afc96310f4 Fix gating rules 2025-04-25 14:37:55 +03:00
dsoumis
eca613a2ab Define the provision method for tests 2025-04-08 13:32:29 +03:00
dsoumis
5c8a69deca - Fixes in tomcat-10.1-user-instance-create.sh
- Add required ReadWritePaths in service file.
- Disable shutdown port when tomcat runs as a service.
- Add webapps-javaee directory
- Remove .sh suffix from binary executable
- Link require libraries for migration tool to work as expected.
2025-04-07 16:50:51 +03:00
dsoumis
9e1550b608 - Enhancing comments
- Some mvn_file fixes
- Remove daemon.sh as commons-daemon is not packaged
2025-03-26 15:54:17 +02:00
dsoumis
524080c49f Fix script calling from service file 2025-03-26 15:53:05 +02:00
dsoumis
1a5e851e22 Add symlinks of tomcat-bootstrap.jar and tomcat-juli.jar in libdir 2025-03-07 17:11:40 +02:00
dsoumis
07f14cc8f8 Update to 10.1.36 and verify signatures as suggested in the Fedora Packaging Guidelines
https://docs.fedoraproject.org/en-US/packaging-guidelines/#_verifying_signatures
2025-03-07 16:31:23 +02:00
dsoumis
03b7b8f8e6 Fix man page rendering 2025-03-07 16:25:35 +02:00
dsoumis
740d603f37 Reorganize installs and preserve timestamps as suggested by Fedora Packaging guidelines 2025-03-07 14:42:06 +02:00
dsoumis
d584406620 Update catalina-policy.patch 2025-03-07 14:41:10 +02:00
dsoumis
4c675c785f Fix tomcat-juli.jar not placed in tomcat-common package 2025-02-26 18:13:31 +02:00
dsoumis
c86e1e94da Remove unused parameter 2025-02-26 17:44:14 +02:00
dsoumis
74d5d93859 Rename service start script more properly 2025-02-26 17:42:32 +02:00
dsoumis
48b049b116 Remove logrotate file since Tomcat rotates its own logs 2025-02-26 17:41:06 +02:00
dsoumis
c1868d6654 Improve package descriptions and summaries 2025-02-26 16:00:04 +02:00
dsoumis
fd0d6ea01f Remove redundant defattr from webapps files section 2025-02-26 16:00:04 +02:00
dsoumis
4cb7465289 Introduce tomcat-user-instance package 2025-02-26 16:00:04 +02:00
dsoumis
c76067efd8 Add Suggests: sections in tomcat package 2025-02-20 18:54:37 +02:00
dsoumis
e4b70e261a Reorganize docs and add RUNNING.txt file in tomcat-common package 2025-02-20 18:33:17 +02:00
dsoumis
6313caf0fd Add min_java_version variable 2025-02-19 14:10:51 +02:00
dsoumis
da88992d30 Introduce tomcat-common subpackage 2025-02-19 13:47:07 +02:00
dsoumis
0ca450977f - This commit introduces the major change of dropping the custom scripts and using the upstream scripts for tomcat deployment.
- Fix links created by %mvn_file

- Remove packaging of tempdir as /tmp is being used currently

-Update the service and conf files
2025-02-17 15:54:02 +02:00
dsoumis
2c9c3acacc Remove javapackages test case rule from gating 2025-02-13 15:41:04 +02:00
dsoumis
727c3d6f65 Use ecj and jakartaee-migration jars from the installed system rather than distributing the jars in tomcat-lib package. 2025-02-12 14:08:33 +02:00
dsoumis
a7d2bc1fe9 General tweaks, fixes and enhancements
- Refactor maven relevant parts
- Fix file permissions
- Fix JAR must have Javapackages-GroupId manifest attribute errors
2025-02-11 16:02:54 +02:00
Zbigniew Jędrzejewski-Szmek
d3fe6302c1 Add sysusers.d config file to allow rpm to create users/groups automatically 2025-01-23 21:13:30 +01:00
Fedora Release Engineering
9da444c4e4 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-19 13:04:22 +00:00
dsoumis
351e1a546c Fix bogus date in changelog 2025-01-10 23:05:01 +02:00
dsoumis
20bfa9f972 Fix changelog version of Tomcat 10 2025-01-10 23:00:41 +02:00
dsoumis
7237392222 Update to 10.1.34 2025-01-07 17:03:13 +02:00
Dimitris Soumis
0611308b2d This pull request enables tests in the Fedora CI using tmt which
also allows to easily execute and debug tests from your laptop:

Run tests directly on your localhost:

    sudo dnf install -y tmt
    tmt run --all provision --how local

Run tests in a virtual machine:

    sudo dnf install -y tmt+provision-virtual
    tmt run

Check the documentation to learn more about the tool:
https://docs.fedoraproject.org/en-US/ci/tmt/
2025-01-07 13:31:19 +00:00
Packit
3cf9b421bd Update to 9.0.98 upstream release
- Resolves: rhbz#2331168

Upstream tag: 9.0.98
Upstream commit: 727a8467

Commit authored by Packit automation (https://packit.dev/)
2024-12-09 15:24:06 +00:00
Dimitris Soumis
0c53740592 Update to 9.0.97 upstream release 2024-12-02 16:08:53 +02:00
Packit
f262deda85 Update to 9.0.96 upstream release
- Resolves: rhbz#2317237

Upstream tag: 9.0.96
Upstream commit: 7ecea316

Commit authored by Packit automation (https://packit.dev/)
2024-10-08 15:01:50 +00:00
Packit
b5aebabac2 Update to 9.0.95 upstream release
- Resolves: rhbz#2312858

Upstream tag: 9.0.95
Upstream commit: 9f8c522e

Commit authored by Packit automation (https://packit.dev/)
2024-09-17 14:36:08 +00:00
Packit
6caab72d3d Update to 9.0.94 upstream release
- Resolves: rhbz#2311320

Upstream tag: 9.0.94
Upstream commit: ce248107

Commit authored by Packit automation (https://packit.dev/)
2024-09-10 21:14:04 +00:00
Dimitris Soumis
ad550ee3ce Fix rhbz-1857043.patch 2024-08-06 14:28:26 +03:00
Packit
7ace2fa74f Update to 9.0.93 upstream release
- Resolves: rhbz#2303026

Upstream tag: 9.0.93
Upstream commit: a33d708d

Commit authored by Packit automation (https://packit.dev/)
2024-08-06 03:32:00 +00:00
Miroslav Suchý
ebf0621e41 convert ASL 2.0 license to SPDX
This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4
2024-07-24 18:07:27 +02:00
Fedora Release Engineering
673c7dd900 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-20 07:40:00 +00:00
dsoumis
91e20eb8e1 Update to 9.0.91 2024-07-11 12:55:24 +03:00
dsoumis
18974097f9 Replace issue repository with project's repo 2024-07-09 18:25:39 +03:00
dsoumis
8ad9415f16 Add packit integration 2024-07-09 15:58:14 +03:00
dsoumis
b34c55f50e Update to 9.0.90 2024-06-20 13:32:51 +03:00
dsoumis
6222b99f52 Revert 10.1.24 update, rebase to 9.0.89 2024-06-07 19:07:06 +03:00
dsoumis
e151cd9da8 Revert "Update to 10.1.24"
This reverts commit 9f4d5c76f5.
2024-06-07 19:04:58 +03:00
dsoumis
9f4d5c76f5 Update to 10.1.24 2024-05-31 16:33:36 +03:00
Adam Williamson
1ee70ac927 Accept java-21-headless as one of the alternatives for java 2024-02-29 15:45:57 -08:00
Jiri Vanek
1c0506a38e Rebuilt for java-21-openjdk as system jdk
https://fedoraproject.org/wiki/Changes/Java21
2024-02-27 18:20:42 +01:00
Fedora Release Engineering
a50fce8a6a Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-27 06:30:56 +00:00
Hui Wang
a1fd99bcde Update to 9.0.83 2023-12-01 17:41:19 +08:00
Hui Wang
939897238c Update tomcat-build.patch 2023-10-16 11:36:25 +08:00
Hui Wang
703557e0a6 Update to 9.0.82
Resolves: rhbz#2244333 Wrong dbcp class in tomcat 9
2023-10-16 11:06:28 +08:00
Hui Wang
f1ec641a7b Update to 9.0.80 2023-09-13 15:32:34 +08:00
Hui Wang
95b25c29b3 Revert the fix files permission 2023-08-08 15:35:30 +08:00
Hui Wang
d26c29c4e8 Fix files permission 2023-08-04 21:55:14 +08:00
Hui Wang
335305ef4f Exclude jnidir in the lib subpackage 2023-07-26 18:04:07 +08:00
Hui Wang
e5a0772f99 Related: rhbz#2224318 There are duplicated jars in the tomcat lib-subpackage 2023-07-25 20:04:31 +08:00
Hui Wang
8b4c6be1c6 Related: rhbz#2224318 There are duplicated jars in the tomcat lib-subpackage 2023-07-25 19:54:13 +08:00
Hui Wang
6a5576eae4 copy tomcat-juli.jar into the lib subpackage
Resolves: rhbz#2224318 There are duplicated jars in the tomcat lib-subpackage
2023-07-25 18:46:08 +08:00
Hui Wang
629d280689 Resolves: rhbz#2224318 There are duplicated jars in the tomcat lib-subpackage
Update to 9.0.78
2023-07-25 18:33:59 +08:00
Fedora Release Engineering
3321e54ad4 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-22 16:33:06 +00:00
Hui Wang
e6859de378 Resolves: rhbz#2189672 Missing Tomcat POM files in Fedora Rawhide 2023-06-20 15:02:14 +08:00
Hui Wang
33141d8c71 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
2023-06-14 12:34:57 +08:00
Hui Wang
92faf5efdb Update to 9.0.76 2023-06-14 09:46:01 +08:00
Hui Wang
f590c47ebf Update to 9.0.75 2023-06-09 14:50:31 +08:00
Hui Wang
2145287741 Update to 9.0.73 2023-03-17 17:05:19 +08:00
Hui Wang
013888a3ae Upload 9.0.72 source 2023-01-29 19:31:45 +08:00
Hui Wang
06d3a31415 Update to 9.0.71
Remove osgi-annotations patch
Add bnd annotation dependency which is in bndlib package
2023-01-29 19:23:32 +08:00
Fedora Release Engineering
3d349e6aea Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-21 05:15:06 +00:00
Hui Wang
f166080781 Update tomcat to 9.0.70 2023-01-13 19:25:32 +08:00
Hui Wang
8e4906e924 Update tomcat to 9.0.68 2022-11-08 16:50:53 +08:00
Coty Sutherland
83e980a86f Cleaning up some unused deps and system properties 2022-09-01 14:35:49 -04:00
Hui Wang
84177caec5 Update to 9.0.65 2022-07-22 17:33:41 +08:00
Jiri
882334e985 Rebuilt for Drop i686 JDKs
https://fedoraproject.org/wiki/Changes/Drop_i686_JDKs
2022-07-08 16:55:08 +02:00
Hui Wang
57ef513427 Update for 9.0.64 2022-06-21 21:03:19 +08:00
Coty Sutherland
d3f20202a3 Related: rhbz#2061424 Adjust fix so that it uses the proper env var 2022-03-10 15:44:16 -05:00
Coty Sutherland
9b5ef6dbd7 Resolves: rhbz#2061424 Add Java 9 start-up parameters to allow reflection 2022-03-08 15:22:53 -05:00
Sonia Xu
37136861df Update to 9.0.59
Fixes CVE-2022-23181
2022-03-03 02:09:56 +00:00
Jiri
cdf645a2cf Rebuilt for java-17-openjdk as system jdk
https://fedoraproject.org/wiki/Changes/Java17
2022-02-06 00:27:17 +01:00
Fedora Release Engineering
dc8a02a819 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-22 02:53:10 +00:00
Hui Wang
da56117851 Update to 9.0.56 2021-12-09 18:15:03 +08:00
Hui Wang
1eeff668b5 Update to 9.0.55 2021-11-23 14:57:50 +08:00
Hui Wang
bb861ab8fa Update to 9.0.54 2021-10-12 14:45:31 +08:00
Hui Wang
5bcc834dc3 Update to 9.0.53 2021-09-16 17:58:33 +08:00
Hui Wang
2c4c2c1d93 Update to 9.0.52 2021-08-18 15:52:49 +08:00
Fedora Release Engineering
7a01193a39 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 19:26:22 +00:00
Hui Wang
fd93ca49bb 9.0.50 source 2021-07-07 14:22:35 +08:00
Hui Wang
fde9af6905 Update to 9.0.50 2021-07-07 14:16:09 +08:00
Coty Sutherland
de863ffa66 Add mvn virtual provides back for the servlet, el, and jsp spec impls 2021-06-05 20:23:34 -04:00
Coty Sutherland
7d7781ca24 Add back logrotate config file per devel list request 2021-06-04 10:29:44 -04:00
Coty Sutherland
da829a92c9 Increment release number 2021-06-04 07:23:54 -04:00
Coty Sutherland
66b528dc61 Drop geronimo-jaxrpc, which provided the webservices naming factory resources that are generally unused 2021-06-04 07:22:37 -04:00
Coty Sutherland
395ca77492 Drop geronimo-saaj as it's no longer required 2021-06-03 16:21:37 -04:00
Coty Sutherland
c363ab5b50 Drop JSVC support as it's not very useful these days 2021-06-03 16:01:50 -04:00
Coty Sutherland
972b590988 Remove maven artifacts from build as they aren't very useful 2021-06-03 15:45:09 -04:00
Coty Sutherland
8db0343ee9 Remove examples webapps from subpackage 2021-06-03 14:56:15 -04:00
Hui Wang
b2675ecc09 Update to 9.0.45 2021-04-22 18:27:04 +08:00
Hui Wang
5eebe0ea54 Update to 9.0.44 2021-03-18 15:39:57 +08:00
Zbigniew Jędrzejewski-Szmek
7b96b13686 Rebuilt for updated systemd-rpm-macros
See https://pagure.io/fesco/issue/2583.
2021-03-02 16:12:08 +01:00
Hui Wang
2f697945d5 Update to 9.0.43 2021-02-03 14:51:05 +08:00
Fedora Release Engineering
6388963411 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 22:06:12 +00:00
Hui Wang
23db76574c Update to 9.0.41 2020-12-09 14:53:37 +08:00
Hui Wang
0831527527 Update to 9.0.40 2020-11-18 15:01:59 +08:00
Hui Wang
f60e452abe Configure osgi-annotations.jar for the source commit 33e874fa31e6c411421ad1304dfa65f30bd58958 (Fix Javadoc build error and ensure 'ant clean javadoc' works) 2020-10-14 10:49:43 +08:00
Hui Wang
20e12fb70e Update to 9.0.39 2020-10-12 13:50:13 +08:00
Hui Wang
bddbd4330e Update to 9.0.38 2020-09-16 17:41:36 +08:00
Fedora Release Engineering
d023b96d1f - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-29 12:39:58 +00:00
Coty Sutherland
b8a539711f 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 2020-07-24 10:50:23 -04:00
Coty Sutherland
a8c5ea8561 Resolves: rhbz#1857043 Add patch to reinclude o.a.t.util.net.jsse and o.a.t.util.moduler.modules in tomcat-coyote.jar 2020-07-20 15:17:57 -04:00
Coty Sutherland
52bdf0a6d0 Update to 9.0.37 2020-07-13 14:02:57 -04:00
Jiri
76fc84d68e Rebuilt for JDK-11 2020-07-11 07:36:02 +02:00
Hui Wang
141fed8ee1 Upgrade to 9.0.36 2020-06-10 13:48:53 +08:00
Coty Sutherland
84e90958f5 Fix changelog entry 2020-06-01 09:09:44 -04:00
Hui Wang
faf98ce047 Upgrade to 9.0.35 2020-05-31 21:10:41 +08:00
Coty Sutherland
2b394dec21 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 2e1623eaa3.
2020-05-04 12:22:01 -04:00
Coty Sutherland
2e1623eaa3 Update dependency version for ECJ to >= 4.15 2020-04-22 15:26:52 -04:00
Coty Sutherland
8d1457151e Add updated catalina.policy patch to allow ECJ usage under the Security Manager 2020-04-22 15:18:14 -04:00
Coty Sutherland
eaac8d384c Update to 9.0.34 2020-04-21 15:56:44 -04:00
Nicolas Chauvet
ba7ec40020 Avoid using recommends when not supported
Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
2020-03-06 18:42:26 +01:00
Coty Sutherland
afaf8d3bf4 Update to 9.0.31
Resolves: rhbz#1806398 - CVE-2020-1938 tomcat: Apache Tomcat AJP File Read/Inclusion Vulnerability
2020-03-05 15:12:39 -05:00
Fedora Release Engineering
b9c7fad2ff - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-31 01:47:34 +00:00
Coty Sutherland
086e236b29 Update to 9.0.30 2019-12-20 07:54:07 -05:00
Coty Sutherland
582d8e2270 Resolves: rhbz#1510522 man page uid and gid mismatch for service accounts 2019-09-26 16:05:30 -04:00
Coty Sutherland
98e48e45f4 Resolves: rhbz#1510896 Problem to start tomcat with a user whose group has a name different to the user 2019-09-26 14:32:36 -04:00
Coty Sutherland
679778488a Resolves: rhbz#1523112 tomcat systemd does not cope with - in service names 2019-09-26 14:28:51 -04:00
Coty Sutherland
dda1be6b79 Update to 9.0.26 2019-09-26 14:22:47 -04:00
Fedora Release Engineering
d973e255b3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-27 01:39:36 +00:00
Coty Sutherland
4c36cc2105 Bump release version 2019-07-17 14:17:34 -04:00
Coty Sutherland
c45e83f43a Resolves: rhbz#1730755 Adding javapackages-tools back as a Requirement as it's required to run the service scripts 2019-07-17 13:32:12 -04:00
Coty Sutherland
c6f685500a Update build-classpath calls to ECJ to specify the JAR we want to use 2019-07-17 13:16:33 -04:00
Coty Sutherland
c3a377befc Remove unnecessary patches and update version of ECJ required by tomcat 2019-06-18 09:53:08 -04:00
Coty Sutherland
f905e7e822 Remove fc24 conditional as it's EOL 2019-06-18 09:22:07 -04:00
Coty Sutherland
59a8d55f5a Update to 9.0.21 2019-06-18 09:20:10 -04:00
Coty Sutherland
35c4e39e72 Add ant target 'dist-source' to allow packaging of maven artifacts and sample webapp code 2019-04-05 16:11:15 -04:00
Coty Sutherland
32a679992b Remove javadoc subpackage to drop the jpackage-utils dependency 2019-04-02 15:57:06 -04:00
Coty Sutherland
b394a44ff1 Remove deprecated SHUTDOWN_WAIT setting from conf comments and provide an alternative 2019-03-01 16:18:57 -05:00
Coty Sutherland
d290d60864 Cleanup ant targets and unused system properties 2019-02-21 14:27:58 -05:00
Coty Sutherland
4b9ac6b737 Remove unused junit dependency 2019-02-21 13:24:06 -05:00
Coty Sutherland
7ec1edc4fe Update changelog for dependency cleanup 2019-02-21 13:11:37 -05:00
Coty Sutherland
54436d8faf Remove unused dependencies, apache-commons-daemon and apache-commons-pool 2019-02-21 13:10:42 -05:00
Coty Sutherland
fca3df7ab8 Add mock results to gitignore 2019-02-21 13:00:54 -05:00
Coty Sutherland
fd75e507d2 Removing unused dependency, apache-commons-collections, which was removed from upstream's build in r783696 2019-02-21 12:52:37 -05:00
Coty Sutherland
07b8ade141 Remove unnecessary patch, the change was included upstream for asfbz#52493 2019-02-20 15:26:05 -05:00
Coty Sutherland
27d871ef2c Bump release number 2019-02-20 15:23:38 -05:00
Coty Sutherland
ca3ba12276 Remove OSGi MANIFEST files, these are now included in the upstream Tomcat distribution (as of 9.0.10) 2019-02-20 15:18:44 -05:00
Fedora Release Engineering
deb40c8cad - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-03 10:03:06 +00:00
Igor Gnatenko
0a18dfafbb Remove obsolete Group tag
References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag
2019-01-28 20:24:52 +01:00
Coty Sutherland
27dc97c365 Add changelog entries for CVEs to update notes 2018-12-13 10:54:36 -05:00
Coty Sutherland
43c6ccdf49 Update to 9.0.13 2018-12-13 09:24:35 -05:00
Peter Robinson
cb0df92eb9 Drop legcy sys-v bits 2018-10-16 17:41:15 +01:00
Coty Sutherland
32304e7570 Related: Update to 9.0.10 Add bnd.annotation and slf4j-api jars to the classpath so that the build can complete the OSGi steps 2018-08-07 10:36:36 -04:00
Coty Sutherland
c670fc3d7c Related: Update to 9.0.10 Updating build.xml to include a required JAR. The version of the aQute libs is old and the structure changed in the new version that upstream uses, so we have to add the required classes manually 2018-08-02 08:21:16 -04:00
Coty Sutherland
11261db135 Related: Update to 9.0.10 Add new dependency on aqute-bnd libraries for OSGi metadata 2018-08-01 14:15:07 -04:00
Coty Sutherland
5faf05bcc5 Related: Update to 9.0.10 Add new dependency on saaj-api so that you can build with java 11 2018-07-31 21:48:25 -04:00
Coty Sutherland
60e8a41900 Related: Update to 9.0.10 Fix patch files so they apply cleanly 2018-07-31 17:13:18 -04:00
Coty Sutherland
adee825bc2 Merge branch 'master' of ssh://pkgs.fedoraproject.org/rpms/tomcat 2018-07-31 16:10:58 -04:00
Coty Sutherland
134406fb63 Merge branch 'master' of ssh://pkgs.fedoraproject.org/rpms/tomcat 2018-07-31 16:10:48 -04:00
Coty Sutherland
8d9eb243ed Merge branch 'master' of ssh://pkgs.fedoraproject.org/rpms/tomcat 2018-07-31 16:10:38 -04:00
Coty Sutherland
5b9a522c00 Merge branch 'master' of ssh://pkgs.fedoraproject.org/rpms/tomcat 2018-07-31 16:10:30 -04:00
Coty Sutherland
cf73f01ef4 Merge branch 'master' of ssh://pkgs.fedoraproject.org/rpms/tomcat 2018-07-31 16:10:02 -04:00
Coty Sutherland
dd598eae60 Update to 9.0.10 2018-07-31 16:09:52 -04:00
Coty Sutherland
87acbd6047 Update to 9.0.10 2018-07-31 16:08:49 -04:00
Fedora Release Engineering
1bf763910f - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-14 07:42:30 +00:00
Jason Tibbitts
e60ff004d7 Remove needless use of %defattr 2018-07-10 01:34:40 -05:00
Coty Sutherland
779b38363e Disable failOnWarning so that javadoc won't fail the build 2018-05-01 09:52:04 -04:00
Coty Sutherland
fb3fee7d60 Resolves: rhbz#1557507 Update to 9.0.7 2018-05-01 09:34:30 -04:00
Coty Sutherland
70272203ee Forgot to add changelog entires for the CVEs 2018-03-16 11:28:36 -04:00
Coty Sutherland
b14bf8b1a5 Disable failOnWarning so that javadoc won't fail the build 2018-03-15 13:52:10 -04:00
Coty Sutherland
e02f29cc46 Forgot to rename service scripts, etc for the 8.5 rebase 2018-03-15 13:05:24 -04:00
Coty Sutherland
161c6b7f49 Adding sources for 8.5.29 2018-03-15 12:59:10 -04:00
Coty Sutherland
bc28cc3bb0 Rebase to 8.5.29! Finally :) 2018-03-15 12:57:12 -04:00
Igor Gnatenko
8766ecaeb9
Escape macros in %changelog
Reference: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/Y2ZUKK2B7T2IKXPMODNF6HB2O5T5TS6H/
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-02-09 09:06:26 +01:00
Coty Sutherland
cf8509a357 The tomcat-native binary is no longer copied to bin. See http://svn.apache.org/r1818186 for more details 2018-02-01 10:09:27 -05:00
Coty Sutherland
586be331e6 Fix release for rebase 2018-02-01 08:54:42 -05:00
Coty Sutherland
f083e18135 Merge branch 'master' of ssh://pkgs.fedoraproject.org/rpms/tomcat 2018-02-01 08:52:17 -05:00
Coty Sutherland
d28664612b Update to 8.0.49 2018-02-01 08:48:31 -05:00
Merlin Mathesius
56956f7ea7 Cleanup spec file conditionals 2017-12-12 09:14:28 -06:00
Troy Dawson
83edb0c5e8 Change "zip -u" to "zip"
Resolves: rhbz#1495241 [tomcat] zip -u in spec file causes race condition
2017-10-24 10:12:21 -05:00
Coty Sutherland
f62ae76aa7 Update to 8.0.47
Resolves: rhbz#1497682 CVE-2017-12617 tomcat: Remote Code Execution bypass for CVE-2017-12615
2017-10-04 08:57:15 -04:00
Coty Sutherland
c154cf4359 Adding temporary workaround for add_maven_depmap deprecation 2017-08-21 11:28:50 -04:00
Coty Sutherland
95abd8ee71 Release 1 instead of 2 2017-08-21 10:54:20 -04:00
Coty Sutherland
623e2f2fe0 Resolves: rhbz#1480620 CVE-2017-7674 tomcat: Cache Poisoning 2017-08-21 10:36:47 -04:00
39 changed files with 927 additions and 678 deletions

1
.fmf/version Normal file
View file

@ -0,0 +1 @@
1

4
.gitignore vendored
View file

@ -1,2 +1,4 @@
apache-tomcat-*-src.tar.gz
results_tomcat
tomcat*.src.rpm
apache-tomcat-*-src/

38
.packit.yaml Normal file
View file

@ -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://src.fedoraproject.org/rpms/tomcat
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-branched
# 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

View file

@ -1,29 +0,0 @@
--- modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/DataSourceProxy.java.sav 2012-01-17 13:55:44.000000000 +0400
+++ modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/DataSourceProxy.java 2012-01-22 00:44:22.299789107 +0400
@@ -19,9 +19,11 @@ package org.apache.tomcat.jdbc.pool;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.SQLException;
+import java.sql.SQLFeatureNotSupportedException;
import java.util.Iterator;
import java.util.Properties;
import java.util.concurrent.Future;
+import java.util.logging.Logger;
import javax.sql.XAConnection;
@@ -534,6 +536,14 @@ public class DataSourceProxy implements
}
/**
+ * no-op
+ * {@link javax.sql.DataSource#getParentLogger}
+ */
+ public Logger getParentLogger() throws SQLFeatureNotSupportedException {
+ throw new SQLFeatureNotSupportedException();
+ }
+
+ /**
* no-op
* {@link javax.sql.DataSource#getLogWriter}
*/

1
ci.fmf Normal file
View file

@ -0,0 +1 @@
resultsdb-testcase: separate

View file

@ -1,13 +0,0 @@
Manifest-Version: 1.0
Export-Package: javax.el;version="2.2.0"
Bundle-Vendor: %bundleProvider
Bundle-ClassPath: .
Bundle-Version: 2.2.0
Bundle-Name: %bundleName
Bundle-Localization: plugin
Bundle-ManifestVersion: 2
Bundle-SymbolicName: javax.el
DynamicImport-Package: org.apache.el
Bundle-RequiredExecutionEnvironment: J2SE-1.4,CDC-1.0/Foundation-1.0,J
2SE-1.3

20
gating.yaml Normal file
View file

@ -0,0 +1,20 @@
--- !Policy
product_versions:
- fedora-rawhide
decision_contexts:
- bodhi_update_push_stable
- bodhi_update_push_testing
subject_type: koji_build
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.rpmdeplint.functional}
product_versions:
- fedora-*
decision_contexts:
- bodhi_update_push_stable
- bodhi_update_push_testing
subject_type: koji_build
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.rpminspect.static-analysis}
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.installability.functional}
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/javapackages.functional}
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/smoke.functional}

View file

@ -1,40 +0,0 @@
Manifest-Version: 1.0
Export-Package: org.apache.jasper;version="8.0.26",org.apache.jasper.c
ompiler;version="8.0.26",org.apache.jasper.compiler.tagplugin;version
="8.0.26",org.apache.jasper.resources;version="8.0.26",org.apache.jas
per.runtime;version="8.0.26",org.apache.jasper.security;version="7.0.
19",org.apache.jasper.servlet;version="8.0.26",org.apache.jasper.tagp
lugins.jstl;version="8.0.26",org.apache.jasper.tagplugins.jstl.core;v
ersion="8.0.26",org.apache.jasper.util;version="8.0.26",org.apache.ja
sper.xmlparser;version="8.0.26"
Bundle-Vendor: %bundleProvider
Bundle-ClassPath: .
Bundle-Version: 8.0.26
Bundle-Localization: plugin
Bundle-Name: %bundleName
Bundle-ManifestVersion: 2
Bundle-SymbolicName: org.apache.jasper
Import-Package: javax.servlet;version="[2.4.0, 3.0.0]",javax.servlet.h
ttp;version="[2.4.0, 3.0.0]",javax.servlet.jsp;version="[2.0.0, 2.2.0
]",javax.servlet.jsp.el;version="[2.0.0, 2.2.0]",javax.servlet.jsp.re
sources;version="[2.0.0, 2.2.0]",javax.servlet.jsp.tagext;version="[2
.0.0, 2.2.0]",javax.servlet.resources;version="[2.4.0, 3.0.0]",javax.
xml.parsers,org.apache.commons.el;version="[1.0.0,2.0.0)",org.apache.
commons.logging;version="[1.0.0,2.0.0)",org.apache.tools.ant;resoluti
on:=optional,org.apache.tools.ant.taskdefs;resolution:=optional,org.a
pache.tools.ant.types;resolution:=optional,org.apache.tools.ant.util;
resolution:=optional,org.w3c.dom,org.xml.sax,org.xml.sax.ext,org.xml.
sax.helpers,org.apache.tomcat;version="8.0.26",org.apache.juli.loggin
g;version="8.0.26",javax.el;version="2.2.0",org.eclipse.jdt.internal.
compiler,org.eclipse.jdt.internal.compiler.parser,org.eclipse.jdt.int
ernal.compiler.parser.diagnose,org.eclipse.jdt.internal.compiler.flow
,org.eclipse.jdt.internal.compiler.util,org.eclipse.jdt.internal.comp
iler.impl,org.eclipse.jdt.internal.compiler.lookup,org.eclipse.jdt.in
ternal.compiler.codegen,org.eclipse.jdt.internal.compiler.batch,org.e
clipse.jdt.internal.compiler.classfmt,org.eclipse.jdt.internal.compil
er.ast,org.eclipse.jdt.internal.compiler.problem,org.eclipse.jdt.inte
rnal.compiler.env,org.eclipse.jdt.internal.core.util,org.eclipse.jdt.
core.compiler
Bundle-RequiredExecutionEnvironment: J2SE-1.4,CDC-1.0/Foundation-1.0,J
2SE-1.3

View file

@ -1,13 +0,0 @@
Manifest-Version: 1.0
Export-Package: org.apache.el;version="7.0.21"
Bundle-Vendor: %bundleProvider
Bundle-ClassPath: .
Bundle-Version: 8.0.26
Bundle-Name: %bundleName
Bundle-Localization: plugin
Bundle-ManifestVersion: 2
Import-Package: javax.el;version="2.2"
Bundle-SymbolicName: org.apache.el
Bundle-RequiredExecutionEnvironment: J2SE-1.4,CDC-1.0/Foundation-1.0,J
2SE-1.3

View file

@ -1,13 +0,0 @@
Manifest-Version: 1.0
Bundle-Vendor: %bundleProvider
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: CDC-1.0/Foundation-1.0,J2SE-1.3
Bundle-Name: %bundleName
Bundle-SymbolicName: javax.servlet.jsp
Export-Package: javax.servlet.jsp; version=2.2,javax.servlet.jsp.el; v
ersion=2.2,javax.servlet.jsp.resources; version=2.2,javax.servlet.jsp
.tagext; version=2.2
Bundle-Version: 2.2.0.v200806031607
Bundle-ManifestVersion: 2
Import-Package: javax.servlet; version=3.0,javax.servlet.http; version
=3.0,javax.servlet.resources; version=3.0,javax.el;version="2.2.0"

View file

@ -0,0 +1,8 @@
# 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

7
plans/javapackages.fmf Normal file
View file

@ -0,0 +1,7 @@
summary: Run javapackages-specific tests
discover:
how: fmf
url: https://src.fedoraproject.org/tests/javapackages
ref: f42
execute:
how: tmt

5
plans/smoke.fmf Normal file
View file

@ -0,0 +1,5 @@
discover:
how: fmf
url: https://src.fedoraproject.org/tests/tomcat
execute:
how: tmt

215
rhbz-1857043.patch Normal file
View file

@ -0,0 +1,215 @@
--- build.xml.orig 2024-08-02 18:14:43.000000000 +0300
+++ build.xml 2024-08-19 13:56:38.991730088 +0300
@@ -1121,7 +1121,7 @@
filesDir="${tomcat.classes}"
filesId="files.annotations-api"
manifest="${tomcat.manifests}/annotations-api.jar.manifest"
- addOSGi="true" />
+ addOSGi="false" />
<!-- Servlet Implementation JAR File -->
<jarIt jarfile="${servlet-api.jar}"
@@ -1130,48 +1130,48 @@
manifest="${tomcat.manifests}/servlet-api.jar.manifest"
notice="${tomcat.manifests}/servlet-api.jar.notice"
license="${tomcat.manifests}/servlet-api.jar.license"
- addOSGi="true" />
+ addOSGi="false" />
<!-- EL Implementation JAR File -->
<jarIt jarfile="${el-api.jar}"
filesDir="${tomcat.classes}"
filesId="files.el-api"
manifest="${tomcat.manifests}/el-api.jar.manifest"
- addOSGi="true" />
+ addOSGi="false" />
<!-- JSP Implementation JAR File -->
<jarIt jarfile="${jsp-api.jar}"
filesDir="${tomcat.classes}"
filesId="files.jsp-api"
manifest="${tomcat.manifests}/jsp-api.jar.manifest"
- addOSGi="true" />
+ addOSGi="false" />
<!-- WebSocket API JAR File -->
<jarIt jarfile="${websocket-api.jar}"
filesDir="${tomcat.classes}"
filesId="files.websocket-api"
manifest="${tomcat.manifests}/websocket-api.jar.manifest"
- addOSGi="true" />
+ addOSGi="false" />
<!-- WebSocket Client API JAR File -->
<jarIt jarfile="${websocket-client-api.jar}"
filesDir="${tomcat.classes}"
filesId="files.websocket-client-api"
manifest="${tomcat.manifests}/websocket-client-api.jar.manifest"
- addOSGi="true" />
+ addOSGi="false" />
<!-- JASPIC API JAR File -->
<jarIt jarfile="${jaspic-api.jar}"
filesDir="${tomcat.classes}"
filesId="files.jaspic-api"
manifest="${tomcat.manifests}/jaspic-api.jar.manifest"
- addOSGi="true" />
+ addOSGi="false" />
<!-- Tomcat-juli JAR File -->
<jarIt jarfile="${tomcat-juli.jar}"
filesDir="${tomcat.classes}"
filesId="files.tomcat-juli"
- addOSGi="true" />
+ addOSGi="false" />
<!-- Bootstrap JAR File -->
<jarIt jarfile="${bootstrap.jar}"
@@ -1183,68 +1183,68 @@
<jarIt jarfile="${tomcat-util.jar}"
filesDir="${tomcat.classes}"
filesId="files.tomcat-util"
- addOSGi="true" />
+ addOSGi="false" />
<!-- Tomcat API JAR File -->
<jarIt jarfile="${tomcat-api.jar}"
filesDir="${tomcat.classes}"
filesId="files.tomcat-api"
- addOSGi="true" />
+ addOSGi="false" />
<!-- Tomcat Util Scan JAR File -->
<jarIt jarfile="${tomcat-util-scan.jar}"
filesDir="${tomcat.classes}"
filesId="files.tomcat-util-scan"
- addOSGi="true" />
+ addOSGi="false" />
<jarIt jarfile="${tomcat-jni.jar}"
filesDir="${tomcat.classes}"
filesId="files.tomcat-jni"
- addOSGi="true" />
+ addOSGi="false" />
<!-- Protocol handlers - Coyote -->
<jarIt jarfile="${tomcat-coyote.jar}"
filesDir="${tomcat.classes}"
filesId="files.tomcat-coyote"
- addOSGi="true" />
+ addOSGi="false" />
<!-- OpenSSL FFM - Coyote -->
<jarIt jarfile="${tomcat-coyote-ffm.jar}"
filesDir="${tomcat.classes}"
filesId="files.tomcat-coyote-ffm"
manifest="${tomcat.manifests}/tomcat-coyote-ffm.jar.manifest"
- addOSGi="true" />
+ addOSGi="false" />
<!-- WebSocket implementation JAR File -->
<jarIt jarfile="${tomcat-websocket.jar}"
filesDir="${tomcat.classes}"
filesId="files.tomcat-websocket"
meta-inf="${tomcat.manifests}/tomcat-websocket.jar"
- addOSGi="true" />
+ addOSGi="false" />
<!-- Catalina GroupCom/Tribes JAR File -->
<jarIt jarfile="${catalina-tribes.jar}"
filesDir="${tomcat.classes}"
filesId="files.catalina-tribes"
- addOSGi="true" />
+ addOSGi="false" />
<!-- Catalina Main JAR File -->
<jarIt jarfile="${catalina.jar}"
filesDir="${tomcat.classes}"
filesId="files.catalina"
- addOSGi="true" />
+ addOSGi="false" />
<!-- Catalina Cluster/HA JAR File -->
<jarIt jarfile="${catalina-ha.jar}"
filesDir="${tomcat.classes}"
filesId="files.catalina-ha"
- addOSGi="true" />
+ addOSGi="false" />
<!-- Server-Side Includes (SSI) -->
<jarIt jarfile="${catalina-ssi.jar}"
filesDir="${tomcat.classes}"
filesId="files.catalina-ssi"
- addOSGi="true" />
+ addOSGi="false" />
<!-- Catalina Ant Tasks JAR File -->
<jarIt jarfile="${catalina-ant.jar}"
@@ -1255,27 +1255,27 @@
<jarIt jarfile="${catalina-storeconfig.jar}"
filesDir="${tomcat.classes}"
filesId="files.catalina-storeconfig"
- addOSGi="true" />
+ addOSGi="false" />
<!-- Jasper EL Implementation JAR File -->
<jarIt jarfile="${jasper-el.jar}"
filesDir="${tomcat.classes}"
filesId="files.jasper-el"
meta-inf="${tomcat.manifests}/jasper-el.jar"
- addOSGi="true" />
+ addOSGi="false" />
<!-- Jasper Implementation JAR File -->
<jarIt jarfile="${jasper.jar}"
filesDir="${tomcat.classes}"
filesId="files.jasper"
meta-inf="${tomcat.manifests}/jasper.jar"
- addOSGi="true" />
+ addOSGi="false" />
<!-- Re-packaged Apache Commons DBCP 2-->
<jarIt jarfile="${tomcat-dbcp.jar}"
filesDir="${tomcat.classes}"
filesId="files.tomcat-dbcp"
- addOSGi="true" />
+ addOSGi="false" />
<!-- i18n JARs -->
<jar jarfile="${tomcat.build}/lib/tomcat-i18n-cs.jar"
@@ -1748,7 +1748,7 @@
filesId="files.tomcat-embed-core"
notice="${tomcat.manifests}/servlet-api.jar.notice"
license="${tomcat.manifests}/servlet-api.jar.license"
- addOSGi="true"
+ addOSGi="false"
addGraal="true"
graalPrefix="org.apache.tomcat.embed/tomcat-embed-core"
graalFiles="res/graal/tomcat-embed-core/native-image"
@@ -1756,7 +1756,7 @@
<jarIt jarfile="${tomcat-embed-el.jar}"
filesDir="${tomcat.classes}"
filesId="files.tomcat-embed-el"
- addOSGi="true"
+ addOSGi="false"
addGraal="true"
graalPrefix="org.apache.tomcat.embed/tomcat-embed-el"
graalFiles="res/graal/tomcat-embed-el/native-image"
@@ -1765,7 +1765,7 @@
filesDir="${tomcat.classes}"
filesId="files.tomcat-embed-jasper"
meta-inf="${tomcat.manifests}/jasper.jar"
- addOSGi="true"
+ addOSGi="false"
addGraal="true"
graalPrefix="org.apache.tomcat.embed/tomcat-embed-jasper"
graalFiles="res/graal/tomcat-embed-jasper/native-image"
@@ -1774,7 +1774,7 @@
filesDir="${tomcat.classes}"
filesId="files.tomcat-embed-websocket"
meta-inf="${tomcat.manifests}/tomcat-websocket.jar"
- addOSGi="true"
+ addOSGi="false"
addGraal="true"
graalPrefix="org.apache.tomcat.embed/tomcat-embed-websocket"
graalFiles="res/graal/tomcat-embed-websocket/native-image"

View file

@ -1,17 +0,0 @@
Manifest-Version: 1.0
Bundle-RequiredExecutionEnvironment: CDC-1.1/Foundation-1.1,J2SE-1.4
Bundle-SymbolicName: javax.servlet
Bundle-ManifestVersion: 2
Bundle-Name: %bundleName
Bundle-Localization: plugin
Bundle-Version: 3.0.0
Bundle-Vendor: %bundleProvider
Export-Package: javax.servlet;version="3.0",
javax.servlet;version="2.6",
javax.servlet.http;version="3.0",
javax.servlet.http;version="2.6",
javax.servlet.annotation;version="2.6",
javax.servlet.descriptor;version="3.0",
javax.servlet.descriptor;version="2.6",
javax.servlet.resources;version="3.0",
javax.servlet.resources;version="2.6"

View file

@ -1 +1 @@
SHA512 (apache-tomcat-8.0.44-src.tar.gz) = e9b793aeeced1c4bf8e1eabc7717dd839b13cbb886a2e3144fdc37f5ed14b4a0bff2c893221a4b29ccd3270950c1ebb37977588f3743b195c4e33796fad47abe
SHA512 (apache-tomcat-10.1.46-src.tar.gz) = 4abb5a5fad013135c4107508e4530673e4af623658b6aff5c4fc18fd557dfca37b58a9c5c0479e52e240b53d469ad91a34225a80b718aa2f91b8d385d16d9682

View file

@ -0,0 +1,30 @@
--- java/org/apache/jasper/compiler/JDTCompiler.java.orig 2024-12-05 18:01:16.000000000 +0200
+++ java/org/apache/jasper/compiler/JDTCompiler.java 2025-01-07 16:30:34.996302312 +0200
@@ -302,9 +302,9 @@ public class JDTCompiler extends org.apa
} else if (opt.equals("17")) {
settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_17);
} else if (opt.equals("18")) {
- settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_18);
+ settings.put(CompilerOptions.OPTION_Source, "18");
} else if (opt.equals("19")) {
- settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_19);
+ settings.put(CompilerOptions.OPTION_Source, "19");
} else if (opt.equals("20")) {
// Constant not available in latest ECJ version that runs on
// Java 11.
@@ -392,11 +392,11 @@ public class JDTCompiler extends org.apa
settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_17);
settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_17);
} else if (opt.equals("18")) {
- settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_18);
- settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_18);
+ settings.put(CompilerOptions.OPTION_TargetPlatform, "18");
+ settings.put(CompilerOptions.OPTION_Compliance, "18");
} else if (opt.equals("19")) {
- settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_19);
- settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_19);
+ settings.put(CompilerOptions.OPTION_TargetPlatform, "19");
+ settings.put(CompilerOptions.OPTION_Compliance, "19");
} else if (opt.equals("20")) {
// Constant not available in latest ECJ version that runs on
// Java 11.

View file

@ -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 @@
<!-- Classpaths -->
<path id="compile.classpath">
<pathelement location="${bnd.jar}"/>
+ <pathelement location="${bnd-annotation.jar}"/>
<pathelement location="${jdt.jar}"/>
<pathelement location="${jaxrpc-lib.jar}"/>
<pathelement location="${wsdl4j-lib.jar}"/>

View file

@ -0,0 +1,16 @@
--- conf/catalina.policy.orig 2024-05-22 16:12:23.809886452 +0300
+++ conf/catalina.policy 2024-05-22 16:14:38.913939654 +0300
@@ -55,6 +55,14 @@
permission java.security.AllPermission;
};
+// ========== RHEL SPECIFIC CODE PERMISSIONS =======================================
+
+// Allowing everything in /usr/share/java allows too many unknowns to be permitted
+// Specifying the individual jars that tomcat needs to function with the security manager
+// is the safest way forward.
+grant codeBase "file:/usr/share/java/ecj/ecj.jar" {
+ permission java.security.AllPermission;
+};
// ========== CATALINA CODE PERMISSIONS =======================================

View file

@ -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 @@
<user username="both" password="<must-be-changed>" roles="tomcat,role1"/>
<user username="role1" password="<must-be-changed>" roles="role1"/>
-->

View file

@ -28,25 +28,15 @@ CATALINA_HOME="@@@TCHOME@@@"
# System-wide tmp
CATALINA_TMPDIR="/var/cache/tomcat/temp"
# You can pass some parameters to java here if you wish to
#JAVA_OPTS="-Xminf0.1 -Xmaxf0.3"
# Use JAVA_OPTS to set java.library.path for libtcnative.so
#JAVA_OPTS="-Djava.library.path=/usr/lib"
# Set default javax.sql.DataSource factory to apache commons one. See rhbz#1214381
JAVA_OPTS="-Djavax.sql.DataSource.Factory=org.apache.commons.dbcp.BasicDataSourceFactory"
# You can change your tomcat locale here
#LANG="en_US"
# Run tomcat under the Java Security Manager
SECURITY_MANAGER="false"
# Time to wait in seconds, before killing process
# TODO(stingray): does nothing, fix.
# SHUTDOWN_WAIT="30"
# If you wish to further customize your tomcat environment,
# put your own definitions here
# (i.e. LD_LIBRARY_PATH for some jdbc drivers)
# You can also pass parameters to Java here by defining JAVA_OPTS variable
# (e.g. JAVA_OPTS="-Xminf0.1 -Xmaxf0.3")

11
tomcat-10.1.logrotate Normal file
View file

@ -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
}

View file

@ -15,8 +15,6 @@ EnvironmentFile=-/etc/sysconfig/tomcat
ExecStart=/usr/libexec/tomcat/server start
SuccessExitStatus=143
User=tomcat
Group=tomcat
[Install]
WantedBy=multi-user.target

View file

@ -1,39 +0,0 @@
--- conf/catalina.policy~ 2016-06-17 10:20:17.649171968 -0400
+++ conf/catalina.policy 2016-06-17 10:23:35.358309244 -0400
@@ -50,6 +50,36 @@ grant codeBase "file:${java.home}/lib/ex
permission java.security.AllPermission;
};
+// ========== RHEL SPECIFIC CODE PERMISSIONS =======================================
+
+// Allowing everything in /usr/share/java allows too many unknowns to be permitted
+// Specifying the individual jars that tomcat needs to function with the security manager
+// is the safest way forward.
+grant codeBase "file:/usr/share/java/tomcat-servlet-3.0-api.jar" {
+ permission java.security.AllPermission;
+};
+grant codeBase "file:/usr/share/java/tomcat-jsp-2.2-api.jar" {
+ permission java.security.AllPermission;
+};
+grant codeBase "file:/usr/share/java/tomcat-el-2.2-api.jar" {
+ permission java.security.AllPermission;
+};
+grant codeBase "file:/usr/share/java/log4j.jar" {
+ permission java.security.AllPermission;
+};
+grant codeBase "file:/usr/share/java/ecj.jar" {
+ permission java.security.AllPermission;
+};
+grant codeBase "file:/usr/share/java/apache-commons-pool.jar" {
+ permission java.security.AllPermission;
+};
+grant codeBase "file:/usr/share/java/apache-commons-dbcp.jar" {
+ permission java.security.AllPermission;
+};
+grant codeBase "file:/usr/share/java/apache-commons-collections.jar" {
+ permission java.security.AllPermission;
+};
+
// ========== CATALINA CODE PERMISSIONS =======================================

View file

@ -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

View file

@ -1,11 +0,0 @@
log4j.rootLogger=debug, R
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=${catalina.base}/logs/tomcat.log
log4j.appender.R.MaxFileSize=10MB
log4j.appender.R.MaxBackupIndex=10
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
log4j.logger.org.apache.catalina=DEBUG, R
log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=DEBUG, R
log4j.logger.org.apache.catalina.core=DEBUG, R
log4j.logger.org.apache.catalina.session=DEBUG, R

View file

@ -1,24 +0,0 @@
--- java/org/apache/jasper/compiler/JDTCompiler.java~ 2016-07-01 14:39:19.728255958 -0400
+++ java/org/apache/jasper/compiler/JDTCompiler.java 2016-07-01 14:39:37.191311760 -0400
@@ -312,9 +312,6 @@
} else if(opt.equals("1.8")) {
settings.put(CompilerOptions.OPTION_Source,
CompilerOptions.VERSION_1_8);
- } else if(opt.equals("1.9")) {
- settings.put(CompilerOptions.OPTION_Source,
- CompilerOptions.VERSION_1_9);
} else {
log.warn("Unknown source VM " + opt + " ignored.");
settings.put(CompilerOptions.OPTION_Source,
@@ -361,11 +358,6 @@
CompilerOptions.VERSION_1_8);
settings.put(CompilerOptions.OPTION_Compliance,
CompilerOptions.VERSION_1_8);
- } else if(opt.equals("1.9")) {
- settings.put(CompilerOptions.OPTION_TargetPlatform,
- CompilerOptions.VERSION_1_9);
- settings.put(CompilerOptions.OPTION_Compliance,
- CompilerOptions.VERSION_1_9);
} else {
log.warn("Unknown target VM " + opt + " ignored.");
settings.put(CompilerOptions.OPTION_TargetPlatform,

View file

@ -1,8 +0,0 @@
@@@TCLOG@@@/catalina.out {
copytruncate
weekly
rotate 52
compress
missingok
create 0644 tomcat tomcat
}

View file

@ -1,12 +0,0 @@
Manifest-Version: 1.0
Export-Package: org.apache.tomcat;version="8.0.26"
Bundle-Vendor: %bundleProvider
Bundle-ClassPath: .
Bundle-Version: 8.0.26
Bundle-Name: %bundleName
Bundle-Localization: plugin
Bundle-ManifestVersion: 2
Bundle-SymbolicName: org.apache.tomcat
Bundle-RequiredExecutionEnvironment: J2SE-1.4,CDC-1.0/Foundation-1.0,J
2SE-1.3

19
tomcat-build.patch Normal file
View file

@ -0,0 +1,19 @@
diff -up ./res/bnd/build-defaults.bnd.orig ./res/bnd/build-defaults.bnd
--- 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
@@ -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};-;.}

View file

@ -13,30 +13,9 @@ _save_function() {
eval "$NEWNAME_FUNC"
}
run_jsvc(){
if [ -x /usr/bin/jsvc ]; then
TOMCAT_USER="${TOMCAT_USER:-tomcat}"
JSVC="/usr/bin/jsvc"
JSVC_OPTS="-nodetach -pidfile /var/run/jsvc-tomcat${NAME}.pid -user ${TOMCAT_USER} -outfile ${CATALINA_BASE}/logs/catalina.out -errfile ${CATALINA_BASE}/logs/catalina.out"
if [ "$1" = "stop" ]; then
JSVC_OPTS="${JSVC_OPTS} -stop"
fi
exec "${JSVC}" ${JSVC_OPTS} ${FLAGS} -classpath "${CLASSPATH}" ${OPTIONS} "${MAIN_CLASS}" "${@}"
else
echo "Can't find /usr/bin/jsvc executable"
fi
}
_save_function run run_java
run() {
if [ "${USE_JSVC}" = "true" ] ; then
run_jsvc $@
else
run_java $@
fi
}

View file

@ -1,13 +0,0 @@
Manifest-Version: 1.0
Export-Package: org.apache.juli;version="8.0.26",org.apache.juli.loggi
ng;version="8.0.26"
Bundle-Vendor: %bundleProvider
Bundle-ClassPath: .
Bundle-Version: 8.0.26
Bundle-Name: %bundleName
Bundle-Localization: plugin
Bundle-ManifestVersion: 2
Bundle-SymbolicName: org.apache.juli
Bundle-RequiredExecutionEnvironment: J2SE-1.4,CDC-1.0/Foundation-1.0,J
2SE-1.3

View file

@ -13,14 +13,12 @@ After=syslog.target network.target
[Service]
Type=simple
EnvironmentFile=/etc/tomcat/tomcat.conf
Environment="NAME=%I"
EnvironmentFile=-/etc/sysconfig/tomcat@%I
Environment="NAME=%i"
EnvironmentFile=-/etc/sysconfig/tomcat@%i
ExecStart=/usr/libexec/tomcat/server start
ExecStop=/usr/libexec/tomcat/server stop
SuccessExitStatus=143
User=tomcat
Group=tomcat
[Install]
WantedBy=multi-user.target

File diff suppressed because it is too large Load diff