From owner-freebsd-java@FreeBSD.ORG Wed Dec 22 08:20:28 2004 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D41116A4CE for ; Wed, 22 Dec 2004 08:20:28 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3DE0E43D41 for ; Wed, 22 Dec 2004 08:20:28 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iBM8KSMR032066 for ; Wed, 22 Dec 2004 08:20:28 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iBM8KSRC032065; Wed, 22 Dec 2004 08:20:28 GMT (envelope-from gnats) Date: Wed, 22 Dec 2004 08:20:28 GMT Message-Id: <200412220820.iBM8KSRC032065@freefall.freebsd.org> To: freebsd-java@FreeBSD.org From: Jiri Novak Subject: Re: ports/75348: Tomcat port overwrites server.xml config file X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jiri Novak List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Dec 2004 08:20:28 -0000 The following reply was made to PR ports/75348; it has been noted by GNATS. From: Jiri Novak To: Herve Quiroz Cc: freebsd-gnats-submit@freebsd.org, Kang Liu 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