From owner-freebsd-ports-bugs Tue Mar 18 6:40:10 2003 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 5C9CE37B401 for ; Tue, 18 Mar 2003 06:40:09 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5A75A43FCB for ; Tue, 18 Mar 2003 06:40:08 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h2IEe8NS053054 for ; Tue, 18 Mar 2003 06:40:08 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h2IEe7GN053053; Tue, 18 Mar 2003 06:40:07 -0800 (PST) Date: Tue, 18 Mar 2003 06:40:07 -0800 (PST) Message-Id: <200303181440.h2IEe7GN053053@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org Cc: From: Olivier Tharan Subject: Re: ports/50035: "make search key" in /usr/ports doesn't show "Info:" Reply-To: Olivier Tharan Sender: owner-freebsd-ports-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR ports/50035; it has been noted by GNATS. From: Olivier Tharan To: Kirill Ponomarew Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: ports/50035: "make search key" in /usr/ports doesn't show "Info:" Date: Tue, 18 Mar 2003 15:34:11 +0100 * Kirill Ponomarew (20030315 21:55): > >Description: > "make search key" in /usr/ports doesn't show "Info:" [...] > Is it now default behaviour after removing pkg-comment files ? I guess so, I have been bitten bi this too. > >Fix: > don't know I propose the following, untested and probably not very clean: --- /usr/ports/Mk/bsd.port.mk Wed Mar 12 09:27:45 2003 +++ bsd.port.mk Tue Mar 18 15:28:32 2003 @@ -3754,8 +3754,8 @@ describe: generate-commentfile @${ECHO_CMD} "`perl -e ' \ print q{${PKGNAME}|${.CURDIR}|${PREFIX}|}; \ - if (open(COMMENT, q{${COMMENTFILE}})) { \ - $$_ = ; \ + if (grep "^COMMENT=[:space:]*(.*)", q{${MAKEFILE}})) { \ + $$_ = $1; \ chomp; \ print; \ } else { \ (we basically replace a file read by a grep in the Makefile). I am not sure $MAKEFILE refers to the port Makefile, and the grep syntax is not good. -- olive To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports-bugs" in the body of the message