Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Mar 2005 13:09:18 GMT
From:      Tarc <tarc@po.cs.msu.su>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/79368: "make search ..." doesn't work unless in /usr/ports directory
Message-ID:  <200503301309.j2UD9I0Z053313@www.freebsd.org>
Resent-Message-ID: <200503301310.j2UDA43o067690@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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)
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200503301309.j2UD9I0Z053313>