From owner-freebsd-questions Thu Aug 16 4:57:41 2001 Delivered-To: freebsd-questions@freebsd.org Received: from aragorn.neomedia.it (aragorn.neomedia.it [195.103.207.6]) by hub.freebsd.org (Postfix) with ESMTP id A59B337B40C for ; Thu, 16 Aug 2001 04:57:37 -0700 (PDT) (envelope-from bartequi@neomedia.it) Received: (from httpd@localhost) by aragorn.neomedia.it (8.11.4/8.11.4) id f7GBvVT02668; Thu, 16 Aug 2001 13:57:31 +0200 (CEST) To: parv Subject: Re: make search isn't making any results in ports Message-ID: <997963051.3b7bb52b6263a@webmail.neomedia.it> Date: Thu, 16 Aug 2001 13:57:31 +0200 (CEST) From: Salvo Bartolotta Cc: f-q References: <997869845.3b7a491562488@webmail.neomedia.it> <20010815071230.B13033@moo.holy.cow> <997892294.3b7aa0c60be0b@webmail.neomedia.it> <20010815181145.A30569@moo.holy.cow> In-Reply-To: <20010815181145.A30569@moo.holy.cow> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: IMP/PHP IMAP webmail program 2.2.4-cvs X-WebMail-Company: Neomedia s.a.s. X-Originating-IP: 62.98.161.145 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 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. 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