ports/79368: "make search ..." doesn't work unless in /usr/ports directory

Tarc tarc at po.cs.msu.su
Wed Mar 30 13:10:05 UTC 2005


>Number:         79368
>Category:       ports
>Synopsis:       "make search ..." doesn't work unless in /usr/ports directory
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 30 13:10:04 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Tarc
>Release:        RELENG 5
>Organization:
MSU
>Environment:
$FreeBSD: ports/Mk/bsd.port.subdir.mk,v 1.60 2005/02/28 21:09:04 krion Exp $
>Description:
`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)
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
 >> fixing ${INDEXFILE} by `sed -e 's|/usr/ports|${PORTSDIR}|'` has no effect <<
 Workaround: `ln -s /mnt/ports /usr/ports && sed -i .old -e "s|^\(PORTSDIR\)|#\1|"`
 (or not using PORTSDIR at all)
 



More information about the freebsd-ports-bugs mailing list