Bug 97077 - www/mod_chroot install fails on www/apache22 (.so vs .la) (www/apache20 patch?!)
Summary: www/mod_chroot install fails on www/apache22 (.so vs .la) (www/apache20 patch?!)
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: freebsd-apache (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-10 09:00 UTC by Geraint Edwards
Modified: 2006-05-10 21:16 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Geraint Edwards 2006-05-10 09:00:31 UTC
//goo/usr/ports/www/mod_chroot# make install clean
===>  Vulnerability check disabled, database not found
=> mod_chroot-0.5.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch from http://core.segfault.pl/~hobbit/mod_chroot/dist/.
mod_chroot-0.5.tar.gz                         100% of   14 kB   33 kBps
===>  Extracting for mod_chroot-0.5
=> MD5 Checksum OK for mod_chroot-0.5.tar.gz.
===>  Patching for mod_chroot-0.5
===>   mod_chroot-0.5 depends on file: /usr/local/sbin/apxs - found
===>  Configuring for mod_chroot-0.5
===>  Building for mod_chroot-0.5
===>  Generating apache plist
/usr/local/build-1/libtool --silent --mode=compile cc -prefer-pic -O -pipe -march=opteron    -I/usr/local/include/apache22  -I/usr/local/include/apr-1   -I/usr/local/include/apr-1 -I/usr/local/include  -c -o mod_chroot.lo mod_chroot.c && touch mod_chroot.slo
/usr/local/build-1/libtool --silent --mode=link cc -o mod_chroot.la  -rpath /usr/local/libexec/apache22 -module -avoid-version    mod_chroot.lo
===>  Installing for mod_chroot-0.5
===>   mod_chroot-0.5 depends on file: /usr/local/sbin/apxs - found
===>   Generating temporary packing list
===>  Checking if www/mod_chroot already installed
/usr/local/share/apache22/build/instdso.sh SH_LIBTOOL='/usr/local/build-1/libtool' /usr/ports/www/mod_chroot/work/mod_chroot-0.5/mod_chroot.so /usr/local/libexec/apache22
/usr/local/build-1/libtool --mode=install cp /usr/ports/www/mod_chroot/work/mod_chroot-0.5/mod_chroot.so /usr/local/libexec/apache22/
cp /usr/ports/www/mod_chroot/work/mod_chroot-0.5/mod_chroot.so /usr/local/libexec/apache22/mod_chroot.so
cp: /usr/ports/www/mod_chroot/work/mod_chroot-0.5/mod_chroot.so: No such file or directory
apxs:Error: Command failed with rc=65536
.
*** Error code 1

Stop in /usr/ports/www/mod_chroot.
//goo/usr/ports/www/mod_chroot#

Fix: Well, www/mod_chroot/Makefile seems to rely on www/apache20/Makefile.modules.3rd
so I had a poke in there (the same file isn't in www/apache2[12]/...

This seems to do the trick, but I'm not sure if it's right:

//goo/usr/ports/www/apache20# diff -u Makefile.modules.3rd.orig Makefile.modules.3rd


-.if exists(${LOCALBASE}/include/apache2/http_core.h)
+.if exists(${LOCALBASE}/include/apache2/http_core.h) || exists(${LOCALBASE}/include/apache21/http_core.h) || exists(${LOCALBASE}/include/apache22/http_core.h)
 WITH_APACHE2=	YES
 .   if defined (WANT_APACHE)
 .     if ${WANT_APACHE} == 13--Yob7aMur0uwaTD0kaSB0Nrj2mbNfBmQ3HYIqpren8dKhiZAL
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- Makefile.modules.3rd.orig	Fri Jan  6 12:46:34 2006
+++ Makefile.modules.3rd	Tue May  9 10:54:56 2006
@@ -18,7 +18,7 @@
 			PKGNAMESUFFIX
How-To-Repeat: 
	take a virgin 5.4 O/S install. install www/apache22, then try www/mod_chroot
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-05-10 09:04:07 UTC
Responsible Changed
From-To: freebsd-ports-bugs->apache

Over to maintainer
Comment 2 Clement Laforet freebsd_committer freebsd_triage 2006-05-10 21:15:52 UTC
State Changed
From-To: open->closed

If we use USE_APACHE=13+ it fixes the problem. 

Thanks for pointing this out. 

clem