Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Nov 2005 07:37:37 GMT
From:      Ari Maniatis <ari@ish.com.au>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/88388: Drupal port overwrites config on upgrade
Message-ID:  <200511020737.jA27bbWe053609@www.freebsd.org>
Resent-Message-ID: <200511020740.jA27eFaH051603@freefall.freebsd.org>

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

>Number:         88388
>Category:       ports
>Synopsis:       Drupal port overwrites config on upgrade
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 02 07:40:15 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Ari Maniatis
>Release:        all
>Organization:
ish group
>Environment:
/www/drupal 4.6.3
>Description:
When upgrading the www/drupal port from 4.6.2 to 4.6.3 (for example using portupgrade), the Makefile runs commands such as this:

${CP} -R ${WRKSRC}/themes ${PREFIX}/${DRUPDIR}

The effect is to delete all existing configuration files and changes made to the Drupal installation.
>How-To-Repeat:
              Upgrade Drupal.
>Fix:
              A different approach is needed for the installation phase. The databases/phpmyadmin port does this:

install-app:
        cd ${WRKSRC} ; \
        for src in $$( ${FIND} . ! -name .cvsignore ) ; do \
            dst=${PREFIX}/${MYADMDIR}$${src#.} ; \
            if ${TEST} -d $$src ; then \
                ${MKDIR} $$dst ; \
            else \
                ${INSTALL_DATA} $$src $$dst ; \
            fi \
        done

The net effect is that existing configuration files and directories are not deleted.
>Release-Note:
>Audit-Trail:
>Unformatted:



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