Date: Tue, 18 Mar 2003 06:40:07 -0800 (PST) From: Olivier Tharan <olive@oban.frmug.org> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/50035: "make search key" in /usr/ports doesn't show "Info:" Message-ID: <200303181440.h2IEe7GN053053@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/50035; it has been noted by GNATS. From: Olivier Tharan <olive@oban.frmug.org> To: Kirill Ponomarew <ponomarew@oberon.net> 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 <ponomarew@oberon.net> (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}})) { \ - $$_ = <COMMENT>; \ + 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200303181440.h2IEe7GN053053>