Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Aug 2001 13:57:31 +0200 (CEST)
From:      Salvo Bartolotta <bartequi@neomedia.it>
To:        parv <parv_@yahoo.com>
Cc:        f-q <freebsd-questions@freebsd.org>
Subject:   Re: make search isn't making any results in ports
Message-ID:  <997963051.3b7bb52b6263a@webmail.neomedia.it>
In-Reply-To: <20010815181145.A30569@moo.holy.cow>
References:  <997869845.3b7a491562488@webmail.neomedia.it> <20010815071230.B13033@moo.holy.cow> <997892294.3b7aa0c60be0b@webmail.neomedia.it> <20010815181145.A30569@moo.holy.cow>

next in thread | previous in thread | raw e-mail | index | archive | help
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

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?997963051.3b7bb52b6263a>