Bug 92995 - [patch] mail/imp clobbers Apache ${PREFIX}/apache2/Includes/
Summary: [patch] mail/imp clobbers Apache ${PREFIX}/apache2/Includes/
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Thierry Thomas
Depends on:
Reported: 2006-02-07 21:30 UTC by Stefan Bethke
Modified: 2006-02-16 22:31 UTC (History)
0 users

See Also:

file.diff (411 bytes, patch)
2006-02-07 21:30 UTC, Stefan Bethke
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.