| Summary: | "make search ..." doesn't work unless in /usr/ports directory | ||
|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Tarc <tarc> |
| Component: | Individual Port(s) | Assignee: | Pav Lucistnik <pav> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
State Changed From-To: open->feedback Can you provide a patch to properly fix this issue? Responsible Changed From-To: freebsd-ports-bugs->pav Track for now State Changed From-To: feedback->closed Feedback timeout (1 month). If you can come up with a solution in future, don't hesitate to write. With the below values and /usr/ports replaced in INDEX, make search in /home/roman/codex/FreeBSD/ports works (/home is symlink to /usr/home): roman@isis codex/FreeBSD/ports 915:0 > pwd /home/roman/codex/FreeBSD/ports roman@isis codex/FreeBSD/ports 916:0 > pwd -P /usr/home/roman/codex/FreeBSD/ports roman@isis codex/FreeBSD/ports 917:0 > grep PORTSDIR /etc/make.conf PORTSDIR=/home/roman/codex/FreeBSD/ports roman@isis codex/FreeBSD/ports 918:0 > make search name=statgrab disp=name short=1 roman@isis codex/FreeBSD/ports 919:0 > sed -Ei.bak "s,/usr/ports,`pwd`,g" INDEX roman@isis codex/FreeBSD/ports 920:0 > make search name=statgrab disp=name short=1 Port: libstatgrab-0.12 Port: p5-Unix-Statgrab-0.04 Port: pecl-statgrab-0.4_2 Port: py24-statgrab-0.4 roman@isis codex/FreeBSD/ports 921:0 > -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW. Cause you weren't THERE. http://bash.org/?255991 |
`make search ...` doesn't work anymore after moving $PORTSDIR to another place than /usr/ports, but awk script, which parses ${PORTSDIR}/${INDEXFILE} is works. How-To-Repeat: checkout ports tree to /mnt/ports echo "PORTSDIR=/mnt/ports" >> /etc/make.conf cd /mnt/ports make fetchindex make search key=p5 (no results will be shown)