apache22 port rewrite fundings

olli hauer ohauer at gmx.de
Sun Aug 19 19:12:56 UTC 2012


During the rewrite of apache22 I notice the code block
below in Makefile.modules is complete irrelevant.

The block is a leftover to configure the bundled apr/apr-util
which we do not use, indeed the configure args are just
ignored for httpd.

This is relevant for the following (closed) PRs:
 ports/83644 ports/130479 ports/110651 ports/159608

During the configure stage the file build/config_vars.mk is
constructed with the help of apr-1-config and apu-1-config.
This file includes all build params from apr/apr-util.


I spend some time to figure out PR ports/159608 which
is not httpd but apu related and I haven't found a working
solution to reimplement the apr1 autoconfigure scripts to
use libc instead libdb-xx.


$> ./configure --help | grep -i db
  --enable-authn-dbm      DBM-based authentication control
  --enable-authn-dbd      SQL-based authentication control
  --enable-authz-dbm      DBM-based authorization control
  --enable-dbd            Apache DBD Framework
  --enable-static-htdbm   Build a statically linked version of htdbm
  --enable-static-httxt2dbm
                          Build a statically linked version of httxt2dbm

$> grep BDB pkg-plist
 => no output


# XXX leftover from bundled apr/apr-util

.if !defined(WITH_DBM)
.   if defined(WITH_BDB) || defined(WITH_BDB_BASE) || defined(WITH_BERKELEYDB)
WITH_DBM=       bdb
PLIST_SUB+=     BDB=""
.   else
PLIST_SUB+=     BDB="@comment "
.   endif
.endif
.if defined(WITH_BERKELEYDB) && !defined(WITH_BDB_VER)
.   if ${WITH_BERKELEYDB} == "FreeBSD"
WITH_BDB_BASE=  yes
.   else
WITH_BDB_VER=   ${WITH_BERKELEYDB:S/db//}
.   endif
.endif

.if defined(WITH_DBM)
.   if ${WITH_DBM:L} == "sdbm"
CONFIGURE_ARGS+=        --with-dbm=sdbm
.   elif ${WITH_DBM:L} == "gdbm"
LIB_DEPENDS+=           gdbm:${PORTSDIR}/databases/gdbm
CONFIGURE_ARGS+=        --with-gdbm=${LOCALBASE}
.   elif ${WITH_DBM:L} == "db" || ${WITH_DBM:L} == "bdb"
.       if defined(WITH_BDB_BASE)
CONFIGURE_ARGS+=        --with-dbm=db185 \
                        --with-berkeley-db=/usr
.       else
USE_BDB=                yes
CONFIGURE_ARGS+=        --with-dbm=db${BDB_VER:S/40/4/} \
                        --with-berkeley-db=${LOCALBASE}
.       endif
.   else
IGNORE=         "Unknown DBM"
.   endif
.else
CONFIGURE_ARGS+=        --with-dbm=sdbm
.endif




More information about the freebsd-apache mailing list