From owner-freebsd-ports@FreeBSD.ORG Sun Mar 4 23:28:39 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 468BD106566B for ; Sun, 4 Mar 2012 23:28:39 +0000 (UTC) (envelope-from conrads@cox.net) Received: from eastrmfepo202.cox.net (eastrmfepo202.cox.net [68.230.241.217]) by mx1.freebsd.org (Postfix) with ESMTP id D321E8FC16 for ; Sun, 4 Mar 2012 23:28:38 +0000 (UTC) Received: from eastrmimpo210.cox.net ([68.230.241.225]) by eastrmfepo202.cox.net (InterMail vM.8.01.04.00 201-2260-137-20101110) with ESMTP id <20120304232831.HYKV1165.eastrmfepo202.cox.net@eastrmimpo210.cox.net>; Sun, 4 Mar 2012 18:28:31 -0500 Received: from serene.no-ip.org ([98.164.84.176]) by eastrmimpo210.cox.net with bizsmtp id hbUX1i00A3oG0Ji02bUXeK; Sun, 04 Mar 2012 18:28:31 -0500 X-CT-Class: Clean X-CT-Score: 0.00 X-CT-RefID: str=0001.0A020206.4F53FA9F.009D,ss=1,re=0.000,fgs=0 X-CT-Spam: 0 X-Authority-Analysis: v=1.1 cv=4c3erPp8IDK4hjMshW3NgoAtGm0gLVAMMMQaLleS7jM= c=1 sm=1 a=W28qOAfSpUQA:10 a=G8Uczd0VNMoA:10 a=kj9zAlcOel0A:10 a=qwmwShWo9LG1Fa0ONy89vg==:17 a=kviXuzpPAAAA:8 a=t207Iw7YxP70AtCTN9AA:9 a=CjuIK1q_8ugA:10 a=4vB-4DCPJfMA:10 a=qwmwShWo9LG1Fa0ONy89vg==:117 X-CM-Score: 0.00 Authentication-Results: cox.net; none Received: from cox.net (localhost [127.0.0.1]) by serene.no-ip.org (8.14.5/8.14.5) with ESMTP id q24NSUuF007995; Sun, 4 Mar 2012 17:28:30 -0600 (CST) (envelope-from conrads@cox.net) Date: Sun, 4 Mar 2012 17:28:25 -0600 From: "Conrad J. Sabatier" To: freebsd-ports@FreeBSD.org Message-ID: <20120304172825.18de3735@cox.net> In-Reply-To: <20120304172036.3963aafc@cox.net> References: <20120304172036.3963aafc@cox.net> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Marco Steinbach Subject: Re: Unexpected results from "make index" on a ports tree in a non-standard location, X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Mar 2012 23:28:39 -0000 On Sun, 4 Mar 2012 17:20:36 -0600 "Conrad J. Sabatier" wrote: > To test mkreadmes handling of ports trees in non-standard locations, I > just did the following: > > #cd /usr > #mv ports /usr/local > #cd /usr/local/ports > #export PORTSDIR=/usr/local/ports > #make index > > All seemed to proceed normally during the index build, but when I > checked the resulting INDEX-10 file, all of the ports' paths were > still using /usr/ports, not /usr/local/ports. > > Did I overlook something, or is there a defect in "make index"? > Ah, I just took a look at Tools/scripts/make_index, and found the following: # Save where we are so that we can map all directories formed # from ${PORTSDIR} to their canonical location '/usr/ports/...'. chomp($pwd = `pwd`); # Read each line of output generated by the 'index' target. while (<>) { chomp; s/\015$//; my @f = split(/\|/); # Force to canonical form. $f[1] =~ s!^$pwd!/usr/ports!o; $f[4] =~ s!^$pwd!/usr/ports!o; So, I take it, the index file is *supposed* to always map port paths to "/usr/ports", regardless of where the ports tree is actually located? Seems a little odd to me, but if that's the case, I guess I'll have to make some adjustments to mkreadmes. -- Conrad J. Sabatier conrads@cox.net