Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Aug 2001 02:47:46 -0700 (PDT)
From:      Annelise Anderson <andrsn@andrsn.stanford.edu>
To:        Salvo Bartolotta <bartequi@neomedia.it>
Cc:        parv <parv_@yahoo.com>, f-q <freebsd-questions@FreeBSD.ORG>
Subject:   Re: make search isn't making any results in ports
Message-ID:  <Pine.BSF.4.10.10108170244530.52897-100000@andrsn.stanford.edu>
In-Reply-To: <997963051.3b7bb52b6263a@webmail.neomedia.it>

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


On Thu, 16 Aug 2001, Salvo Bartolotta wrote:

> parv <parv_@yahoo.com> olim scripsisse creditur (is believed to have once upon 
> a time written):
> 
> > ...could be due to moving from /usr/ports to /source/ports 
>                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>  
> <snip>
>   
> 
> That is exactly the reason for the "malfunction" of make search. Taking a look 
> at /usr/ports/Tools/make_index and at /usr/ports/INDEX shows you where the 
> problem lies: "/usr/ports" is hardcoded in make_index.
> 
> BTW, when installing the ports tree in a directory other than /usr/ports, you 
> may wish to make use of the PORTSDIR and PREFIX variables (cf ports(7) and the 
> trobleshooting section in the ports chapter in the FreeBSD Handbook).
> 
> For instance, if your ports tree lives in eg /myjunk/ports, the following 
> workarounds come to mind:
> 
> -- (after doing a "make index") s/\/usr\/ports/\/myjunk\/ports/g in 
> /myjunk/ports/INDEX with your favo(u)rite tool (eg perl -pe); [ugly]
>  
> -- s/\/usr\/ports/\/myjunk\/ports/g in /myjunk/ports/Tools/make_index (three 
> actual occurrences); this will generate the correct INDEX for the make search 
> target;
> 
> -- modify make_index so that it becomes independent of the frame of reference, 
> and file a PR :-)
> 
> 
> Best regards,
> Salvo
> 
Interesting; I've been patching ../ports/Mk/bsd.port.subdir.mk (just the
search function) for a couple of years now so search works when I move
the ports tree to somewhere other than /usr/ports.  It simply searches in
the wrong place even with PORTSDIR set.

	Annelise


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.10108170244530.52897-100000>