[packages/tomcat/dev-7.0.55] allow build with older ecj

glen glen at pld-linux.org
Sun Jul 26 21:27:01 CEST 2015


commit f2794e2003732f8e67914d2d9155d4145f995a0b
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Jul 26 21:53:22 2015 +0300

    allow build with older ecj
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1050927#c3

 jdt18.patch | 25 +++++++++++++++++++++++++
 tomcat.spec |  4 +++-
 2 files changed, 28 insertions(+), 1 deletion(-)
---
diff --git a/tomcat.spec b/tomcat.spec
index 50f272e..bd02867 100644
--- a/tomcat.spec
+++ b/tomcat.spec
@@ -38,16 +38,17 @@ Patch2:		%{name}-LDAPUserDatabase.patch
 Patch3:		%{name}-catalina.policy-javadir.patch
 Patch4:		%{name}-userdir.patch
 Patch5:		logging.patch
+Patch6:		jdt18.patch
 Patch100:	jcl-build.xml.patch
 URL:		http://tomcat.apache.org/
 BuildRequires:	ant >= 1.5.3
-BuildRequires:	eclipse-jdt >= 4.2.2
 BuildRequires:	java(JSR109)
 BuildRequires:	java-avalon-framework
 BuildRequires:	java-avalon-logkit
 BuildRequires:	java-commons-daemon >= 1.0
 BuildRequires:	java-commons-dbcp-tomcat5 >= 0:1.1
 BuildRequires:	java-commons-pool-tomcat5
+BuildRequires:	java-eclipse-jdt >= 4.3.2
 BuildRequires:	java-geronimo-spec-jaxrpc
 BuildRequires:	java-jdbc-mysql
 BuildRequires:	java-junit
@@ -266,6 +267,7 @@ javax.servlet.http, javax.servlet.jsp i java.servlet.jsp.tagext).
 %patch3 -p1
 %patch4 -p1
 %patch5 -p1
+%patch6 -p0
 
 # Prepare java-commmons-logging sources
 install -d output/extras/logging
diff --git a/jdt18.patch b/jdt18.patch
new file mode 100644
index 0000000..0a68e81
--- /dev/null
+++ b/jdt18.patch
@@ -0,0 +1,25 @@
+https://bz.apache.org/bugzilla/show_bug.cgi?id=56373
+
+--- java/org/apache/jasper/compiler/JDTCompiler.java	(revision 1585931)
++++ java/org/apache/jasper/compiler/JDTCompiler.java	(working copy)
+@@ -335,7 +335,7 @@ 
+                              CompilerOptions.VERSION_1_7);
+             } else if(opt.equals("1.8")) {
+                 settings.put(CompilerOptions.OPTION_Source,
+-                             CompilerOptions.VERSION_1_8);
++                             "1.8"); // CompilerOptions.VERSION_1_8
+             } else {
+                 log.warn("Unknown source VM " + opt + " ignored.");
+                 settings.put(CompilerOptions.OPTION_Source,
+@@ -379,9 +379,9 @@ 
+                         CompilerOptions.VERSION_1_7);
+             } else if(opt.equals("1.8")) {
+                 settings.put(CompilerOptions.OPTION_TargetPlatform,
+-                             CompilerOptions.VERSION_1_8);
++                             "1.8"); // CompilerOptions.VERSION_1_8
+                 settings.put(CompilerOptions.OPTION_Compliance,
+-                        CompilerOptions.VERSION_1_8);
++                        "1.8"); // CompilerOptions.VERSION_1_8
+             } else {
+                 log.warn("Unknown target VM " + opt + " ignored.");
+                 settings.put(CompilerOptions.OPTION_TargetPlatform,
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list