Bug 79368

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   

Description Tarc 2005-03-30 14:10:04 UTC
`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)
Comment 1 Pav Lucistnik freebsd_committer freebsd_triage 2005-04-11 21:53:32 UTC
State Changed
From-To: open->feedback

Can you provide a patch to properly fix this issue? 


Comment 2 Pav Lucistnik freebsd_committer freebsd_triage 2005-04-11 21:53:32 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pav

Track for now
Comment 3 Pav Lucistnik freebsd_committer freebsd_triage 2005-05-16 18:20:34 UTC
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.
Comment 4 Roman Neuhauser 2005-10-23 23:07:01 UTC
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