Compare commits
15 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5dcffd6f60 | ||
|
|
09cb96d93b | ||
|
|
ef0a920109 | ||
|
|
3024a0c14a | ||
|
|
32e5bc5ecb | ||
|
|
41caffebeb | ||
|
|
c3e446aad4 | ||
|
|
eddf988ee0 | ||
|
|
5a7532b159 | ||
|
|
6f6ebee4d7 | ||
|
|
75bd0b2998 | ||
|
|
2f7e4a4f98 | ||
|
|
4668a5c59f | ||
|
|
3b4bf51072 | ||
|
|
cd6451cb52 |
5 changed files with 91 additions and 22 deletions
|
|
@ -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" />
|
||||
|
||||
<!-- Servlet 4.0 Implementation JAR File -->
|
||||
<!-- Servlet Implementation JAR File -->
|
||||
<jarIt jarfile="${servlet-api.jar}"
|
||||
@@ -766,41 +766,41 @@
|
||||
@@ -1039,41 +1039,41 @@
|
||||
manifest="${tomcat.manifests}/servlet-api.jar.manifest"
|
||||
notice="${tomcat.manifests}/servlet-api.jar.notice"
|
||||
license="${tomcat.manifests}/servlet-api.jar.license"
|
||||
|
|
@ -41,7 +41,7 @@ diff -up ./build.xml.orig ./build.xml
|
|||
- addOSGi="true" />
|
||||
+ addOSGi="false" />
|
||||
|
||||
<!-- JASPIC 1.1 API JAR File -->
|
||||
<!-- JASPIC API JAR File -->
|
||||
<jarIt jarfile="${jaspic-api.jar}"
|
||||
filesDir="${tomcat.classes}"
|
||||
filesId="files.jaspic-api"
|
||||
|
|
@ -58,7 +58,7 @@ diff -up ./build.xml.orig ./build.xml
|
|||
|
||||
<!-- Bootstrap JAR File -->
|
||||
<jarIt jarfile="${bootstrap.jar}"
|
||||
@@ -812,61 +812,61 @@
|
||||
@@ -1085,61 +1085,61 @@
|
||||
<jarIt jarfile="${tomcat-util.jar}"
|
||||
filesDir="${tomcat.classes}"
|
||||
filesId="files.tomcat-util"
|
||||
|
|
@ -130,7 +130,7 @@ diff -up ./build.xml.orig ./build.xml
|
|||
|
||||
<!-- Catalina Ant Tasks JAR File -->
|
||||
<jarIt jarfile="${catalina-ant.jar}"
|
||||
@@ -877,27 +877,27 @@
|
||||
@@ -1150,27 +1150,27 @@
|
||||
<jarIt jarfile="${catalina-storeconfig.jar}"
|
||||
filesDir="${tomcat.classes}"
|
||||
filesId="files.catalina-storeconfig"
|
||||
|
|
@ -162,7 +162,7 @@ diff -up ./build.xml.orig ./build.xml
|
|||
|
||||
<!-- i18n JARs -->
|
||||
<jar jarfile="${tomcat.build}/lib/tomcat-i18n-cs.jar"
|
||||
@@ -1375,7 +1375,7 @@
|
||||
@@ -1644,7 +1644,7 @@
|
||||
filesId="files.tomcat-embed-core"
|
||||
notice="${tomcat.manifests}/servlet-api.jar.notice"
|
||||
license="${tomcat.manifests}/servlet-api.jar.license"
|
||||
|
|
@ -171,7 +171,7 @@ diff -up ./build.xml.orig ./build.xml
|
|||
addGraal="true"
|
||||
graalPrefix="org.apache.tomcat.embed/tomcat-embed-core"
|
||||
graalFiles="res/graal/tomcat-embed-core/native-image"
|
||||
@@ -1383,7 +1383,7 @@
|
||||
@@ -1652,7 +1652,7 @@
|
||||
<jarIt jarfile="${tomcat-embed-el.jar}"
|
||||
filesDir="${tomcat.classes}"
|
||||
filesId="files.tomcat-embed-el"
|
||||
|
|
@ -180,7 +180,7 @@ diff -up ./build.xml.orig ./build.xml
|
|||
addGraal="true"
|
||||
graalPrefix="org.apache.tomcat.embed/tomcat-embed-el"
|
||||
graalFiles="res/graal/tomcat-embed-el/native-image"
|
||||
@@ -1392,7 +1392,7 @@
|
||||
@@ -1661,7 +1661,7 @@
|
||||
filesDir="${tomcat.classes}"
|
||||
filesId="files.tomcat-embed-jasper"
|
||||
meta-inf="${tomcat.manifests}/jasper.jar"
|
||||
|
|
@ -189,7 +189,7 @@ diff -up ./build.xml.orig ./build.xml
|
|||
addGraal="true"
|
||||
graalPrefix="org.apache.tomcat.embed/tomcat-embed-jasper"
|
||||
graalFiles="res/graal/tomcat-embed-jasper/native-image"
|
||||
@@ -1401,7 +1401,7 @@
|
||||
@@ -1670,7 +1670,7 @@
|
||||
filesDir="${tomcat.classes}"
|
||||
filesId="files.tomcat-embed-websocket"
|
||||
meta-inf="${tomcat.manifests}/tomcat-websocket.jar"
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (apache-tomcat-9.0.37-src.tar.gz) = 6e819fe255c467b0081e91c17a53fa383fe84d922492c62d7dd93cabf00e22ab30872ecaa298a9b12977b8c7518f36c8429091b24c9fb5200db64e80e853ce98
|
||||
SHA512 (apache-tomcat-9.0.55-src.tar.gz) = abfb1824387045fc6b5a5077179149e6c348c0deae933e8766c60cbf92466f5e8883ebe4cc260c23ece6d3975ab2e25f7cdde58f9dd83dfdd22cab33c967b28c
|
||||
|
|
|
|||
23
tomcat-9.0-JDTCompiler.patch
Normal file
23
tomcat-9.0-JDTCompiler.patch
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
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
|
||||
} 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
|
||||
settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_15);
|
||||
settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_15);
|
||||
} else if(opt.equals("16")) {
|
||||
- settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_16);
|
||||
- settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_16);
|
||||
+ 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.
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
--- conf/catalina.policy.orig 2020-04-22 14:51:13.734893403 -0400
|
||||
+++ conf/catalina.policy 2020-04-22 15:14:57.609677967 -0400
|
||||
@@ -51,6 +51,17 @@ grant codeBase "file:${java.home}/lib/ex
|
||||
};
|
||||
|
||||
--- 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
|
||||
// permission java.security.AllPermission;
|
||||
//};
|
||||
|
||||
+// ========== RHEL SPECIFIC CODE PERMISSIONS =======================================
|
||||
+
|
||||
|
|
@ -14,7 +14,13 @@
|
|||
+ permission java.security.AllPermission;
|
||||
+};
|
||||
+
|
||||
+
|
||||
|
||||
// ========== CATALINA CODE PERMISSIONS =======================================
|
||||
|
||||
|
||||
@@ -262,4 +272,4 @@ grant codeBase "file:${catalina.home}/we
|
||||
//
|
||||
// The permissions granted to a specific JAR
|
||||
// grant codeBase "war:file:${catalina.base}/webapps/examples.war*/WEB-INF/lib/foo.jar" {
|
||||
-// };
|
||||
\ No newline at end of file
|
||||
+// };
|
||||
|
|
|
|||
44
tomcat.spec
44
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 55
|
||||
%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
|
||||
|
|
@ -83,6 +83,7 @@ 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: tomcat-9.0-JDTCompiler.patch
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
|
|
@ -212,6 +213,7 @@ find . -type f \( -name "*.bat" -o -name "*.class" -o -name Thumbs.db -o -name "
|
|||
%patch2 -p0
|
||||
%patch3 -p0
|
||||
%patch4 -p0
|
||||
%patch5 -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
|
||||
|
|
@ -240,6 +242,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}" \
|
||||
|
|
@ -622,6 +625,43 @@ fi
|
|||
%attr(0660,tomcat,tomcat) %verify(not size md5 mtime) %{logdir}/catalina.out
|
||||
|
||||
%changelog
|
||||
* Tue Nov 23 2021 Hui Wang <huwang@redhat.com> - 1:9.0.55-1
|
||||
- Update to 9.0.55
|
||||
|
||||
* Tue Oct 12 2021 Hui Wang <huwang@redhat.com> - 1:9.0.54-1
|
||||
- Update to 9.0.54
|
||||
|
||||
* Thu Sep 16 2021 Hui Wang <huwang@redhat.com> - 1:9.0.53-1
|
||||
- Update to 9.0.53
|
||||
|
||||
* Wed Aug 18 2021 Hui Wang <huwang@redhat.com> - 1:9.0.52-1
|
||||
- Update to 9.0.52
|
||||
|
||||
* Thu Aug 12 2021 Hui Wang <huwang@redhat.com> - 1:9.0.50-1
|
||||
- Update to 9.0.50
|
||||
|
||||
* Thu Apr 22 2021 Hui Wang <huwang@redhat.com> - 1:9.0.45-1
|
||||
- Update to 9.0.45
|
||||
|
||||
* Thu Mar 18 2021 Hui Wang <huwang@redhat.com> - 1:9.0.44-1
|
||||
- Update to 9.0.44
|
||||
|
||||
* Wed Feb 03 2021 Hui Wang <huwang@redhat.com> - 1:9.0.43-1
|
||||
- Update to 9.0.43
|
||||
- Add the patch for JDTCompiler because the ecj available version is 4.17 on f33
|
||||
|
||||
* Wed Dec 09 2020 Hui Wang <huwang@redhat.com> - 1:9.0.41-1
|
||||
- Update to 9.0.41
|
||||
|
||||
* Wed Nov 18 2020 Hui Wang <huwang@redhat.com> - 1:9.0.40-1
|
||||
- Update to 9.0.40
|
||||
|
||||
* Mon Oct 12 2020 Hui Wang <huwang@redhat.com> - 1:9.0.39-1
|
||||
- Update to 9.0.39
|
||||
|
||||
* Wed Sep 16 2020 Hui Wang <huwang@redhat.com> - 1:9.0.38-1
|
||||
- Update to 9.0.38
|
||||
|
||||
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:9.0.37-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue