Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Apr 2006 12:52:06 +0300 (EEST)
From:      "Auster Vl." <lrou@x.ua>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/96356: lsof-4.77 on fbsd4
Message-ID:  <200604260952.k3Q9q6hL012745@esus.ixn.net.ua>
Resent-Message-ID: <200604261000.k3QA0ViY039055@freefall.freebsd.org>

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

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604260952.k3Q9q6hL012745>