Bug 128256

Summary: www/tomcat-native rewrites APR library distributed with apache* ports
Product: Ports & Packages Reporter: vassily ragosin <vr>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description vassily ragosin 2008-10-21 00:20:00 UTC
www/tomcat-native is a port, which installs a native library
for optimizing the performance of Apache Tomcat connectors
by taking the advantage of a native compiled Apache Portable
Runtime library (APR). 

APR library can be build by either using a devel/apr port,
but it can also be installed along with the Apache HTTPD server,
as a part of its normal installation process.

Unfortunately, www/tomcat-native port is ignorant of this fact.
Even if there already is APR library on the system, installed
by one of the www/apache* ports, www/tomcat-native overwrites
the library with a fresh install of devel/apr port. This
creates a possible compatibility problem between www/apache* 
and devel/apr, and also makes it impossible to upgrade
www/apache*, because it conflicts with devel/apr (unless
specifically build against port's apr which is discouraged
by the config screen of www/apache*).

Also, I do NOT have any negative experience with running Tomcat
with www/tomcat-native built against APR library included
in www/apache22.

Fix: 

Something needs to be done about LIB_DEPENDS for www/tomcat-native.
How-To-Repeat: 
1. Install www/apache22 (don't use port's APR)
2. Install www/tomcat-native
3. Notice that APR library in the system was blindly rewritten.
4. Try to force upgrade www/apache22
5. Notice that build breaks because of a conflict with devel/apr.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2008-10-21 00:20:11 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Alex Dupre freebsd_committer freebsd_triage 2010-08-30 13:12:14 UTC
State Changed
From-To: open->closed

Not applicable anymore.