From skynyrd@opus.cts.cwu.edu  Mon Feb  3 15:43:23 1997
Received: from pahtoh.cwu.edu (root@pahtoh.cwu.edu [198.104.65.27])
          by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id PAA28363
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 3 Feb 1997 15:43:23 -0800 (PST)
Received: from opus.cts.cwu.edu (skynyrd@opus.cts.cwu.edu [198.104.92.71]) by pahtoh.cwu.edu (8.6.13/8.6.9) with ESMTP id PAA03487 for <FreeBSD-gnats-submit@freebsd.org>; Mon, 3 Feb 1997 15:43:14 -0800
Received: (from skynyrd@localhost)
	by opus.cts.cwu.edu (8.8.5/8.8.5) id PAA00853;
	Mon, 3 Feb 1997 15:43:14 -0800 (PST)
Message-Id: <199702032343.PAA00853@opus.cts.cwu.edu>
Date: Mon, 3 Feb 1997 15:43:14 -0800 (PST)
From: Chris Timmons <skynyrd@opus.cts.cwu.edu>
Reply-To: skynyrd@opus.cts.cwu.edu
To: FreeBSD-gnats-submit@freebsd.org
Subject: lsof port stale; new patch required for recent version
X-Send-Pr-Version: 3.2

>Number:         2650
>Category:       ports
>Synopsis:       lsof port stale; new patch required for recent version
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    obrien
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb  3 15:50:00 PST 1997
>Closed-Date:    Tue Feb 4 00:34:28 PST 1997
>Last-Modified:  Tue Feb  4 00:35:23 PST 1997
>Originator:     Chris Timmons
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
Central Washington University
>Environment:

>Description:

	Our lsof port is several revisions behind and is no longer
	available from many of the repository sites.   Further,
	/usr/src/sys/vm/vm_map.h in revision 1.21 changes vm map
	entry flags which lsof needs, requiring a simple patch
	to fix.


>How-To-Repeat:

>Fix:

Updating the Makefile is trivial
	
# diff -r /usr/ports/sysutils/lsof lsof
diff -r /usr/ports/sysutils/lsof/Makefile lsof/Makefile
6c6
< # $Id: Makefile,v 1.4 1996/12/11 19:10:34 obrien Exp $
---
> # $Id: Makefile,v 1.1 1997/02/03 22:47:03 root Exp root $
9,10c9,10
< DISTNAME=     lsof_3.82_W
< PKGNAME=      lsof-3.82
---
> DISTNAME=     lsof_3.86_W
> PKGNAME=      lsof-3.86
diff -r /usr/ports/sysutils/lsof/files/md5 lsof/files/md5
1c1
< MD5 (lsof_3.82_W.tar.gz) = 1bfe247769f8d024c75cf396099aeadf
---
> MD5 (lsof_3.86_W.tar.gz) = ca3e96d55bf99950008940d7cefb7e43
Only in lsof/patches: patch-ab


THEN, ADD PATCH-AB:
- - - - -
*** dialects/freebsd/dproc.c.orig	Mon Feb  3 15:07:02 1997
--- dialects/freebsd/dproc.c	Mon Feb  3 15:13:19 1997
***************
*** 481,487 ****
--- 481,492 ----
  			if (kread(ka, (char *)e, sizeof(vmme)))
  				return;
  		}
+ 
+ #if	FREEBSDV<300
  		if (e->is_a_map || e->is_sub_map)
+ #else	/* FREEBSDV>=300 */
+ 		if (e->eflags & (MAP_ENTRY_IS_A_MAP|MAP_ENTRY_IS_SUB_MAP))
+ #endif	/* FREEBSDV<300 */
  			continue;
  	/*
  	 * Read the map entry's object and the object's shadow.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->obrien 
Responsible-Changed-By: obrien 
Responsible-Changed-When: Mon Feb 3 22:45:19 PST 1997 
Responsible-Changed-Why:  
I'm maintainer. 
State-Changed-From-To: open->closed 
State-Changed-By: max 
State-Changed-When: Tue Feb 4 00:34:28 PST 1997 
State-Changed-Why:  
Suggested fix es have been applied.  Thanks. 
>Unformatted:
