Bug 92995

Summary: [patch] mail/imp clobbers Apache ${PREFIX}/apache2/Includes/
Product: Ports & Packages Reporter: Stefan Bethke <stb>
Component: Individual Port(s)Assignee: Thierry Thomas <thierry>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Stefan Bethke 2006-02-07 21:30:12 UTC
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.

Fix: $ diff -u Makefile.orig  Makefile
How-To-Repeat: 1. Install www/apache20
2. rmdir ${PREFIX}/etc/apache2/Includes
3. Install mail/imp
4. Re-install www/apache20
Comment 1 Edwin Groothuis freebsd_committer 2006-02-07 21:32:09 UTC
Responsible Changed
From-To: freebsd-ports-bugs->thierry

Over to maintainer
Comment 2 Thierry Thomas freebsd_committer 2006-02-16 22:29:50 UTC
State Changed
From-To: open->closed


Committed, thanks. 

Note: you should not remove a directory created by a port, when you 
will upgrade Apache, it will be recreated.