From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Feb 7 21:30:13 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C880016A420 for ; Tue, 7 Feb 2006 21:30:13 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4649A43D49 for ; Tue, 7 Feb 2006 21:30:13 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k17LUDus017813 for ; Tue, 7 Feb 2006 21:30:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k17LUDYS017811; Tue, 7 Feb 2006 21:30:13 GMT (envelope-from gnats) Resent-Date: Tue, 7 Feb 2006 21:30:13 GMT Resent-Message-Id: <200602072130.k17LUDYS017811@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Stefan Bethke Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2A82416A422 for ; Tue, 7 Feb 2006 21:25:11 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id E2B5243D45 for ; Tue, 7 Feb 2006 21:25:10 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k17LPA1x048876 for ; Tue, 7 Feb 2006 21:25:10 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k17LPAha048870; Tue, 7 Feb 2006 21:25:10 GMT (envelope-from nobody) Message-Id: <200602072125.k17LPAha048870@www.freebsd.org> Date: Tue, 7 Feb 2006 21:25:10 GMT From: Stefan Bethke To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: ports/92995: [patch] mail/imp clobbers Apache ${PREFIX}/apache2/Includes/ X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Feb 2006 21:30:14 -0000 >Number: 92995 >Category: ports >Synopsis: [patch] mail/imp clobbers Apache ${PREFIX}/apache2/Includes/ >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Feb 07 21:30:12 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Stefan Bethke >Release: 6-stable >Organization: >Environment: FreeBSD koef.zs64.net 6.0-STABLE FreeBSD 6.0-STABLE #4: Thu Jan 12 15:59:51 CET 2006 root@lokschuppen.zs64.net:/usr/obj/usr/src/sys/EISENBOOT i386 >Description: Since I'm not using the default include mechanism that the Apache 2.0 port provides, I removed the ${PREFIX}/etc/apache2/Includes directory. When I subsequently installed IMP, instead of installing the IMP include file in that subdir, it created a new file under that name. When I then tried to upgrade the www/apache20 port (through portupgrade or manually), the install target failed to create a new Includes directory because the file was in the way. The IMP port should not create a file where a directory is expected. With the patch, the install fails with an appropriate error message: ===> imp-4.0.4_1 depends on file: /usr/local/bin/deliverquota - found ===> imp-4.0.4_1 depends on file: /usr/local/sbin/apxs - found ===> Generating temporary packing list ===> Checking if mail/imp already installed install: /usr/local/etc/apache2/Includes/: No such file or directory *** Error code 71 Stop in /usr/ports/mail/imp. >How-To-Repeat: 1. Install www/apache20 2. rmdir ${PREFIX}/etc/apache2/Includes 3. Install mail/imp 4. Re-install www/apache20 >Fix: $ diff -u Makefile.orig Makefile --- Makefile.orig Fri Jan 6 01:38:12 2006 +++ Makefile Tue Feb 7 22:10:56 2006 @@ -158,9 +158,9 @@ .endif .if ${APACHE_VERSION} >= 20 -HORDE_INC= ${LOCALBASE}/etc/apache${APACHE_VERSION:S/20/2/}/Includes +HORDE_INC= ${LOCALBASE}/etc/apache${APACHE_VERSION:S/20/2/}/Includes/ .else -HORDE_INC= ${LOCALBASE}/etc/horde +HORDE_INC= ${LOCALBASE}/etc/horde/ .endif pre-everything:: >Release-Note: >Audit-Trail: >Unformatted: