Date: Sat, 15 Jan 2000 20:09:18 -0500 (EST) From: spidey@anarcat.dyndns.org To: FreeBSD-gnats-submit@freebsd.org Subject: ports/16139: Ntop port fails to find lsof Message-ID: <20000116010918.95A231B50@anarcat.dyndns.org>
next in thread | raw e-mail | index | archive | help
>Number: 16139 >Category: ports >Synopsis: Ntop port fails to find lsof >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Jan 15 17:50:01 PST 2000 >Closed-Date: >Last-Modified: >Originator: Spidey >Release: FreeBSD 3.4-STABLE i386 >Organization: >Environment: FreeBSD anarcat.dyndns.org 3.4-STABLE FreeBSD 3.4-STABLE #1: Wed Dec 29 14:37:01 EST 1999 spidey@anarcat.dyndns.org:/usr/src/sys/compile/HALL i386 Recent port collection. >Description: The Ntop package uses a 'configure' script to configure the compilation. To find the lsof executable, the configure.in file uses the macro: AC_PATH_PROG(LSOF_PATH, lsof, no) which will find the lsof program in the current path. Since lsof is installed in /usr/local/sbin and that this directory is rarely in the PATH, it fails to find the executable. >How-To-Repeat: cd /usr/ports/net/ntop && make configure >Fix: Quick patch to configure.in: anarcat$ diff -c configure.in* *** configure.in Sat Jan 15 20:04:47 2000 --- configure.in.orig Sat Jan 15 20:04:19 2000 *************** *** 107,113 **** dnl AC_REPLACE_FUNCS(vfprintf) if test "x$enable_lsof" = "xyes"; then ! AC_PATH_PROG(LSOF_PATH, lsof, no, $PATH:/usr/local/sbin) if test "$LSOF_PATH" = no; then echo --- 107,113 ---- dnl AC_REPLACE_FUNCS(vfprintf) if test "x$enable_lsof" = "xyes"; then ! AC_PATH_PROG(LSOF_PATH, lsof, no) if test "$LSOF_PATH" = no; then echo anarcat$ However, this will probably not have an effect to the FBSD port, since the 'configure' script is executed, 'out-of-the-box' (? should it?). So I suggest the following patch to 'configure': *** configure Sat Jan 15 20:08:01 2000 --- configure.orig Sat Jan 15 20:07:47 2000 *************** *** 2491,2497 **** ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ! ac_dummy="$PATH:/usr/local/sbin" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then --- 2491,2497 ---- ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ! ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; 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?20000116010918.95A231B50>