| Summary: | "make search key" in /usr/ports doesn't show "Info:" | ||
|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Kirill Ponomarew <ponomarew> |
| Component: | Individual Port(s) | Assignee: | Port Management Team <portmgr> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Kirill Ponomarew
2003-03-15 21:50:10 UTC
* 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 Responsible Changed From-To: freebsd-ports-bugs->portmgr Over to Maintainers This should probably use make -V COMMENT instead. I don't think the current patch is suitable for committing. Can someone please investigate further? Kris State Changed From-To: open->suspended Awaiting updated patch State Changed From-To: suspended->feedback Feedback is a more appropriate state for this Hi,
On Sat, Apr 12, 2003 at 08:25:52PM -0700, Kris Kennaway wrote:
> This should probably use make -V COMMENT instead. I don't think the
> current patch is suitable for committing. Can someone please
> investigate further?
This problem came from "portsdb -U", I don't know whether knu@
fixed it or not. Instead of "portsdb -U", I tried "cd /usr/ports
&& make index", and it worked.
Kirill
State Changed From-To: feedback->closed Submitter reported the problem is no longer seen in 'make index' |