[packages/tomcat] remove patches and properties not used in spec

atler atler at pld-linux.org
Wed Mar 11 12:32:07 CET 2026


commit 1abf7cdd892537d6e2566fbd58121a03b3f2c7f8
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed Mar 11 12:19:06 2026 +0100

    remove patches and properties not used in spec
    
    dropped in 9f27741:
    jcl-build.xml.patch
    jcl.patch
    log4j.properties
    logging.patch
    server.xml-URIEncoding-utf8.patch
    tomcat-LDAPUserDatabase.patch
    tomcat-build.patch
    tomcat-build.xml.patch
    tomcat-catalina.policy-javadir.patch
    tomcat-userdir.patch
    
    dropped in bc0d3b1:
    tomcat-extras.xml.patch
    
    never included in spec:
    tomcat-context.xml.patch

 jcl-build.xml.patch                  |  33 ---
 jcl.patch                            |  17 --
 log4j.properties                     |  24 --
 logging.patch                        |  44 ----
 server.xml-URIEncoding-utf8.patch    |  38 ---
 tomcat-LDAPUserDatabase.patch        | 437 -----------------------------------
 tomcat-build.patch                   |  56 -----
 tomcat-build.xml.patch               | 164 -------------
 tomcat-catalina.policy-javadir.patch |  13 --
 tomcat-context.xml.patch             |  11 -
 tomcat-extras.xml.patch              | 113 ---------
 tomcat-userdir.patch                 |  50 ----
 12 files changed, 1000 deletions(-)
---
diff --git a/jcl-build.xml.patch b/jcl-build.xml.patch
deleted file mode 100644
index b408186..0000000
--- a/jcl-build.xml.patch
+++ /dev/null
@@ -1,33 +0,0 @@
---- commons-logging-1.1.1-src/build.xml~	2010-06-09 20:47:36.000000000 +0200
-+++ commons-logging-1.1.1-src/build.xml	2010-06-09 20:48:11.000000000 +0200
---- commons-logging-1.1.1-src/build.xml~	2007-11-22 00:27:52.000000000 +0100
-+++ commons-logging-1.1.1-src/build.xml	2010-06-09 20:27:15.000000000 +0200
-@@ -146,7 +146,8 @@
-     <pathelement location="${build.home}/classes"/>
-     <pathelement location="${junit.jar}"/>
-     <pathelement location="${logkit.jar}"/>
--    <pathelement location="${avalon-framework.jar}"/>
-+    <pathelement location="${avalon-framework-impl.jar}"/>
-+    <pathelement location="${avalon-framework-api.jar}"/>
-     <pathelement location="${servletapi.jar}"/>
-   </path>
- 
-@@ -167,7 +168,8 @@
-     <pathelement location="${build.home}/tests"/>
-     <pathelement location="${junit.jar}"/>
-     <pathelement location="${logkit.jar}"/>
--    <pathelement location="${avalon-framework.jar}"/>
-+    <pathelement location="${avalon-framework-impl.jar}"/>
-+    <pathelement location="${avalon-framework-api.jar}"/>
-     <pathelement location="${conf.home}"/>
-     <pathelement location="${servletapi.jar}"/>
-   </path>
-@@ -246,7 +248,7 @@
-     <!-- Note: log4j13 support is not available in the 1.1 release. -->
-     <!--Log4j13: ${log4j13.jar}-->
-     LogKit: ${logkit.jar}
--    Avalon-Framework: ${avalon-framework.jar}
-+    Avalon-Framework: ${avalon-framework-impl.jar} + ${avalon-framework-api.jar}
-     </echo>
- 
-     <mkdir dir="${build.home}"/>
diff --git a/jcl.patch b/jcl.patch
deleted file mode 100644
index 83cb394..0000000
--- a/jcl.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-revert part of inheritAll=false
-https://bz.apache.org/bugzilla/show_bug.cgi?id=56988
-
-otherwise deps for jcl build don't get set
-
---- tc7.0.x/build.xml~	2015-07-26 22:42:44.873164872 +0300
-+++ tc7.0.x/build.xml	2015-07-26 22:53:44.930780044 +0300
-@@ -1715,7 +1715,7 @@
- 
-     <ant antfile="${tomcat.extras}/logging/commons-logging-${commons-logging.version}-src/build2.xml"
-          dir="${tomcat.extras}/logging/commons-logging-${commons-logging.version}-src"
--         inheritAll="false" target="compile" >
-+         inheritAll="true" target="compile" >
-       <property name="source.version" value="${logging.compile.source}" />
-       <property name="target.version" value="${logging.compile.target}" />
-     </ant>
-
diff --git a/log4j.properties b/log4j.properties
deleted file mode 100644
index cacb07d..0000000
--- a/log4j.properties
+++ /dev/null
@@ -1,24 +0,0 @@
-# log console log: catalina.out
-# file log: tomcat.log
-
-# just file logger
-log4j.rootLogger=INFO, file
-# log to console only, DEBUG level
-#log4j.rootLogger=DEBUG, console
-# log to file as well
-#log4j.rootLogger=DEBUG, file, console
-
-log4j.appender.console=org.apache.log4j.ConsoleAppender
-log4j.appender.console.layout=org.apache.log4j.PatternLayout
-log4j.appender.console.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} %p; %C; %m%n
-
-#- File to log to and log format
-log4j.appender.file=org.apache.log4j.FileAppender
-log4j.appender.file.File=${catalina.base}/logs/tomcat.log
-log4j.appender.file.layout=org.apache.log4j.PatternLayout
-log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} %p; %C; %m%n
-
-log4j.logger.org.apache.catalina=DEBUG, file
-log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=DEBUG, file
-log4j.logger.org.apache.catalina.core=DEBUG, file
-log4j.logger.org.apache.catalina.session=DEBUG, file
diff --git a/logging.patch b/logging.patch
deleted file mode 100644
index 35e7353..0000000
--- a/logging.patch
+++ /dev/null
@@ -1,44 +0,0 @@
---- apache-tomcat-7.0.41-src/conf/logging.properties~	2013-11-11 15:11:20.000000000 +0200
-+++ apache-tomcat-7.0.41-src/conf/logging.properties	2013-11-11 15:11:24.361648531 +0200
-@@ -26,21 +26,29 @@ handlers = 1catalina.org.apache.juli.Fil
- 1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
- 1catalina.org.apache.juli.FileHandler.prefix = catalina.
- 1catalina.org.apache.juli.FileHandler.encoding = UTF-8
-+1catalina.org.apache.juli.FileHandler.rotatable = false
-+1catalina.org.apache.juli.FileHandler.suffix = log
- 
- 2localhost.org.apache.juli.FileHandler.level = FINE
- 2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
- 2localhost.org.apache.juli.FileHandler.prefix = localhost.
- 2localhost.org.apache.juli.FileHandler.encoding = UTF-8
-+2localhost.org.apache.juli.FileHandler.rotatable = false
-+2localhost.org.apache.juli.FileHandler.suffix = log
- 
- 3manager.org.apache.juli.FileHandler.level = FINE
- 3manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
- 3manager.org.apache.juli.FileHandler.prefix = manager.
- 3manager.org.apache.juli.FileHandler.encoding = UTF-8
-+3manager.org.apache.juli.FileHandler.rotatable = false
-+3manager.org.apache.juli.FileHandler.suffix = log
- 
- 4host-manager.org.apache.juli.FileHandler.level = FINE
- 4host-manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
- 4host-manager.org.apache.juli.FileHandler.prefix = host-manager.
- 4host-manager.org.apache.juli.FileHandler.encoding = UTF-8
-+4host-manager.org.apache.juli.FileHandler.rotatable = false
-+4host-manager.org.apache.juli.FileHandler.suffix = log
- 
- java.util.logging.ConsoleHandler.level = FINE
- java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
---- apache-tomcat-7.0.41-src/conf/server.xml~	2014-01-07 13:53:41.000000000 +0200
-+++ apache-tomcat-7.0.41-src/conf/server.xml	2014-01-07 13:55:47.637678314 +0200
-@@ -175,8 +175,7 @@
-              Documentation at: /docs/config/valve.html
-              Note: The pattern used is equivalent to using pattern="common" -->
-         <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
--               prefix="localhost_access_log." suffix=".txt"
--               pattern="%h %l %u %t "%r" %s %b" />
-+               pattern="combined" prefix="access_log" rotatable="false"/>
- 
-       </Host>
-     </Engine>
diff --git a/server.xml-URIEncoding-utf8.patch b/server.xml-URIEncoding-utf8.patch
deleted file mode 100644
index 373eb66..0000000
--- a/server.xml-URIEncoding-utf8.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-diff -urNp -x '*.orig' apache-tomcat-7.0.107-src.org/conf/server.xml apache-tomcat-7.0.107-src/conf/server.xml
---- apache-tomcat-7.0.107-src.org/conf/server.xml	2020-11-18 13:24:51.000000000 +0100
-+++ apache-tomcat-7.0.107-src/conf/server.xml	2021-11-24 10:18:43.615492909 +0100
-@@ -69,13 +69,15 @@
-          Define a non-SSL HTTP/1.1 Connector on port 8080
-     -->
-     <Connector port="8080" protocol="HTTP/1.1"
--               connectionTimeout="20000"
-+	       connectionTimeout="20000"
-+	       URIEncoding="UTF-8"
-                redirectPort="8443" />
-     <!-- A "Connector" using the shared thread pool-->
-     <!--
-     <Connector executor="tomcatThreadPool"
-                port="8080" protocol="HTTP/1.1"
--               connectionTimeout="20000"
-+	       connectionTimeout="20000"
-+	       URIEncoding="UTF-8"
-                redirectPort="8443" />
-     -->
-     <!-- Define an SSL HTTP/1.1 Connector on port 8443
-@@ -85,7 +87,7 @@
-          documentation -->
-     <!--
-     <Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol"
--               maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
-+               maxThreads="150" SSLEnabled="true" scheme="https" secure="true" URIEncoding="UTF-8"
-                clientAuth="false" sslProtocol="TLS" />
-     -->
- 
-@@ -94,6 +96,7 @@
-     <Connector protocol="AJP/1.3"
-                address="::1"
-                port="8009"
-+               URIEncoding="UTF-8"
-                redirectPort="8443" />
-     -->
- 
diff --git a/tomcat-LDAPUserDatabase.patch b/tomcat-LDAPUserDatabase.patch
deleted file mode 100644
index 5a73ff5..0000000
--- a/tomcat-LDAPUserDatabase.patch
+++ /dev/null
@@ -1,437 +0,0 @@
-diff -urN apache-tomcat-6.0.29-src.orig/java/org/apache/catalina/startup/UserConfig.java apache-tomcat-6.0.29-src/java/org/apache/catalina/startup/UserConfig.java
---- apache-tomcat-6.0.29-src.orig/java/org/apache/catalina/startup/UserConfig.java	2010-07-19 15:02:32.000000000 +0200
-+++ apache-tomcat-6.0.29-src/java/org/apache/catalina/startup/UserConfig.java	2010-11-18 22:02:22.953623269 +0100
-@@ -83,6 +83,65 @@
- 
- 
-     /**
-+     * The connection URL for the LDAP server we will contact.
-+     */
-+    private String connectionURL = null;
-+
-+
-+    /**
-+     * The connection username for the LDAP server we will contact.
-+     */
-+    private String connectionName = null;
-+
-+
-+    /**
-+     * The connection password for the LDAP server we will contact.
-+     */
-+    private String connectionPassword = null;
-+
-+
-+    /**
-+     *  The type of authentication to use
-+     */
-+    private String authentication = null;
-+
-+
-+    /**
-+     *  The page size for paged LDAP query.
-+     */
-+    private int pageSize = 0;
-+
-+
-+    /**
-+     * The base element for user searches.
-+     */
-+    private String searchBase = "";
-+
-+
-+    /**
-+     * The message format used to search for users.
-+     */
-+    private String searchFilter = "(objectClass=posixAccount)";
-+
-+
-+    /**
-+     * Should we search the entire subtree for matching users?
-+     */
-+    private boolean searchSubtree = false;
-+
-+
-+    /**
-+     * The attibute that denotes user name(s).
-+     */
-+    private String userAttr = "uid";
-+
-+
-+    /**
-+     * The attibute that denotes user home directory.
-+     */
-+    private String homeAttr = "homeDirectory";
-+
-+    /**
-      * The string resources for this package.
-      */
-     private static final StringManager sm =
-@@ -186,6 +245,167 @@
- 
-     }
- 
-+
-+    /**
-+     * The connection URL for the LDAP server we will contact.
-+     */
-+    public String getConnectionURL() {
-+
-+        return (this.connectionURL);
-+
-+    }
-+    public void setConnectionURL(String connectionURL) {
-+
-+        this.connectionURL = connectionURL;
-+
-+    }
-+
-+
-+    /**
-+     * The connection username for the LDAP server we will contact.
-+     */
-+    public String getConnectionName() {
-+
-+        return (this.connectionName);
-+
-+    }
-+    public void setConnectionName(String connectionName) {
-+
-+        this.connectionName = connectionName;
-+
-+    }
-+
-+
-+    /**
-+     * The connection password for the LDAP server we will contact.
-+     */
-+    public String getConnectionPassword() {
-+
-+        return (this.connectionPassword);
-+
-+    }
-+    public void setConnectionPassword(String connectionPassword) {
-+
-+        this.connectionPassword = connectionPassword;
-+
-+    }
-+
-+    /**
-+     * Return the type of authentication to use.
-+     */
-+    public String getAuthentication() {
-+
-+	return (this.authentication);
-+
-+    }
-+
-+    /**
-+     * Set the type of authentication to use.
-+     *
-+     * @param authentication The authentication
-+     */
-+    public void setAuthentication(String authentication) {
-+
-+	this.authentication = authentication;
-+
-+    }
-+
-+
-+    /**
-+     * Return the page size for paged LDAP query.
-+     */
-+    public int getPageSize() {
-+
-+	return (this.pageSize);
-+
-+    }
-+
-+    /**
-+     * Set the page size for paged LDAP query.
-+     *
-+     * @param pagesize The page size
-+     */
-+    public void setPageSize(int pageSize) {
-+
-+	this.pageSize = pageSize;
-+
-+    }
-+
-+
-+    /**
-+     * The base element for user searches.
-+     */
-+    public String getSearchBase() {
-+
-+        return (this.searchBase);
-+
-+    }
-+    public void setSearchBase(String searchBase) {
-+
-+        this.searchBase = searchBase;
-+
-+    }
-+
-+
-+    /**
-+     * The message format used to search for users.
-+     */
-+    public String getSearchFilter() {
-+
-+        return (this.searchFilter);
-+
-+    }
-+    public void setSearchFilter(String searchFilter) {
-+
-+        this.searchFilter = searchFilter;
-+
-+    }
-+
-+
-+    /**
-+     * Should we search the entire subtree for matching users?
-+     */
-+    public boolean getSearchSubtree() {
-+
-+        return (this.searchSubtree);
-+
-+    }
-+    public void setSearchSubtree(boolean searchSubtree) {
-+
-+        this.searchSubtree = searchSubtree;
-+
-+    }
-+
-+
-+    /**
-+     * The attibute that denotes user name(s).
-+     */
-+    public String getUserAttr() {
-+
-+        return (this.userAttr);
-+
-+    }
-+    public void setUserAttr(String userAttr) {
-+
-+        this.userAttr = userAttr;
-+
-+    }
-+
-+
-+    /**
-+     * The attibute that denotes user home directory.
-+     */
-+    public String getHomeAttr() {
-+
-+        return (this.homeAttr);
-+
-+    }
-+    public void setHomeAttr(String homeAttr) {
-+
-+        this.homeAttr = homeAttr;
-+
-+    }
-+
- 
-     /**
-      * Return the user database class name for this component.
-diff -urN apache-tomcat-6.0.29-src.orig/java/org/apache/catalina/startup/LDAPUserDatabase.java apache-tomcat-6.0.29-src/java/org/apache/catalina/startup/LDAPUserDatabase.java
---- apache-tomcat-6.0.29-src.orig/java/org/apache/catalina/startup/LDAPUserDatabase.java	1970-01-01 01:00:00.000000000 +0100
-+++ apache-tomcat-6.0.29-src/java/org/apache/catalina/startup/LDAPUserDatabase.java	2010-11-18 22:09:07.816261633 +0100
-@@ -0,0 +1,196 @@
-+/*
-+ * Licensed to the Apache Software Foundation (ASF) under one or more
-+ * contributor license agreements.  See the NOTICE file distributed with
-+ * this work for additional information regarding copyright ownership.
-+ * The ASF licenses this file to You under the Apache License, Version 2.0
-+ * (the "License"); you may not use this file except in compliance with
-+ * the License.  You may obtain a copy of the License at
-+ * 
-+ *      http://www.apache.org/licenses/LICENSE-2.0
-+ * 
-+ * Unless required by applicable law or agreed to in writing, software
-+ * distributed under the License is distributed on an "AS IS" BASIS,
-+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-+ * See the License for the specific language governing permissions and
-+ * limitations under the License.
-+ */
-+
-+
-+package org.apache.catalina.startup;
-+
-+import java.util.Enumeration;
-+import java.util.Hashtable;
-+
-+import javax.naming.Context;
-+import javax.naming.NamingEnumeration;
-+import javax.naming.NamingException;
-+import javax.naming.directory.Attribute;
-+import javax.naming.directory.Attributes;
-+import javax.naming.directory.SearchControls;
-+import javax.naming.directory.SearchResult;
-+import javax.naming.ldap.Control;
-+import javax.naming.ldap.InitialLdapContext;
-+import javax.naming.ldap.LdapContext;
-+import javax.naming.ldap.PagedResultsControl;
-+import javax.naming.ldap.PagedResultsResponseControl;
-+
-+
-+/**
-+ * Concrete implementation of the <code>UserDatabase</code> interface
-+ * that retrieves user data from LDAP server.
-+ *
-+ * @author Jan Rękorajski
-+ * @version 0.1
-+ */
-+
-+public final class LDAPUserDatabase
-+    implements UserDatabase {
-+
-+    // --------------------------------------------------------- Constructors
-+
-+    /**
-+     * Initialize a new instance of this user database component.
-+     */
-+    public LDAPUserDatabase() {
-+        super();
-+    }
-+
-+    // --------------------------------------------------- Instance Variables
-+
-+    /**
-+     * The set of home directories for all defined users, keyed by username.
-+     */
-+    private Hashtable<String,String> homes = new Hashtable<String,String>();
-+
-+    /**
-+     * The UserConfig listener with which we are associated.
-+     */
-+    private UserConfig userConfig = null;
-+
-+    // ----------------------------------------------------------- Properties
-+
-+    /**
-+     * Return the UserConfig listener with which we are associated.
-+     */
-+    public UserConfig getUserConfig() {
-+        return (this.userConfig);
-+    }
-+
-+    /**
-+     * Set the UserConfig listener with which we are associated.
-+     *
-+     * @param userConfig The new UserConfig listener
-+     */
-+    public void setUserConfig(UserConfig userConfig) {
-+        this.userConfig = userConfig;
-+        init();
-+    }
-+
-+    // ------------------------------------------------------- Public Methods
-+
-+    /**
-+     * Return an absolute pathname to the home directory for the specified user.
-+     *
-+     * @param user User for which a home directory should be retrieved
-+     */
-+    public String getHome(String user) {
-+        return homes.get(user);
-+    }
-+
-+
-+    /**
-+     * Return an enumeration of the usernames defined on this server.
-+     */
-+    public Enumeration<String> getUsers() {
-+        return (homes.keys());
-+    }
-+
-+    // ------------------------------------------------------ Private Methods
-+
-+
-+    /**
-+     * Initialize our set of users and home directories.
-+     */
-+    private void init() {
-+	String connectionURL = userConfig.getConnectionURL();
-+	String connectionName = userConfig.getConnectionName();
-+	String connectionPassword = userConfig.getConnectionPassword();
-+	String authentication = userConfig.getAuthentication();
-+	String searchBase = userConfig.getSearchBase();
-+	String searchFilter = userConfig.getSearchFilter();
-+	boolean searchSubtree = userConfig.getSearchSubtree();
-+	String userAttr = userConfig.getUserAttr();
-+	String homeAttr = userConfig.getHomeAttr();
-+	int pageSize = userConfig.getPageSize();
-+
-+	try {
-+		Hashtable<String,String> env = new Hashtable<String,String>();
-+
-+		env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
-+		if (connectionName != null)
-+			env.put(Context.SECURITY_PRINCIPAL, connectionName);
-+		if (connectionPassword != null)
-+			env.put(Context.SECURITY_CREDENTIALS, connectionPassword);
-+		if (connectionURL != null)
-+			env.put(Context.PROVIDER_URL, connectionURL);
-+		if (authentication != null)
-+			env.put(Context.SECURITY_AUTHENTICATION, authentication);
-+
-+		LdapContext ctx = new InitialLdapContext(env, null);
-+
-+		SearchControls constraints = new SearchControls();
-+		String returnAttrs[] = { userAttr, homeAttr };
-+		constraints.setReturningAttributes(returnAttrs);
-+		if (searchSubtree) {
-+			constraints.setSearchScope(SearchControls.SUBTREE_SCOPE);
-+		} else {
-+			constraints.setSearchScope(SearchControls.ONELEVEL_SCOPE);
-+		}
-+
-+		// Request the paged results control
-+		if (pageSize > 0) {
-+			Control[] ctls = new Control[]{ new PagedResultsControl(pageSize, Control.NONCRITICAL) };
-+			ctx.setRequestControls(ctls);
-+		}
-+
-+		byte[] cookie = null;
-+		do {
-+			NamingEnumeration results = ctx.search(searchBase, searchFilter, constraints);
-+			while (results != null && results.hasMore()) {
-+			    SearchResult sr = (SearchResult)results.next();
-+			    String username = null;
-+			    String home = null;
-+			    Attributes attr = sr.getAttributes();
-+			    Attribute a = attr.get(homeAttr);
-+			    if (a != null && a.size() == 1)
-+				   home = (String)a.get();
-+			    a = attr.get(userAttr);
-+			    if ((home != null) && (a != null)) {
-+				    // Add all possible names of this user and corresponding directory
-+				    for (int i = 0; i < a.size(); i++) {
-+					    username = (String)a.get(i);
-+					    if (username != null) {
-+						    homes.put(username, home);
-+					    }
-+				    }
-+			    }
-+			}
-+			cookie = null;
-+			Control[] controls = ctx.getResponseControls();
-+			if (controls != null) {
-+				for (int i = 0; i < controls.length; i++) {
-+					if (controls[i] instanceof PagedResultsResponseControl) {
-+						PagedResultsResponseControl prrc = (PagedResultsResponseControl)controls[i];
-+						cookie = prrc.getCookie();
-+					}
-+				}
-+			}
-+			if (cookie != null) {
-+				ctx.setRequestControls(new Control[]{ new PagedResultsControl(pageSize, cookie, Control.CRITICAL) });
-+			}
-+		} while ((cookie != null) && (cookie.length != 0));
-+	} catch (Exception e) {
-+		e.printStackTrace();
-+	}
-+    }
-+}
diff --git a/tomcat-build.patch b/tomcat-build.patch
deleted file mode 100644
index 7dee225..0000000
--- a/tomcat-build.patch
+++ /dev/null
@@ -1,56 +0,0 @@
---- apache-tomcat-7.0.100-src/build.xml~	2020-02-29 19:29:03.000000000 +0100
-+++ apache-tomcat-7.0.100-src/build.xml	2020-02-29 19:30:10.956020378 +0100
-@@ -1981,7 +1981,7 @@ Apache Tomcat ${version} native binaries
-       encoding="UTF-8"
-       docencoding="UTF-8"
-       charset="UTF-8"
--      additionalparam="-breakiterator -notimestamp ${java9.javadoc.options}"
-+      additionalparam="-Xdoclint:none -breakiterator -notimestamp ${java9.javadoc.options}"
-       source="${compile.source}"
-       maxmemory="512m"
-       failonerror="true">
-@@ -2002,7 +2002,7 @@ Apache Tomcat ${version} native binaries
-       encoding="ISO-8859-1"
-       docencoding="ISO-8859-1"
-       charset="ISO-8859-1"
--      additionalparam="-breakiterator -notimestamp ${java9.javadoc.options}"
-+      additionalparam="-Xdoclint:none -breakiterator -notimestamp ${java9.javadoc.options}"
-       source="${compile.source}"
-       maxmemory="512m"
-       failonerror="true"
-@@ -2024,7 +2024,7 @@ Apache Tomcat ${version} native binaries
-       encoding="ISO-8859-1"
-       docencoding="ISO-8859-1"
-       charset="ISO-8859-1"
--      additionalparam="-breakiterator -notimestamp ${java9.javadoc.options}"
-+      additionalparam="-Xdoclint:none -breakiterator -notimestamp ${java9.javadoc.options}"
-       source="${compile.source}"
-       maxmemory="512m"
-       failonerror="true"
-@@ -2046,7 +2046,7 @@ Apache Tomcat ${version} native binaries
-       encoding="ISO-8859-1"
-       docencoding="ISO-8859-1"
-       charset="ISO-8859-1"
--      additionalparam="-breakiterator -notimestamp ${java9.javadoc.options}"
-+      additionalparam="-Xdoclint:none -breakiterator -notimestamp ${java9.javadoc.options}"
-       source="${compile.source}"
-       maxmemory="512m"
-       failonerror="true"
-@@ -2068,7 +2068,7 @@ Apache Tomcat ${version} native binaries
-       encoding="ISO-8859-1"
-       docencoding="ISO-8859-1"
-       charset="ISO-8859-1"
--      additionalparam="-breakiterator -notimestamp ${java9.javadoc.options}"
-+      additionalparam="-Xdoclint:none -breakiterator -notimestamp ${java9.javadoc.options}"
-       source="${compile.source}"
-       maxmemory="512m"
-       failonerror="true"
-@@ -2089,7 +2089,7 @@ Apache Tomcat ${version} native binaries
-       encoding="ISO-8859-1"
-       docencoding="ISO-8859-1"
-       charset="ISO-8859-1"
--      additionalparam="-breakiterator -notimestamp ${java9.javadoc.options} -J-Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2 -XDignore.symbol.file"
-+      additionalparam="-Xdoclint:none -breakiterator -notimestamp ${java9.javadoc.options} -J-Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2 -XDignore.symbol.file"
-       source="${compile.source}"
-       maxmemory="512m"
-       failonerror="true"
diff --git a/tomcat-build.xml.patch b/tomcat-build.xml.patch
deleted file mode 100644
index 9f1726a..0000000
--- a/tomcat-build.xml.patch
+++ /dev/null
@@ -1,164 +0,0 @@
---- apache-tomcat-7.0.100-src/build.xml.org	2020-02-11 09:39:54.000000000 +0100
-+++ apache-tomcat-7.0.100-src/build.xml	2020-02-29 19:19:42.236875428 +0100
-@@ -683,7 +683,7 @@
-   <target name="compile" depends="compile-java6, check-java7, compile-java7" />
- 
-   <target name="compile-java6"
--          depends="build-prepare, download-compile, compile-prepare, validate">
-+          depends="build-prepare">
-     <!-- Compile internal server components -->
-     <javac srcdir="java" destdir="${tomcat.classes}"
-            debug="${compile.debug}"
-@@ -1409,7 +1409,7 @@
- 
-   </target>
- 
--  <target name="test-compile" depends="compile,download-test-compile,compile-webapp-examples" >
-+  <target name="test-compile" depends="compile,compile-webapp-examples" >
-     <mkdir dir="${test.classes}"/>
-     <!-- Compile -->
-     <javac srcdir="test" destdir="${test.classes}"
-@@ -1621,7 +1621,7 @@
-   </target>
- 
-   <target name="cobertura-instrument"
--          depends="compile,download-cobertura,cobertura-disabled,cobertura-disabled-log"
-+          depends="compile,cobertura-disabled,cobertura-disabled-log"
-           if="${cobertura.enabled}"
-           description="Adds Cobertura instrumentation to the compiled bytecode">
- 
-@@ -1667,66 +1667,10 @@
-     <mkdir dir="${tomcat.extras}/webservices"/>
-   </target>
- 
--  <target name="extras-commons-logging-prepare"
--          depends="extras-prepare"
--          description="Prepare to build web services extras package">
--
--    <antcall target="downloadfile">
--      <param name="sourcefile" value="${commons-logging-src.loc}"/>
--      <param name="destfile" value="${commons-logging-src.tar.gz}"/>
--      <param name="destdir" value="${commons-logging.home}"/>
--      <param name="checksum.enabled" value="${commons-logging-src.checksum.enabled}"/>
--      <param name="checksum.algorithm" value="${commons-logging-src.checksum.algorithm}"/>
--      <param name="checksum.value" value="${commons-logging-src.checksum.value}"/>
--    </antcall>
--
--    <antcall target="downloadfile">
--      <param name="sourcefile" value="${avalon-framework.loc}"/>
--      <param name="destfile" value="${avalon-framework.jar}"/>
--      <param name="destdir" value="${avalon-framework.home}"/>
--      <param name="checksum.enabled" value="${avalon-framework.checksum.enabled}"/>
--      <param name="checksum.algorithm" value="${avalon-framework.checksum.algorithm}"/>
--      <param name="checksum.value" value="${avalon-framework.checksum.value}"/>
--    </antcall>
--
--    <antcall target="downloadfile">
--      <param name="sourcefile" value="${log4j.loc}"/>
--      <param name="destfile" value="${log4j.jar}"/>
--      <param name="destdir" value="${log4j.home}"/>
--      <param name="checksum.enabled" value="${log4j.checksum.enabled}"/>
--      <param name="checksum.algorithm" value="${log4j.checksum.algorithm}"/>
--      <param name="checksum.value" value="${log4j.checksum.value}"/>
--    </antcall>
--
--    <antcall target="downloadfile">
--      <param name="sourcefile" value="${logkit.loc}"/>
--      <param name="destfile" value="${logkit.jar}"/>
--      <param name="destdir" value="${logkit.home}"/>
--      <param name="checksum.enabled" value="${logkit.checksum.enabled}"/>
--      <param name="checksum.algorithm" value="${logkit.checksum.algorithm}"/>
--      <param name="checksum.value" value="${logkit.checksum.value}"/>
--    </antcall>
--
--    <antcall target="downloadfile">
--      <param name="sourcefile" value="${servletapi.loc}"/>
--      <param name="destfile" value="${servletapi.jar}"/>
--      <param name="destdir" value="${servletapi.home}"/>
--      <param name="checksum.enabled" value="${servletapi.checksum.enabled}"/>
--      <param name="checksum.algorithm" value="${servletapi.checksum.algorithm}"/>
--      <param name="checksum.value" value="${servletapi.checksum.value}"/>
--    </antcall>
--
--  </target>
--
-   <target name="extras-commons-logging"
--          depends="extras-commons-logging-prepare,compile,build-manifests"
-+          depends="compile,build-manifests"
-           description="Build JULI for log4j extras package">
- 
--    <gunzip src="${commons-logging-src.tar.gz}"
--      dest="${tomcat.extras}/logging/commons-logging-src.tar"/>
--    <untar src="${tomcat.extras}/logging/commons-logging-src.tar"
--      dest="${tomcat.extras}/logging/"/>
--
-     <replace dir="${tomcat.extras}/logging/commons-logging-${commons-logging.version}-src/src/main/java/org/apache/commons"
-         encoding="ISO-8859-1">
-       <replacefilter token="org.apache.commons"
-@@ -1763,7 +1706,8 @@
-       file="${tomcat.extras}/logging/commons-logging-${commons-logging.version}-src/build.xml" />
- 
-     <copy todir="${tomcat.extras}/logging/commons-logging-${commons-logging.version}-src">
--      <fileset file="${avalon-framework.jar}" />
-+      <fileset file="${avalon-framework-api.jar}" />
-+      <fileset file="${avalon-framework-impl.jar}" />
-       <fileset file="${log4j.jar}" />
-       <fileset file="${logkit.jar}" />
-       <fileset file="${servletapi.jar}" />
-@@ -1842,24 +1786,6 @@
-           depends="extras-prepare"
-           description="Prepare to build web services extras package">
- 
--    <antcall target="downloadfile">
--      <param name="sourcefile" value="${jaxrpc-lib.loc}"/>
--      <param name="destfile" value="${jaxrpc-lib.jar}"/>
--      <param name="destdir" value="${jaxrpc-lib.home}"/>
--      <param name="checksum.enabled" value="${jaxrpc-lib.checksum.enabled}"/>
--      <param name="checksum.algorithm" value="${jaxrpc-lib.checksum.algorithm}"/>
--      <param name="checksum.value" value="${jaxrpc-lib.checksum.value}"/>
--    </antcall>
--
--    <antcall target="downloadfile">
--      <param name="sourcefile" value="${wsdl4j-lib.loc}"/>
--      <param name="destfile" value="${wsdl4j-lib.jar}"/>
--      <param name="destdir" value="${wsdl4j-lib.home}"/>
--      <param name="checksum.enabled" value="${wsdl4j-lib.checksum.enabled}"/>
--      <param name="checksum.algorithm" value="${wsdl4j-lib.checksum.algorithm}"/>
--      <param name="checksum.value" value="${wsdl4j-lib.checksum.value}"/>
--    </antcall>
--
-     <copy file="${jaxrpc-lib.jar}"
-           tofile="${tomcat.extras}/webservices/jaxrpc.jar" />
-     <copy file="${wsdl4j-lib.jar}"
-@@ -1961,7 +1887,7 @@
- 
-   </target>
- 
--  <target name="dist-prepare" depends="download-dist">
-+  <target name="dist-prepare">
-     <mkdir dir="${tomcat.dist}"/>
-     <mkdir dir="${tomcat.dist}/bin"/>
-     <mkdir dir="${tomcat.dist}/conf"/>
-@@ -2034,13 +1960,6 @@
-       </fileset>
-     </copy>
- 
--    <!-- Source bundles for native components -->
--    <copy tofile="${tomcat.dist}/bin/tomcat-native.tar.gz"
--            file="${tomcat-native.tar.gz}" />
--    <copy tofile="${tomcat.dist}/bin/commons-daemon-native.tar.gz"
--            file="${commons-daemon.native.src.tgz}" />
--
--    <!-- platform README files -->
-     <echo append="false" file="${tomcat.dist}/bin/x64/README">
- Apache Tomcat ${version} native binaries for Win64 AMD64/EMT64 platform.
-     </echo>
-@@ -2791,7 +2791,7 @@ skip.installer property in build.propert
- 
-   <target name="download-deps"
-           description="Download the dependencies required to build and test"
--          depends="download-compile, download-dist, download-test-compile, download-validate, download-cobertura, extras-commons-logging-prepare, extras-webservices-prepare" />
-+          depends="download-compile, download-dist, download-test-compile, download-validate, download-cobertura, extras-webservices-prepare" />
- 
-   <target name="download-validate"
-           description="Download components necessary to validate source"
diff --git a/tomcat-catalina.policy-javadir.patch b/tomcat-catalina.policy-javadir.patch
deleted file mode 100644
index 94d7255..0000000
--- a/tomcat-catalina.policy-javadir.patch
+++ /dev/null
@@ -1,13 +0,0 @@
---- apache-tomcat-6.0.29-src/conf/catalina.policy~	2010-07-19 15:02:31.000000000 +0200
-+++ apache-tomcat-6.0.29-src/conf/catalina.policy	2010-11-19 21:11:45.250112558 +0100
-@@ -52,6 +52,10 @@
-         permission java.security.AllPermission;
- };
- 
-+// These permissions apply to all shared system extensions
-+grant codeBase "file:/usr/share/java/-" {
-+        permission java.security.AllPermission;
-+};
- 
- // ========== CATALINA CODE PERMISSIONS =======================================
- 
diff --git a/tomcat-context.xml.patch b/tomcat-context.xml.patch
deleted file mode 100644
index 3c27bbb..0000000
--- a/tomcat-context.xml.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- apache-tomcat-7.0.11-src/conf/context.xml~	2011-03-10 12:16:35.000000000 +0100
-+++ apache-tomcat-7.0.11-src/conf/context.xml	2011-03-17 23:49:31.208011844 +0100
-@@ -16,7 +16,7 @@
-   limitations under the License.
- -->
- <!-- The contents of this file will be loaded for each web application -->
--<Context>
-+<Context swallowOutput="true">
- 
-     <!-- Default set of monitored resources -->
-     <WatchedResource>WEB-INF/web.xml</WatchedResource>
diff --git a/tomcat-extras.xml.patch b/tomcat-extras.xml.patch
deleted file mode 100644
index 6220354..0000000
--- a/tomcat-extras.xml.patch
+++ /dev/null
@@ -1,113 +0,0 @@
---- extras.xml.orig	2011-02-02 20:07:31.000000000 +0100
-+++ extras.xml	2011-02-04 20:28:23.759726852 +0100
-@@ -108,44 +108,7 @@
-     <delete dir="${tomcat.extras}"/>
-   </target>
- 
--  <target name="commons-logging-prepare"
--          depends="prepare"
--          description="Prepare to build web services extras package">
--
--    <antcall target="downloadfile">
--      <param name="sourcefile" value="${commons-logging-src.loc}"/>
--      <param name="destfile" value="${commons-logging-src.tar.gz}"/>
--      <param name="destdir" value="${commons-logging.home}"/>
--    </antcall>
--
--    <antcall target="downloadfile">
--      <param name="sourcefile" value="${avalon-framework.loc}"/>
--      <param name="destfile" value="${avalon-framework.jar}"/>
--      <param name="destdir" value="${avalon-framework.home}"/>
--    </antcall>
--
--    <antcall target="downloadfile">
--      <param name="sourcefile" value="${log4j.loc}"/>
--      <param name="destfile" value="${log4j.jar}"/>
--      <param name="destdir" value="${log4j.home}"/>
--    </antcall>
--
--    <antcall target="downloadfile">
--      <param name="sourcefile" value="${logkit.loc}"/>
--      <param name="destfile" value="${logkit.jar}"/>
--      <param name="destdir" value="${logkit.home}"/>
--    </antcall>
--
--    <antcall target="downloadfile">
--      <param name="sourcefile" value="${servletapi.loc}"/>
--      <param name="destfile" value="${servletapi.jar}"/>
--      <param name="destdir" value="${servletapi.home}"/>
--    </antcall>
--
--  </target>
--
-   <target name="commons-logging"
--          depends="commons-logging-prepare"
-           description="Build JULI for log4j extras package">
- 
-     <gunzip src="${commons-logging-src.tar.gz}"
-@@ -236,18 +199,6 @@
-           depends="prepare"
-           description="Prepare to build web services extras package">
- 
--    <antcall target="downloadfile">
--      <param name="sourcefile" value="${jaxrpc-lib.loc}"/>
--      <param name="destfile" value="${jaxrpc-lib.jar}"/>
--      <param name="destdir" value="${jaxrpc-lib.home}"/>
--    </antcall>
--
--    <antcall target="downloadfile">
--      <param name="sourcefile" value="${wsdl4j-lib.loc}"/>
--      <param name="destfile" value="${wsdl4j-lib.jar}"/>
--      <param name="destdir" value="${wsdl4j-lib.home}"/>
--    </antcall>
--
-     <copy file="${jaxrpc-lib.jar}"
-           tofile="${tomcat.extras}/webservices/jaxrpc.jar" />
-     <copy file="${wsdl4j-lib.jar}"
-@@ -326,25 +277,11 @@
-     </condition>
-   </target>
- 
--  <target name="setproxy" depends="proxyflags" if="useproxy">
--    <taskdef name="setproxy"
--            classname="org.apache.tools.ant.taskdefs.optional.net.SetProxy" />
--    <setproxy proxyhost="${proxy.host}" proxyport="${proxy.port}"
--              proxyuser="${proxy.user}" proxypassword="${proxy.password}" />
--    <echo message="Using ${proxy.host}:${proxy.port} to download ${sourcefile}"/>
--  </target>
--
-   <target name="testexist">
-     <echo message="Testing  for ${destfile}"/>
-     <available file="${destfile}" property="exist"/>
-   </target>
- 
--  <target name="downloadfile" unless="exist" depends="setproxy,testexist">
--    <!-- Download extract the file -->
--    <mkdir dir="${destdir}" />
--    <get src="${sourcefile}" dest="${destfile}" />
--  </target>
--
-   <!-- Helper target, used to create a md5 checksum file  -->
-   <!-- Requires 'file' as a parameter. -->
-   <target name="md5sum">
---- extras.xml~	2011-02-04 20:30:36.817322838 +0100
-+++ extras.xml	2011-02-04 20:48:43.431125625 +0100
-@@ -195,18 +195,7 @@
-     </antcall>
-   </target>
- 
--  <target name="webservices-prepare"
--          depends="prepare"
--          description="Prepare to build web services extras package">
--
--    <copy file="${jaxrpc-lib.jar}"
--          tofile="${tomcat.extras}/webservices/jaxrpc.jar" />
--    <copy file="${wsdl4j-lib.jar}"
--          tofile="${tomcat.extras}/webservices/wsdl4j.jar" />
--  </target>
--
-   <target name="webservices"
--          depends="webservices-prepare"
-           description="Build web services extras package">
- 
-     <!-- Classpath -->
diff --git a/tomcat-userdir.patch b/tomcat-userdir.patch
deleted file mode 100644
index 99a1421..0000000
--- a/tomcat-userdir.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-diff -urNp -x '*.orig' apache-tomcat-7.0.107-src.org/conf/server.xml apache-tomcat-7.0.107-src/conf/server.xml
---- apache-tomcat-7.0.107-src.org/conf/server.xml	2021-11-24 10:19:04.426573110 +0100
-+++ apache-tomcat-7.0.107-src/conf/server.xml	2021-11-24 10:19:04.699920632 +0100
-@@ -137,6 +137,46 @@
-         <!--
-         <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
-         -->
-+	<!--
-+		Automatically map a request URI starting with a tilde
-+		character ("~") and a username to a directory
-+		(commonly named public_html) in that user's home directory
-+		on the server.
-+	-->
-+	<!--
-+		Use /etc/passwd file to identify valid users
-+	-->
-+	<!--
-+	<Listener className="org.apache.catalina.startup.UserConfig"
-+		directoryName="public_html"
-+		userClass="org.apache.catalina.startup.PasswdUserDatabase"/>
-+	-->
-+	<!--
-+		Use all directories found in a specified base directory
-+		to be considered "user home" directories
-+	-->
-+        <!--
-+	<Listener className="org.apache.catalina.startup.UserConfig"
-+		directoryName="public_html"
-+		homeBase="/home/users"
-+		userClass="org.apache.catalina.startup.HomesUserDatabase"/>
-+	-->
-+	<!--
-+		Use LDAP search to identify valid users
-+		You may need to add ldap server's CA cert to global java keystore
-+	-->
-+        <!--
-+	<Listener className="org.apache.catalina.startup.UserConfig"
-+		directoryName="public_html"
-+		connectionURL="ldaps://ldap.example.com/"
-+		connectionName="uid=tomcat,ou=people,dc=example,dc=com"
-+		connectionPassword="secret"
-+		searchBase="ou=People,dc=mim,dc=uw,dc=edu,dc=pl"
-+		searchFilter="(objectClass=posixAccount)"
-+		searchSubtree="false"
-+		pageSize="1000"
-+		userClass="org.apache.catalina.startup.LDAPUserDatabase"/>
-+	-->
- 
-         <!-- Access log processes all example.
-              Documentation at: /docs/config/valve.html
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/tomcat.git/commitdiff/1abf7cdd892537d6e2566fbd58121a03b3f2c7f8




More information about the pld-cvs-commit mailing list