Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Mar 2000 13:11:40 +0100 (CET)
From:      Paul.Hernaus@nl.origin-it.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/17503: lsof port doesn't build on 5.0
Message-ID:  <20000320121140.B77F9A868@itchy.mpn.cp.philips.com>

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

>Number:         17503
>Category:       ports
>Synopsis:       lsof port doesn't build on FreeBSD 5.0
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 20 04:20:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Paul Hernaus
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
Origin
>Environment:

All FreeBSD > 4.x (yes, at the moment that's only 5.0)

>Description:

The Configure script contained in the current lsof distribution (4.48)
doesn't recognise FreeBSD 5.0, and is threated as FreeBSD 2.x. As a
consequence the build of the current lsof port fails.

>How-To-Repeat:

On a 5.0 system:
cd /usr/ports/sysutils/lsof
make

>Fix:

Until the lsof distribution is fixed with respect to this problem,
please add the following patch to the port skeleton:


--- Configure	Fri Jan 14 14:56:30 2000
+++ /tmp/Configure	Mon Mar 20 13:01:42 2000
@@ -503,6 +503,9 @@
       4.1*)
 	LSOF_VERS="40100"
 	;;
+      5.0*)
+	LSOF_VERS="50000"
+	;;
       *)  
 	echo Unknown BSDI release: `uname -r`
 	echo Assuming BSDI 2.0
@@ -804,6 +807,9 @@
       4.0*)
 	LSOF_VERS=400
 	;;
+      5.0*)
+	LSOF_VERS=500
+	;;
       *)
 	echo Unknown FreeBSD release: `uname -r`
 	echo Assuming FreeBSD 2.x
@@ -879,7 +885,7 @@
 	LSOF_CFGF="$LSOF_CFGF -DHASVMLOCKH"
       fi	# }
       ;;
-    400)
+    400|500)
       if test -r ${LSOF_INCLUDE}/sys/namei.h	# {
       then
 	grep -q "^struct[ 	]*namecache[ 	]*{" ${LSOF_INCLUDE}/sys/namei.h

>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?20000320121140.B77F9A868>