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.
Responsible Changed From-To: freebsd-ports-bugs->obrien Over to maintainer
State Changed From-To: open->closed I'll commit the patch to support FBSD 4.x
| - 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}` ; \