ports/96356: lsof-4.77 on fbsd4

Auster Vl. lrou at x.ua
Wed Apr 26 10:00:34 UTC 2006


>Number:         96356
>Category:       ports
>Synopsis:       lsof-4.77 on fbsd4
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 26 10:00:30 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Auster Vl.
>Release:        FreeBSD 4.11-RELEASE-p9 i386
>Organization:
>Environment:
System: FreeBSD 4.11-RELEASE-p9 i386

>Description:
	invalid option `m' (for grep-2.4d) in sysutils/lsof/Makefile.

>How-To-Repeat:

make sysutils/lsof PORTVERSION=4.77 on fbsd4.

# cd /usr/ports/sysutils/lsof
===>  Extracting for lsof-4.77
=> MD5 Checksum OK for lsof_4.77.tar.bz2.
=> SHA256 Checksum OK for lsof_4.77.tar.bz2.
/usr/bin/grep: invalid option -- m
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
Expected and calculated MD5 signatures don't agree.
( != MD5 (lsof_4.77_src.tar) = 42d3927386adb1e1871b97a286fa00d2)
*** Error code 1

Stop in /usr/ports/sysutils/lsof.

>Fix:

--- /usr/ports/sysutils/lsof/Makefile.orig
+++ /usr/ports/sysutils/lsof/Makefile
@@ -51,7 +51,7 @@
 .if !defined(FIXUP_RELEASE)
 post-extract:
 	@( cd ${WRKDIR}/${DISTNAME} ; \
-	EXPMD5=`${GREP} -m 1 MD5 README.${DISTNAME} | ${SED} 's/[ 	]*//'` ; \
+	EXPMD5=`${SED} -n 's/^[[:blank:]]*\(MD5*=*\)/\1/p' README.${DISTNAME}` ; \
 	CALCMD5=`${MD5} ${SRCBALL_NAME}.tar` ; \
 	if [ "$${EXPMD5}"X != "$${CALCMD5}"X ]; then \
 		${ECHO} "Expected and calculated MD5 signatures don't agree." ; \

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list