commit: 540f24964bd0e5d291cfdb1f621a8ef00cc03e70
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 19 21:45:21 2016 +0000
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Fri Feb 19 21:45:21 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=540f2496
www-servers/tomcat: removed oracle-javamail from deps and hence from tomcat
classpath (bug #453212)
this jar should not be on tomcat's classpath, if one needs it on global
classpath, he/she should use TOMCAT_EXTRA_JARS in
/etc/conf.d/tomcat-SLOT[-suffix] to put it on the global classpath. the
before-the-fix version of the ebuilds made it impossible to put javamail jar
inside web application as that resulted in conflict which could be avoided only
by removal of javamail jar from the global classpath
Package-Manager: portage-2.2.27
.../tomcat/{tomcat-7.0.68.ebuild => tomcat-7.0.68-r1.ebuild} | 7 +++----
.../tomcat/{tomcat-8.0.32.ebuild => tomcat-8.0.32-r1.ebuild} | 7 +++----
...{tomcat-9.0.0_alpha3.ebuild => tomcat-9.0.0_alpha3-r1.ebuild} | 9 ++++-----
3 files changed, 10 insertions(+), 13 deletions(-)
diff --git a/www-servers/tomcat/tomcat-7.0.68.ebuild
b/www-servers/tomcat/tomcat-7.0.68-r1.ebuild
similarity index 95%
rename from www-servers/tomcat/tomcat-7.0.68.ebuild
rename to www-servers/tomcat/tomcat-7.0.68-r1.ebuild
index cfc0661..b98587f 100644
--- a/www-servers/tomcat/tomcat-7.0.68.ebuild
+++ b/www-servers/tomcat/tomcat-7.0.68-r1.ebuild
@@ -25,7 +25,6 @@ ECJ_SLOT="4.4"
SAPI_SLOT="3.0"
COMMON_DEP="dev-java/eclipse-ecj:${ECJ_SLOT}
- dev-java/oracle-javamail:0
dev-java/tomcat-servlet-api:${SAPI_SLOT}"
RDEPEND="${COMMON_DEP}
websockets? ( >=virtual/jre-1.7 )
@@ -45,8 +44,8 @@ pkg_setup() {
}
java_prepare() {
- # Remove bundled javamail, servlet-api
- rm -rv java/javax/{el,mail,servlet} || die
+ # Remove bundled servlet-api
+ rm -rv java/javax/{el,servlet} || die
java-pkg_clean
@@ -61,7 +60,7 @@ java_prepare() {
JAVA_ANT_REWRITE_CLASSPATH="true"
EANT_BUILD_TARGET="deploy"
-EANT_GENTOO_CLASSPATH="eclipse-ecj-${ECJ_SLOT},oracle-javamail,tomcat-servlet-api-${SAPI_SLOT}"
+EANT_GENTOO_CLASSPATH="eclipse-ecj-${ECJ_SLOT},tomcat-servlet-api-${SAPI_SLOT}"
EANT_GENTOO_CLASSPATH_EXTRA="${S}/output/classes"
EANT_NEEDS_TOOLS="true"
EANT_EXTRA_ARGS="-Dversion=${PV}-gentoo -Dversion.number=${PV}
-Dcompile.debug=false"
diff --git a/www-servers/tomcat/tomcat-8.0.32.ebuild
b/www-servers/tomcat/tomcat-8.0.32-r1.ebuild
similarity index 95%
rename from www-servers/tomcat/tomcat-8.0.32.ebuild
rename to www-servers/tomcat/tomcat-8.0.32-r1.ebuild
index c6d8463..ac0869f 100644
--- a/www-servers/tomcat/tomcat-8.0.32.ebuild
+++ b/www-servers/tomcat/tomcat-8.0.32-r1.ebuild
@@ -25,7 +25,6 @@ ECJ_SLOT="4.4"
SAPI_SLOT="3.1"
COMMON_DEP="dev-java/eclipse-ecj:${ECJ_SLOT}
- dev-java/oracle-javamail:0
dev-java/tomcat-servlet-api:${SAPI_SLOT}"
RDEPEND="${COMMON_DEP}
!<dev-java/tomcat-native-1.1.24
@@ -49,8 +48,8 @@ pkg_setup() {
java_prepare() {
find -name '*.jar' -type f -delete -print || die
- # Remove bundled javamail, servlet-api
- rm -rv java/javax/{el,mail,servlet} || die
+ # Remove bundled servlet-api
+ rm -rv java/javax/{el,servlet} || die
epatch "${FILESDIR}/${P}-build.xml.patch"
@@ -63,7 +62,7 @@ java_prepare() {
JAVA_ANT_REWRITE_CLASSPATH="true"
EANT_BUILD_TARGET="deploy"
-EANT_GENTOO_CLASSPATH="eclipse-ecj-${ECJ_SLOT},oracle-javamail,tomcat-servlet-api-${SAPI_SLOT}"
+EANT_GENTOO_CLASSPATH="eclipse-ecj-${ECJ_SLOT},tomcat-servlet-api-${SAPI_SLOT}"
EANT_TEST_GENTOO_CLASSPATH="easymock-3.2"
EANT_GENTOO_CLASSPATH_EXTRA="${S}/output/classes"
EANT_NEEDS_TOOLS="true"
diff --git a/www-servers/tomcat/tomcat-9.0.0_alpha3.ebuild
b/www-servers/tomcat/tomcat-9.0.0_alpha3-r1.ebuild
similarity index 94%
rename from www-servers/tomcat/tomcat-9.0.0_alpha3.ebuild
rename to www-servers/tomcat/tomcat-9.0.0_alpha3-r1.ebuild
index 881e9a9..2b58216 100644
--- a/www-servers/tomcat/tomcat-9.0.0_alpha3.ebuild
+++ b/www-servers/tomcat/tomcat-9.0.0_alpha3-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@@ -26,7 +26,6 @@ ECJ_SLOT="4.5"
SAPI_SLOT="4.0"
COMMON_DEP="dev-java/eclipse-ecj:${ECJ_SLOT}
- dev-java/oracle-javamail:0
dev-java/tomcat-servlet-api:${SAPI_SLOT}"
RDEPEND="${COMMON_DEP}
!<dev-java/tomcat-native-1.1.24
@@ -50,8 +49,8 @@ pkg_setup() {
java_prepare() {
find -name '*.jar' -type f -delete -print || die
- # Remove bundled javamail, servlet-api
- rm -rv java/javax/{el,mail,servlet} || die
+ # Remove bundled servlet-api
+ rm -rv java/javax/{el,servlet} || die
epatch "${FILESDIR}/${P}-build.xml.patch"
@@ -64,7 +63,7 @@ java_prepare() {
JAVA_ANT_REWRITE_CLASSPATH="true"
EANT_BUILD_TARGET="deploy"
-EANT_GENTOO_CLASSPATH="eclipse-ecj-${ECJ_SLOT},oracle-javamail,tomcat-servlet-api-${SAPI_SLOT}"
+EANT_GENTOO_CLASSPATH="eclipse-ecj-${ECJ_SLOT},tomcat-servlet-api-${SAPI_SLOT}"
EANT_TEST_GENTOO_CLASSPATH="easymock-3.2"
EANT_GENTOO_CLASSPATH_EXTRA="${S}/output/classes"
EANT_NEEDS_TOOLS="true"