From owner-freebsd-questions Fri Aug 17 3: 0:10 2001 Delivered-To: freebsd-questions@freebsd.org Received: from andrsn.stanford.edu (andrsn.Stanford.EDU [171.66.112.163]) by hub.freebsd.org (Postfix) with ESMTP id BB41D37B401 for ; Fri, 17 Aug 2001 03:00:05 -0700 (PDT) (envelope-from andrsn@andrsn.stanford.edu) Received: from localhost (andrsn@localhost.stanford.edu [127.0.0.1]) by andrsn.stanford.edu (8.9.3/8.9.1) with ESMTP id CAA52982; Fri, 17 Aug 2001 02:47:46 -0700 (PDT) Date: Fri, 17 Aug 2001 02:47:46 -0700 (PDT) From: Annelise Anderson To: Salvo Bartolotta Cc: parv , f-q Subject: Re: make search isn't making any results in ports In-Reply-To: <997963051.3b7bb52b6263a@webmail.neomedia.it> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Thu, 16 Aug 2001, Salvo Bartolotta wrote: > 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 > 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