From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Apr 27 02:50:14 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 97C7B16A407 for ; Thu, 27 Apr 2006 02:50:14 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D40943D48 for ; Thu, 27 Apr 2006 02:50:14 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k3R2oDmx002178 for ; Thu, 27 Apr 2006 02:50:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3R2oDNr002177; Thu, 27 Apr 2006 02:50:13 GMT (envelope-from gnats) Resent-Date: Thu, 27 Apr 2006 02:50:13 GMT Resent-Message-Id: <200604270250.k3R2oDNr002177@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Tod McQuillin Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B00616A401; Thu, 27 Apr 2006 02:44:39 +0000 (UTC) (envelope-from root@distalzou.net) Received: from mail.distalzou.net (203.141.139.231.user.ad.il24.net [203.141.139.231]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A93043D46; Thu, 27 Apr 2006 02:44:38 +0000 (GMT) (envelope-from root@distalzou.net) Received: from root by mail.distalzou.net with local (Exim 4.61 (FreeBSD)) (envelope-from ) id 1FYwUg-0006iH-09; Thu, 27 Apr 2006 11:44:38 +0900 Message-Id: Date: Thu, 27 Apr 2006 11:44:38 +0900 From: Tod McQuillin To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: obrien@FreeBSD.org Subject: ports/96389: [PATCH] sysutils/lsof: [Fix build on FreeBSD 4.x] X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Apr 2006 02:50:14 -0000 >Number: 96389 >Category: ports >Synopsis: [PATCH] sysutils/lsof: [Fix build on FreeBSD 4.x] >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Apr 27 02:50:12 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Tod McQuillin >Release: FreeBSD 4.11-STABLE i386 >Organization: >Environment: System: FreeBSD plexi.pun-pun.prv 4.11-STABLE FreeBSD 4.11-STABLE #0: Thu Mar 23 21:52:12 JST 2006 >Description: On FreeBSD 4.x, grep is GNU grep version 2.4d which does not know about the -m option. This causes the build to fail as follows: /usr/ports/sysutils/lsof# make ===> Extracting for lsof-4.77 => MD5 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/src/ports/sysutils/lsof. This is fixed by replacing '-m 1' with '| head -1'. Port maintainer (obrien@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.63 >How-To-Repeat: Try to build on FreeBSD 4.x >Fix: --- lsof-4.77.patch begins here --- Index: Makefile =================================================================== RCS file: /usr/src/cvs-repo/ports/sysutils/lsof/Makefile,v retrieving revision 1.147 diff -u -u -r1.147 Makefile --- Makefile 26 Apr 2006 00:46:59 -0000 1.147 +++ Makefile 27 Apr 2006 02:38:35 -0000 @@ -51,7 +51,7 @@ .if !defined(FIXUP_RELEASE) post-extract: @( cd ${WRKDIR}/${DISTNAME} ; \ - EXPMD5=`${GREP} -m 1 MD5 README.${DISTNAME} | ${SED} 's/[ ]*//'` ; \ + EXPMD5=`${GREP} MD5 README.${DISTNAME} | head -1 | ${SED} 's/[ ]*//'` ; \ CALCMD5=`${MD5} ${SRCBALL_NAME}.tar` ; \ if [ "$${EXPMD5}"X != "$${CALCMD5}"X ]; then \ ${ECHO} "Expected and calculated MD5 signatures don't agree." ; \ --- lsof-4.77.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: