The Kerberos flavour of Cyrus IMAP can't be built since libresolv was removed from -current.

$ cd /usr/ports/mail/cyrus-imapd
$ env FLAVOR=kerberos make
[...]
checking for prop_get in -lsasl2... no
configure: error: Cannot continue without libsasl2.

I've attached a patch that changes the remaining places in configure where -lresolv is used. Tested on amd64.
Index: patches/patch-configure
===================================================================
RCS file: /cvs/ports/mail/cyrus-imapd/patches/patch-configure,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 patch-configure
--- patches/patch-configure     27 Mar 2005 18:01:50 -0000      1.1.1.1
+++ patches/patch-configure     7 Feb 2006 20:27:46 -0000
@@ -1,6 +1,6 @@
---- configure.orig     Tue Nov 23 19:55:47 2004
-+++ configure  Sat Jan 22 13:12:28 2005
-@@ -3286,10 +3286,9 @@ CFLAGS=$save_CFLAGS
+--- configure.orig     Mon Feb 14 18:59:46 2005
++++ configure  Tue Feb  7 21:20:31 2006
+@@ -3287,10 +3287,9 @@
  fi
  
  if test "$ac_cv_fpic" = "yes"; then
@@ -13,7 +13,7 @@
  echo "$as_me:$LINENO: result: $ac_cv_fpic" >&5
  echo "${ECHO_T}$ac_cv_fpic" >&6
  
-@@ -4489,7 +4488,7 @@ if test "${ac_cv_lib_resolv_res_search+s
+@@ -4490,7 +4489,7 @@
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
    ac_check_lib_save_LIBS=$LIBS
@@ -22,7 +22,20 @@
  cat >conftest.$ac_ext <<_ACEOF
  #line $LINENO "configure"
  /* confdefs.h.  */
-@@ -6728,7 +6727,7 @@ echo "$as_me: error: Berkeley DB 3.x or 
+@@ -4538,9 +4537,9 @@
+ fi
+ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
+ echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6
+-if test $ac_cv_lib_resolv_res_search = yes; then
+-  LIB_SOCKET="-lresolv $LIB_SOCKET"
+-fi
++#if test $ac_cv_lib_resolv_res_search = yes; then
++#  LIB_SOCKET="-lresolv $LIB_SOCKET"
++#fi
+ 
+ 
+ fi
+@@ -6729,7 +6728,7 @@
  
  
  
@@ -31,7 +44,7 @@
    CPPFLAGS="${BDB_INCADD} ${CPPFLAGS}"
  
    CYRUSDB_OBJS="$CYRUSDB_OBJS cyrusdb_berkeley.o"
-@@ -9639,7 +9638,7 @@ if test "${ac_cv_lib_resolv_res_search+s
+@@ -9649,7 +9648,7 @@
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
    ac_check_lib_save_LIBS=$LIBS
@@ -40,7 +53,32 @@
  cat >conftest.$ac_ext <<_ACEOF
  #line $LINENO "configure"
  /* confdefs.h.  */
-@@ -11814,7 +11813,7 @@ if test "${ac_cv_lib_resolv_res_search+s
+@@ -9697,16 +9696,16 @@
+ fi
+ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
+ echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6
+-if test $ac_cv_lib_resolv_res_search = yes; then
+-  cat >>confdefs.h <<_ACEOF
+-#define HAVE_LIBRESOLV 1
+-_ACEOF
++#if test $ac_cv_lib_resolv_res_search = yes; then
++#  cat >>confdefs.h <<_ACEOF
++##define HAVE_LIBRESOLV 1
++#_ACEOF
++#
++#  LIBS="-lresolv $LIBS"
++#
++#fi
+ 
+-  LIBS="-lresolv $LIBS"
+ 
+-fi
+-
+-
+   if test "$with_statickrb" = "yes" -a ! -d "$with_krb"; then
+       { { echo "$as_me:$LINENO: error: --enable-statickrb specified but 
--with-krb did not specify a valid directory" >&5
+ echo "$as_me: error: --enable-statickrb specified but --with-krb did not 
specify a valid directory" >&2;}
+@@ -11831,7 +11830,7 @@
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
    ac_check_lib_save_LIBS=$LIBS
@@ -49,7 +87,31 @@
  cat >conftest.$ac_ext <<_ACEOF
  #line $LINENO "configure"
  /* confdefs.h.  */
-@@ -11892,7 +11891,7 @@ if test "${ac_cv_lib_gssapi_gss_unwrap+s
+@@ -11879,15 +11878,15 @@
+ fi
+ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
+ echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6
+-if test $ac_cv_lib_resolv_res_search = yes; then
+-  cat >>confdefs.h <<_ACEOF
+-#define HAVE_LIBRESOLV 1
+-_ACEOF
++#if test $ac_cv_lib_resolv_res_search = yes; then
++#  cat >>confdefs.h <<_ACEOF
++##define HAVE_LIBRESOLV 1
++#_ACEOF
++#
++#  LIBS="-lresolv $LIBS"
++#
++#fi
+ 
+-  LIBS="-lresolv $LIBS"
+-
+-fi
+-
+   if test -d ${gssapi}; then
+      gssapi_dir="${gssapi}/lib"
+      GSSAPIBASE_LIBS="-L$gssapi_dir"
+@@ -11909,7 +11908,7 @@
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
    ac_check_lib_save_LIBS=$LIBS
@@ -58,7 +120,7 @@
  cat >conftest.$ac_ext <<_ACEOF
  #line $LINENO "configure"
  /* confdefs.h.  */
-@@ -12242,8 +12241,8 @@ fi
+@@ -12259,8 +12258,8 @@
      GSSAPIBASE_STATIC_LIBS="$GSSAPIBASE_LIBS $gssapi_dir/libgssapi_krb5.a 
$gssapi_dir/libkrb5.a $gssapi_dir/libk5crypto.a $gssapi_dir/libcom_err.a"
    elif test "$gss_impl" = "heimdal"; then
      CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL"
@@ -69,7 +131,7 @@
    elif test "$gss_impl" = "cybersafe03"; then
  # Version of CyberSafe with two libraries
      CPPFLAGS="$CPPFLAGS -D$platform -I${gssapi}/appsec-sdk/include"
-@@ -12435,7 +12434,7 @@ if test "${ac_cv_lib_resolv_res_search+s
+@@ -12452,7 +12451,7 @@
    echo $ECHO_N "(cached) $ECHO_C" >&6
  else
    ac_check_lib_save_LIBS=$LIBS
@@ -78,7 +140,7 @@
  cat >conftest.$ac_ext <<_ACEOF
  #line $LINENO "configure"
  /* confdefs.h.  */
-@@ -12483,9 +12482,9 @@ LIBS=$ac_check_lib_save_LIBS
+@@ -12500,9 +12499,9 @@
  fi
  echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
  echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6
@@ -91,7 +153,7 @@
  
    SASL_MECHS="$SASL_MECHS libgssapiv2.la"
    SASL_STATIC_OBJS="$SASL_STATIC_OBJS ../plugins/gssapi.o"
-@@ -13727,6 +13726,8 @@ extern "C"
+@@ -13744,6 +13743,8 @@
  /* We use char because int might match the return type of a gcc2
     builtin and then its argument prototype would still apply.  */
  char request_init ();

Reply via email to