ports/92995: [patch] mail/imp clobbers Apache ${PREFIX}/apache2/Includes/

Stefan Bethke stb at lassitu.de
Tue Feb 7 21:30:14 UTC 2006


>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 at 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:



More information about the freebsd-ports-bugs mailing list