Date: Tue, 15 Oct 2002 04:49:09 +0400 (MSD) From: Sergey Mokryshev <mokr@mokr.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/44071: oops-1.5.22.20020519 port does not compile with DB4 Message-ID: <200210150049.g9F0n9S8046076@cyclope.child.ru>
next in thread | raw e-mail | index | archive | help
>Number: 44071 >Category: ports >Synopsis: oops-1.5.22.20020519 port does not compile with DB4 >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Oct 14 17:50:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Sergey Mokryshev >Release: FreeBSD 5.0-CURRENT i386 >Organization: Tersys Integration >Environment: System: FreeBSD cyclope.child.ru 5.0-CURRENT FreeBSD 5.0-CURRENT #16: Thu Oct 10 23:07:51 MSD 2002 mokr@cyclope.child.ru:/usr/obj/.1/src/sys/CYCLOPE i386 >Description: /usr/ports/www/oops port does not compile with Berkeley DB4 library due to a bug in configure script and a wrong header location in sources. It is also build-dependant on gawk, which is not mentioned anywhere (this is a bug in autoconf213, unconditional setting of AWK=gawk on 40-th line). Another problem with this port is described in ports/40593. >How-To-Repeat: run 'make' and select DB4 storage type >Fix: Original patches available at http://www.mokr.ru/files/patch-oops-1.5.22.20020519.tgz Makefile.patch --- Makefile.orig Tue Oct 15 04:26:13 2002 +++ Makefile Tue Oct 15 04:25:55 2002 @@ -35,6 +35,7 @@ SCRIPTS_ENV+= WRKDIRPREFIX="${WRKDIRPREFIX}" \ TOUCH="${TOUCH}" \ MKDIR="${MKDIR}" +BUILD_DEPENDS+= gawk:${PORTSDIR}/lang/gawk pre-fetch: @${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.oops files/patch-configure.in --- configure.in.orig Wed Dec 19 15:18:40 2001 +++ configure.in Sat Oct 5 18:27:46 2002 @@ -49,7 +49,7 @@ AC_ARG_WITH(zlib,--with-zlib=[[PATH]] Which zlib library/object file to use, with_zlib="$withval", with_zlib="") -AC_CHECK_HEADERS(crypt.h getopt.h pthread.h stdlib.h string.h strings.h unistd.h sys/inttypes.h) +AC_CHECK_HEADERS(crypt.h getopt.h pthread.h stdlib.h string.h strings.h unistd.h inttypes.h) AC_CHECK_HEADERS(netinet/ip_fil.h, AC_DEFINE(HAVE_IPF)) AC_CHECK_HEADERS(netinet/ip6.h, AC_DEFINE(HAVE_IP6_H)) @@ -66,6 +66,9 @@ LIBDB_PATH="/usr/local/BerkeleyDB.3.0" elif test -r "$pwd/libdb.a"; then LIBDB_PATH="$pwd" +elif test -r "/usr/local/lib/libdb4.a"; then + LIBDB_PATH="/usr/local" + LIBDB_NAME=-ldb4 elif test -r "/usr/local/lib/libdb.a"; then LIBDB_PATH="/usr/local" elif test -r "/usr/lib/libdb2.a"; then @@ -524,10 +527,10 @@ esac if test "X$MYSQL_PATH" != "X" ; then - LIBS="-L$MYSQL_PATH/lib -lmysqlclient $LIBS" + LIBS="-L$MYSQL_PATH/lib/mysql -lmysqlclient $LIBS" AC_DEFINE(HAVE_MYSQL) - CFLAGS="$CFLAGS -I$MYSQL_PATH/include" - MYSQL_LIB="-L$MYSQL_PATH/lib -lmysqlclient" + CFLAGS="$CFLAGS -I$MYSQL_PATH/include/mysql" + MYSQL_LIB="-L$MYSQL_PATH/lib/mysql -lmysqlclient" fi if test "X$PGSQL_PATH" != "X" ; then files/patch-src::modules::berkeley_db_api.c --- src/modules/berkeley_db_api.c.orig Tue Oct 15 04:22:09 2002 +++ src/modules/berkeley_db_api.c Tue Oct 15 04:22:14 2002 @@ -37,7 +37,10 @@ #endif #if defined(HAVE_BERKELEYDB) -#include <db.h> +#include <db4/db.h> +/* +It should be a tuneable, but since scripts/configure.oops accept only db4 it is not a big trouble +*/ #if defined(MODULES) int mod_run(void); >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210150049.g9F0n9S8046076>