Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jun 2002 07:57:31 -0700 (PDT)
From:      Nicholas Paufler <echofox@discordia.ca>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/39575: Apache 1.3.26 deletes existing data and cgi-bin directories on install/upgrade
Message-ID:  <200206201457.g5KEvVuC040710@www.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206201457.g5KEvVuC040710>