Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Aug 2001 15:28:18 -0400
From:      parv <parv_@yahoo.com>
To:        Salvo Bartolotta <bartequi@neomedia.it>
Cc:        f-q <freebsd-questions@freebsd.org>
Subject:   Re: make search isn't making any results in ports
Message-ID:  <20010816152818.A3030@moo.holy.cow>
In-Reply-To: <997963051.3b7bb52b6263a@webmail.neomedia.it>; from bartequi@neomedia.it on Thu, Aug 16, 2001 at 01:57:31PM %2B0200
References:  <997869845.3b7a491562488@webmail.neomedia.it> <20010815071230.B13033@moo.holy.cow> <997892294.3b7aa0c60be0b@webmail.neomedia.it> <20010815181145.A30569@moo.holy.cow> <997963051.3b7bb52b6263a@webmail.neomedia.it>

next in thread | previous in thread | raw e-mail | index | archive | help
this was, on the fateful occasion around Aug 16 07:57 -0400,
sent by Salvo Bartolotta                                             
>
> 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 
>                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
> 
> 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.

indeed it was. 


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

i already have PORTSDIR set appropriately and i am happy w/ default
PREFIX. 


> For instance, if your ports tree lives in eg /myjunk/ports, the following 
> workarounds come to mind:
...
> 
> -- 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;
 
did that and make search is making results again. woohee!

i thought making a symlink would have preempted such problems. little 
did i know that that wouldn't take care of static things like these
(dynamic being cd, mkdir, ls, etc).


> -- modify make_index so that it becomes independent of the frame of reference, 
> and file a PR :-)
> 

w/o looking deeply, this comes to mind...
a "strong" advice about always setting PORTSDIR (in /etc/make.conf) 
and the using this variable instead of equivalent hardcoded text just 
may solve the problem.

-- 

 so, do you like word games or scrabble?
	 - parv

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?20010816152818.A3030>