On Sat, 26 Dec 2009 23:24:43 -0600
Andres Salazar <ndrsslz...@gmail.com> wrote:

> Hello,
> 
> I have editted the Makefile for apache2.2.14 in 4.6 ports so that the
> optional modules specifically tagged as enabled are actually disabled
> because i dont need them:
> 
> CONFIGURE_ARGS+=        --enable-layout=OpenBSD \
>                         --prefix=${HTTPD_DIR} \
>                         --exec-prefix=${LOCALBASE} \
>                         --sysconfdir=${CONFDIR} \
>                         --with-apr=${LOCALBASE}/bin/apr-1-mt-config  \
>                         --with-apr-util=${LOCALBASE}/bin/apu-1-mt-config
> \ --enable-ssl --with-ssl=/usr \
>                         --with-mpm=prefork \
>                         --with-program-name=httpd2 \
>                         --enable-modules=all \
>                         --disable-cache \
>                         --disable-disk-cache \
>                         --disable-proxy \
>                         --enable-mods-shared=all \
>                         --enable-suexec \
>                         --with-suexec-caller=_apache2 \
>                         --with-suexec-bin=${TRUEPREFIX}/sbin/suexec2 \
>                         --with-suexec-logfile=/var/log/suexec2_log \
>                         --with-pcre=${LOCALBASE}
> 
> 
> 
> However... when i do the final part of the compiling make install it
> gives these errors:
> 
> ===>  Building package for apache-httpd-2.2.14
> Create /usr/ports/packages/i386/all/apache-httpd-2.2.14.tgz
> Error in package:
> /usr/ports/obj/apache-httpd-2.2.14/fake-i386/usr/local/lib/apache2/mod_cache.so
> does not exist
> Error in package:
> /usr/ports/obj/apache-httpd-2.2.14/fake-i386/usr/local/lib/apache2/mod_disk_cache.so
> does not exist
> Error in package:
> /usr/ports/obj/apache-httpd-2.2.14/fake-i386/usr/local/lib/apache2/mod_proxy.so
> does not exist
> Error in package:
> /usr/ports/obj/apache-httpd-2.2.14/fake-i386/usr/local/lib/apache2/mod_proxy_ajp.so
> does not exist
> Error in package:
> /usr/ports/obj/apache-httpd-2.2.14/fake-i386/usr/local/lib/apache2/mod_proxy_balancer.so
> does not exist
> Error in package:
> /usr/ports/obj/apache-httpd-2.2.14/fake-i386/usr/local/lib/apache2/mod_proxy_connect.so
> does not exist
> Error in package:
> /usr/ports/obj/apache-httpd-2.2.14/fake-i386/usr/local/lib/apache2/mod_proxy_ftp.so
> does not exist
> Error in package:
> /usr/ports/obj/apache-httpd-2.2.14/fake-i386/usr/local/lib/apache2/mod_proxy_http.so
> does not exist
> Error in package:
> /usr/ports/obj/apache-httpd-2.2.14/fake-i386/usr/local/lib/apache2/mod_proxy_scgi.so
> does not exist
> ===>  Cleaning for apache-httpd-2.2.14
> rm -f /usr/ports/packages/i386/all/apache-httpd-2.2.14.tgz
> /usr/ports/packages/i386/ftp/apache-httpd-2.2.14.tgz
> /usr/ports/packages/i386/cdrom/apache-httpd-2.2.14.tgz
> *** Error code 1
> 
> Stop in /usr/ports/www/apache-httpd (line 1444 of
> /usr/ports/infrastructure/mk/bsd.port.mk).
> *** Error code 1
> 
> Stop in /usr/ports/www/apache-httpd (line 1984 of
> /usr/ports/infrastructure/mk/bsd.port.mk).
> *** Error code 1
> 
> Stop in /usr/ports/www/apache-httpd (line 1474 of
> /usr/ports/infrastructure/mk/bsd.port.mk).
> #
> 
> 
> Is there anyway I can actually compiled the apache2.2.14 without these
> optional extras??
> 
> Thanks
> 
> Andres

If you change the Makefile like that, you have to update the PLIST
files, before you can build the package.

The command for that is 'make update-plist'.
You have to run that after 'make fake', or after your build failed like
above.

This is documented in the bsd.port.mk manpage.

- Robert

Reply via email to