Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 106906 - tomcat 5.0.28-rc7 installation doesn't create some (empty) dirs in $CATALINA_HOME
Summary: tomcat 5.0.28-rc7 installation doesn't create some (empty) dirs in $CATALINA_...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-22 10:58 UTC by James A Shepherd
Modified: 2005-10-17 14:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James A Shepherd 2005-09-22 10:58:45 UTC
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 James A Shepherd 2005-10-16 01:45:22 UTC
still in tomcat 5.0.28-rc8
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2005-10-16 15:09:20 UTC
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 James A Shepherd 2005-10-17 11:47:22 UTC
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 Petteri Räty (RETIRED) gentoo-dev 2005-10-17 13:11:41 UTC
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 Petteri Räty (RETIRED) gentoo-dev 2005-10-17 14:08:00 UTC
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.