From owner-freebsd-questions Thu Aug 16 12:28:25 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mtiwmhc25.worldnet.att.net (mtiwmhc25.worldnet.att.net [204.127.131.50]) by hub.freebsd.org (Postfix) with ESMTP id C88E437B403 for ; Thu, 16 Aug 2001 12:28:19 -0700 (PDT) (envelope-from parv@worldnet.att.net) Received: from worldnet.att.net ([32.100.199.21]) by mtiwmhc25.worldnet.att.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20010816192818.FPWG5127.mtiwmhc25.worldnet.att.net@worldnet.att.net>; Thu, 16 Aug 2001 19:28:18 +0000 Received: by worldnet.att.net (Postfix, from userid 1001) id 14A9C50F46; Thu, 16 Aug 2001 15:28:19 -0400 (EDT) Date: Thu, 16 Aug 2001 15:28:18 -0400 From: parv To: Salvo Bartolotta Cc: f-q Subject: Re: make search isn't making any results in ports Message-ID: <20010816152818.A3030@moo.holy.cow> Mail-Followup-To: Salvo Bartolotta , f-q 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <997963051.3b7bb52b6263a@webmail.neomedia.it>; from bartequi@neomedia.it on Thu, Aug 16, 2001 at 01:57:31PM +0200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG this was, on the fateful occasion around Aug 16 07:57 -0400, sent by Salvo Bartolotta > > parv 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