Bug 106906 - tomcat 5.0.28-rc7 installation doesn't create some (empty) dirs in $CATALINA_HOME
Bug#: 106906 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: minor Priority: P2
Resolution: FIXED Assigned To: java@gentoo.org Reported By: spam123@jamesAshepherd.com
Component: Applications
URL: 
Summary: tomcat 5.0.28-rc7 installation doesn't create some (empty) dirs in $CATALINA_HOME
Keywords:  
Status Whiteboard: 
Opened: 2005-09-22 10:58 0000
Description:   Opened: 2005-09-22 10:58 0000
I'm sure there are a lot of people like me who have ANT scripts that expect the
usual layout under $CATALINA_HOME

After I installed I had to do

mkdir -p $CATALINA_HOME/shared/lib
mkdir -p $CATALINA_HOME/shared/classes
ln -s /etc/tomcat-5/default $CATALINA_HOME/conf

I like gentoo as the distributions are generally not messed around with and
splattered across the filesystem as much as other distros.

Could this be put in as part of the install (or maybe it failed on my install
for some reason).

Many, many thanks

Reproducible: Always
Steps to Reproduce:
1.
2.
3.

------- Comment #1 From James A Shepherd 2005-10-16 01:45:22 0000 -------
still in tomcat 5.0.28-rc8

------- Comment #2 From Petteri Räty 2005-10-16 15:09:20 0000 -------
I don't like the fact the we make so many keepdirs in the Tomcat ebuild
already,
but maybe it is just me. How would you feel about making a pkg_config() that
creates all those directories and then instructing the user to run emerge
--config =${PF} in pkg_postinst() if he wants those directories created for
him?

------- Comment #3 From James A Shepherd 2005-10-17 11:47:22 0000 -------
One of the reasons for using servlets is platform independence.

I regard the directory layout as part of that independence. Admittedly, tomcat
isn't part of the servlet specification, but it is the reference implementation,
running on any JVM.

This obviously isn't a show stopper, but I think other people will find not
having the usual layout annoying, and I assumed it would be easy to just put the
empty dirs in to the build.

Many thanks!

------- Comment #4 From Petteri Räty 2005-10-17 13:11:41 0000 -------
Adding the directories is easy, but they will be left on the system also after
unmerge. Well we should be as close to the upstream as possible so our ebuild
should create those directories when upstream also does it. 

------- Comment #5 From Petteri Räty 2005-10-17 14:08:00 0000 -------
Fixed. Thanks for reporting. Actually the ebuild did try to create the
directory
to $CATALINA_HOME but portage cleans empty directories. The newest -r9 creates
the directories correctly to the default $CATALINE_BASE.