Skip site navigation (1)Skip section navigation (2)
Date:      Sun,  6 Jan 2002 22:49:26 -0500 (EST)
From:      Christopher K Davis <ckd@ckdhr.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/33628: cyrus-sasl patch will not build with DB3 
Message-ID:  <20020107034926.76D7D1EC5D@sergyar.ckdhr.com>

next in thread | raw e-mail | index | archive | help

>Number:         33628
>Category:       ports
>Synopsis:       cyrus-sasl patch will not build with DB3
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 06 19:50:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Christopher K Davis
>Release:        FreeBSD 4.4-RELEASE-p1 i386
>Organization:
>Environment:
System: FreeBSD sergyar.ckdhr.com 4.4-RELEASE-p1 FreeBSD 4.4-RELEASE-p1 #9: Fri Dec 7 19:58:47 EST 2001 ckd@sergyar.ckdhr.com:/usr/obj/usr/src/sys/SERGYAR i386


	
>Description:
	cyrus-sasl-1.5.24_8 fails to build with DB3, as configure cannot
	detect the db3 library properly and therefore configures
	config.h to use no database at all.
>How-To-Repeat:
	'make' and select DB3 using configure.sasl script.
>Fix:
	Apply following patch to the port to fix configure.in (patch-ab
	already tweaks DB3 header detection, but doesn't fix library problem):

diff -ur cyrus-sasl/files/patch-ab cyrus-sasl.dbfixed/files/patch-ab
--- cyrus-sasl/files/patch-ab	Fri Nov 17 10:06:24 2000
+++ cyrus-sasl.dbfixed/files/patch-ab	Sun Jan  6 22:41:13 2002
@@ -1,5 +1,5 @@
---- configure.in.orig	Thu Jul 20 21:35:01 2000
-+++ configure.in	Thu Nov 16 09:07:00 2000
+--- configure.in.orig	Sun Jan  6 22:35:15 2002
++++ configure.in	Sun Jan  6 22:35:25 2002
 @@ -66,8 +66,9 @@
  dnl check for -R, etc. switch
  CMU_GUESS_RUNPATH_SWITCH
@@ -12,10 +12,34 @@
  
  AM_DISABLE_STATIC
  
-@@ -232,6 +233,13 @@
+@@ -143,11 +144,11 @@
+   dblib=auto_detect)
+ SASL_DB_LIB=""
+ case "$dblib" in
+-dnl this is unbelievably painful due to confusion over what db-3 should be
++dnl this is unbelievably painful due to confusion over what db3 should be
+ dnl named.  arg.
+   berkeley)
+ 	AC_CHECK_HEADER(db.h,
+-			AC_CHECK_LIB(db-3, db_create, SASL_DB_LIB="-ldb-3";
++			AC_CHECK_LIB(db3, db_create, SASL_DB_LIB="-ldb3";
+ 			   dblib="berkeley",
+ 			AC_CHECK_LIB(db, db_create, SASL_DB_LIB="-ldb";
+ 			   dblib="berkeley",
+@@ -173,7 +174,7 @@
+   auto_detect)
+         dnl How about berkeley db?
+ 	AC_CHECK_HEADER(db.h,
+-			AC_CHECK_LIB(db-3, db_create, SASL_DB_LIB="-ldb-3";
++			AC_CHECK_LIB(db3, db_create, SASL_DB_LIB="-ldb3";
+ 			   dblib="berkeley",
+ 			AC_CHECK_LIB(db, db_create, SASL_DB_LIB="-ldb";
+ 			   dblib="berkeley",
+@@ -231,7 +232,13 @@
+   berkeley)
      SASL_DB_BACKEND="db_${dblib}.lo"
      AC_DEFINE(SASL_BERKELEYDB)
-     SASL_DB_LIB="-ldb"
+-    SASL_DB_LIB="-ldb"
 +    for db3loc in ${prefix} /usr/local /usr
 +    do
 +      if test -d ${db3loc}/include/db3; then
@@ -26,7 +50,7 @@
      ;;
    *)
      AC_MSG_WARN([Disabling SASL authentication database support])
-@@ -310,6 +318,88 @@
+@@ -310,6 +317,88 @@
  fi
  AM_CONDITIONAL(PWCHECK, test "$with_pwcheck" != no)
  
@@ -115,7 +139,7 @@
  dnl CRAM-MD5
  AC_ARG_ENABLE(cram, [  --enable-cram           enable CRAM-MD5 authentication [yes] ],
    cram=$enableval,
-@@ -434,11 +524,15 @@
+@@ -434,11 +523,15 @@
    fi
  
    if test "$with_des" != no; then
>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?20020107034926.76D7D1EC5D>