From owner-freebsd-ports Thu Jun 20 8: 1:20 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 806B737B448 for ; Thu, 20 Jun 2002 08:00:12 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g5KF0Bn98342; Thu, 20 Jun 2002 08:00:11 -0700 (PDT) (envelope-from gnats) Received: from nwww.freebsd.org (www.FreeBSD.org [216.136.204.117]) by hub.freebsd.org (Postfix) with ESMTP id 2903F37B404 for ; Thu, 20 Jun 2002 07:57:37 -0700 (PDT) Received: from www.freebsd.org (localhost [127.0.0.1]) by nwww.freebsd.org (8.12.2/8.12.2) with ESMTP id g5KEvVhG040711 for ; Thu, 20 Jun 2002 07:57:31 -0700 (PDT) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.2/8.12.2/Submit) id g5KEvVuC040710; Thu, 20 Jun 2002 07:57:31 -0700 (PDT) Message-Id: <200206201457.g5KEvVuC040710@www.freebsd.org> Date: Thu, 20 Jun 2002 07:57:31 -0700 (PDT) From: Nicholas Paufler To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: ports/39575: Apache 1.3.26 deletes existing data and cgi-bin directories on install/upgrade 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: 39575 >Category: ports >Synopsis: Apache 1.3.26 deletes existing data and cgi-bin directories on install/upgrade >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jun 20 08:00:10 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Nicholas Paufler >Release: 4.5-STABLE >Organization: The Internet Centre >Environment: FreeBSD skuld.incentre.net 4.5-STABLE FreeBSD 4.5-STABLE #1: Wed Apr 24 08:44:19 MDT 2002 root@skuld.incentre.net:/usr/obj/usr/src/sys/SKULD i386 >Description: I've never seen this behavior before but when I used portupgrade to upgrade apache 1.3.23+mod-ssl to 1.3.26+mod-ssl part of the installation blew away the /usr/local/www/data and /usr/local/www/cgi-bin directories and created new ones. I did a little digging and the problem actually exists in the Makefile for apache itself and part of it's install is to remove those directories. Since I'm sure many people will be using portupgrade to install Apache there should either be a patch to make sure that these directories aren't removed if they already exist or a warning/confirmation prompt is put in so that the user knows that this is going to happen. Just by looking at the Makefile for the port this isn't obvious. The lines in question (from /usr/ports/www/apache13-modssl/work/apache_1.3.26) (line 332) $(RM) -rf $(root)$(htdocsdir).default (line 336) $(RM) -rf $(root)$(cgidir).default >How-To-Repeat: On a FreeBSD machine where Apache (or Apache+mod-ssl) has previously been installed from ports, use the portupgrade tool (or remove the old port with pkg_delete [leaving your data directories] or installing the new version overtop with FORCE_PKG_REGISTER=YES) to install the latest version of Apache, 1.3.26. >Fix: Either have a patch that removes those two lines from the Makefile or gracefully handle this in such a way that the user is not likely to lose their data directories without realizing it. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message