From owner-freebsd-ports Sun Feb 15 02:35:00 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA10798 for freebsd-ports-outgoing; Sun, 15 Feb 1998 02:35:00 -0800 (PST) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from server.amis.net (server.amis.net [193.77.234.34]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA10793 for ; Sun, 15 Feb 1998 02:34:57 -0800 (PST) (envelope-from blaz@gold.amis.net) Received: (from uucp@localhost) by server.amis.net (8.8.8/8.8.8) with UUCP id LAA27525 for freebsd-ports@freebsd.org; Sun, 15 Feb 1998 11:34:54 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by gold.amis.net (8.8.8/8.8.5) with SMTP id LAA13809 for ; Sun, 15 Feb 1998 11:31:24 +0100 (CET) Date: Sun, 15 Feb 1998 11:31:23 +0100 (CET) From: Blaz Zupan To: freebsd-ports@FreeBSD.ORG Subject: Cyrus and TCL Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org What is the correct dependency for ports that need TCL? Cyrus is marked broken in the ports collection because of a non-working tcl dependency. I can make it work by patching its configure script to directly use -ltcl80 and the include directory ${prefix}/include/tcl80. So should I make this depend on tcl 8.0 or tcl 7.5? Here is the patch that makes cyrus compile correctly under 2.2.5-STABLE if the tcl 8.0 port is installed on the system (remove BROKEN from Makefile first, of course). Add the below patch as patch-ac in the patches directory to make it work. Blaz Zupan, blaz@medinet.si, http://www.amis.net/staff/blaz Medinet d.o.o., Linhartova 21, 2000 Maribor, Slovenia *** configure.old Wed Mar 19 22:43:58 1997 --- configure Sun Feb 15 11:06:27 1998 *************** *** 2438,2459 **** fi if test -z "$with_tcl"; then ! if test -f /usr/local/lib/libtcl.a; then with_tcl="/usr/local" fi fi case "$with_tcl" in no) if test "$TCL_SUBDIRS" != ""; then ! { echo "configure: error: Could not find Tcl libraries. You must either install Tcl or configure with --disable-cyradm" 1>&2; exit 1; } fi;; ! ""|yes) echo $ac_n "checking for Tcl_Init in -ltcl""... $ac_c" 1>&6 ! echo "configure:2451: checking for Tcl_Init in -ltcl" >&5 ac_lib_var=`echo tcl'_'Tcl_Init | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" ! LIBS="-ltcl -lm $LIBS" cat > conftest.$ac_ext <&2; exit 1; } fi;; ! ""|yes) echo $ac_n "checking for Tcl_Init in -ltcl80""... $ac_c" 1>&6 ! echo "configure:2451: checking for Tcl_Init in -ltcl80" >&5 ac_lib_var=`echo tcl'_'Tcl_Init | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" ! LIBS="-ltcl80 -lm $LIBS" cat > conftest.$ac_ext <&6 ! TCLLIBS="-ltcl -lm" else echo "$ac_t""no" 1>&6 if test "$TCL_SUBDIRS" != ""; then ! { echo "configure: error: Could not find Tcl libraries. You must either install Tcl or configure with --disable-cyradm" 1>&2; exit 1; } fi fi ;; ! *) CPPFLAGS="${CPPFLAGS} -I${with_tcl}/include" ! TCLLIBS="-L${with_tcl}/lib ${ld_runpath_switch}${with_tcl}/lib -ltcl -lm" ;; esac # Check whether --with-zephyr or --without-zephyr was given. --- 2481,2496 ---- fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 ! TCLLIBS="-ltcl80 -lm" else echo "$ac_t""no" 1>&6 if test "$TCL_SUBDIRS" != ""; then ! { echo "configure: error: Could not find Tcl libraries. You must either install Tcl 8.0 or configure with --disable-cyradm" 1>&2; exit 1; } fi fi ;; ! *) CPPFLAGS="${CPPFLAGS} -I${with_tcl}/include/tcl8.0" ! TCLLIBS="-L${with_tcl}/lib ${ld_runpath_switch}${with_tcl}/lib -ltcl80 -lm" ;; esac # Check whether --with-zephyr or --without-zephyr was given. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message