From owner-freebsd-ports Tue Oct 1 13: 0:19 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1235937B415 for ; Tue, 1 Oct 2002 13:00:17 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 51BE443E6E for ; Tue, 1 Oct 2002 13:00:16 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g91K0GCo070062 for ; Tue, 1 Oct 2002 13:00:16 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g91K0Gv0070061; Tue, 1 Oct 2002 13:00:16 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 477E137B404 for ; Tue, 1 Oct 2002 12:50:48 -0700 (PDT) Received: from gerweck.dyndns.org (adsl-64-161-24-117.dsl.sntc01.pacbell.net [64.161.24.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2864F43E65 for ; Tue, 1 Oct 2002 12:50:47 -0700 (PDT) (envelope-from andy@gerweck.dyndns.org) Received: from gerweck.dyndns.org (f18d8dceda0a50205939fadc251dc1fa@localhost.eville [127.0.0.1]) by gerweck.dyndns.org (8.12.3/8.12.3) with ESMTP id g91JokCC092637 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Tue, 1 Oct 2002 12:50:47 -0700 (PDT) (envelope-from andy@gerweck.dyndns.org) Received: (from andy@localhost) by gerweck.dyndns.org (8.12.3/8.12.3/Submit) id g91JokHd092636; Tue, 1 Oct 2002 12:50:46 -0700 (PDT) (envelope-from andy) Message-Id: <200210011950.g91JokHd092636@gerweck.dyndns.org> Date: Tue, 1 Oct 2002 12:50:46 -0700 (PDT) From: Andrew Gerweck Reply-To: Andrew Gerweck To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/43565: jakarta-tomcat41 port breaks upgrades Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 43565 >Category: ports >Synopsis: jakarta-tomcat41 port breaks upgrades >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Oct 01 13:00:12 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Andrew Gerweck >Release: FreeBSD 4.6.2-RELEASE i386 >Organization: >Environment: System: FreeBSD gerweck.dyndns.org 4.6.2-RELEASE FreeBSD 4.6.2-RELEASE #14: Sun Aug 25 15:25:19 PDT 2002 andy@gerweck.dyndns.org:/usr/obj/usr/src/sys/ENRIQUE i386 >Description: The Jakarta Tomcat port creates a bad filesystem mess. Here are the problems: 1. The port doesn't use -sample files, so it tends to blow away configuration files which are generally very complex and sensitive. 2. The port insists on installing in a directory in /usr/local that has the version number tacked on. This means that an upgrade requires a total duplication of the entire installed structure. While the structure of the port as is makes it very easy to get Tomcat running the first time around, it is out of touch with how Tomcat is used. Tomcat is an application environment, much like an OS. In practice, the environment tends to be heavily customized. The port is useless if it can't allow an upgrade that preserves all the customization. This includes the config file, the shared directory, and all webapps. >How-To-Repeat: >Fix: Stop putting the minor version number in the directory. I'm pretty sure it's against the porter's handbook. Regardless, it's asinine. Second, make sure that you don't mess with anything the user's done. Most ports do this just fine: install configuration files named -sample and perhaps give a tool to help people get things working the first time. In a complex environment like an app server, a consistent upgrade path is far more important than quick initial setup. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message