From: Miroslav Ć ulc Date: Fri, 19 Feb 2016 21:45:21 +0000 (+0100) Subject: www-servers/tomcat: removed oracle-javamail from deps and hence from tomcat classpath... X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=540f24964bd0e5d291cfdb1f621a8ef00cc03e70;p=gentoo.git 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 --- 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 cfc066197b85..b98587f6ce56 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 c6d846333b54..ac0869f61f8c 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} !