Bug 96356 - lsof-4.77 on fbsd4
Summary: lsof-4.77 on fbsd4
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: David E. O'Brien
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-26 11:00 UTC by Auster Vl.
Modified: 2006-05-08 17:00 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Auster Vl. 2006-04-26 11:00:30 UTC
	invalid option `m' (for grep-2.4d) in sysutils/lsof/Makefile.

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." ; \
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.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-04-26 14:44:32 UTC
Responsible Changed
From-To: freebsd-ports-bugs->obrien

Over to maintainer
Comment 2 David E. O'Brien freebsd_committer freebsd_triage 2006-04-27 02:46:15 UTC
State Changed
From-To: open->closed

I'll commit the patch to support FBSD 4.x
Comment 3 Auster Vl. 2006-05-08 16:56:51 UTC
| -	EXPMD5=`${GREP} -m 1 MD5 README.${DISTNAME} | ${SED} 's/[ 	]*//'` ; \
| +	EXPMD5=`${SED} -n 's/^[[:blank:]]*\(MD5*=*\)/\1/p' README.${DISTNAME}` ; \

Sorry for wasting your time, my non-critical typo (`dot'):
+	EXPMD5=`${SED} -n 's/^[[:blank:]]*\(MD5.*=\)/\1/p' README.${DISTNAME}` ; \