From owner-freebsd-ports@FreeBSD.ORG Thu May 6 06:14:02 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7500B106566B for ; Thu, 6 May 2010 06:14:02 +0000 (UTC) (envelope-from dougb@dougbarton.us) Received: from mail2.fluidhosting.com (mx22.fluidhosting.com [204.14.89.5]) by mx1.freebsd.org (Postfix) with ESMTP id 2053D8FC1F for ; Thu, 6 May 2010 06:14:01 +0000 (UTC) Received: (qmail 32095 invoked by uid 399); 6 May 2010 06:14:00 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 6 May 2010 06:14:00 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4BE25E26.8020003@dougbarton.us> Date: Wed, 05 May 2010 23:13:58 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.9) Gecko/20100330 Thunderbird/3.0.4 MIME-Version: 1.0 To: freebsd-ports@freebsd.org References: <20100506015854.GN1357@rwpc12.mby.riverwillow.net.au> In-Reply-To: <20100506015854.GN1357@rwpc12.mby.riverwillow.net.au> X-Enigmail-Version: 1.0.1 OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: portmaster stopped finding dependent ports if non-standard PORTSDIR 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: Thu, 06 May 2010 06:14:02 -0000 On 5/5/2010 6:58 PM, John Marshall wrote: > Yesterday I updated ports on my notebook (8.0-RELEASE-p2), took a deep > breath, used portmaster to upgrade xorg to 7.5 (portmaster -D xorg-7.4_4) > - ran without a hitch. > > Then, I upgraded portmaster (portmaster -D portmaster) - also no > problems. Both good news. :) Although generally you should update a new portmaster version first before upgrading other stuff ... > Then, I tried to upgrade jpeg... > > ---------------------------------------- > rwpc08# portmaster -D jpeg > > ===>>> Currently installed version: jpeg-8_1 > ===>>> Port directory: /usr/ports/graphics/jpeg > ===>>> Launching 'make checksum' for graphics/jpeg in background > ===>>> Gathering dependency list for graphics/jpeg from ports > ===>>> Starting recursive 'make config' check > ===>>> Launching child to update /build/ports/devel/libtool22 > jpeg-8_1 >> /build/ports/devel/libtool22 That's very bad, because it's picking up /usr/ports/graphics/jpeg but also /build/ports/devel/libtool22. > I've tried upgrading other ports as well: same story. portmaster 2.25 > seems to work fine on other systems which have a native /usr/ports. I'm > thinking that portmaster's non-standard location awareness may have > broken with some of the recent ORIGIN stuff? The version of portmaster > I used to upgrade xorg was 2.2x (I think 2.22): I remember noticing that > it was 2 or 3 releases behind. The logic has changed, to: is pd set in portmasterrc? If so, use it, if not is PORTSDIR set in portmasterrc? If so, use it, if not does /usr/ports exist? If so, use it, if not test for the value of PORTSDIR with make(1) like before So a couple of questions. What does: make BEFOREPORTMK=bpm -f/usr/share/mk/bsd.port.mk -V PORTSDIR return? And do you have an actual /usr/ports directory on the box where PORTSDIR is supposed to be /build/ports? If the answer to the first question is not "/build/ports" and the answer to the second question is "no," then do this: Change the first line of /usr/local/sbin/portmaster to: #!/bin/sh -x Then do the following: script pm.log Then send me the log. hth, Doug -- ... and that's just a little bit of history repeating. -- Propellerheads Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/