ports/75348: Tomcat port overwrites server.xml config file
Jiri Novak
bati at nostromo.cz
Wed Dec 22 00:20:28 PST 2004
The following reply was made to PR ports/75348; it has been noted by GNATS.
From: Jiri Novak <bati at nostromo.cz>
To: Herve Quiroz <herve.quiroz at esil.univ-mrs.fr>
Cc: freebsd-gnats-submit at freebsd.org, Kang Liu <liukang at bjut.edu.cn>
Subject: Re: ports/75348: Tomcat port overwrites server.xml config file
Date: Wed, 22 Dec 2004 09:10:56 +0100
Herve Quiroz wrote:
> Same here. I can't reproduce the error:
>
> $ cd /usr/ports/www/jakarta-tomcat5
> $ make install
>
> [...]
> Installing local configuration file: /usr/local/jakarta-tomcat5.0/conf/server.xml
> [...]
>
> $ echo "whatever" >/usr/local/jakarta-tomcat5.0/conf/server.xml
> $ make deinstall
>
> [...]
> If permanently deleting this package, /usr/local/jakarta-tomcat5.0/conf/server.xml must be removed manually
> [...]
>
> $ make reinstall
>
> [...]
> Preserving local configuration file: /usr/local/jakarta-tomcat5.0/conf/server.xml
> [...]
>
> $ cat /usr/local/jakarta-tomcat5.0/conf/server.xml
> whatever
>
>
> Kang, BTW, that's not really related but I think we should do something for
> the garbage output while deinstalling the port:
>
> [...]
> If permanently deleting this package, /usr/local/jakarta-tomcat5.0/conf/server.xml must be removed manually
> pkg_delete: unable to completely remove directory '/usr/local/jakarta-tomcat5.0/conf'
> pkg_delete: unable to completely remove directory '/usr/local/jakarta-tomcat5.0'
> pkg_delete: couldn't entirely delete package (perhaps the packing list is
> incorrectly specified?)
> [...]
>
> A simple "@unexec rmdir jakarta-tomcat5.0/conf 2>/dev/null || true"
> would probably be enough.
>
> Herve
>
As I wrote in my mail to Kang Liu, I did portupgrade -a on the system
which resulted in overwritten config files. I don't exactly know what
happened during build of tomcat, because some other ports was updated
too and I didn't "script" the upgrade session (stupid of me, I know).
--
Jiri Novak
<bati at nostromo.cz>
More information about the freebsd-java
mailing list