From owner-freebsd-questions@FreeBSD.ORG Thu Jun 24 22:24:48 2010 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 082D4106566B for ; Thu, 24 Jun 2010 22:24:48 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id ACEBF8FC1D for ; Thu, 24 Jun 2010 22:24:47 +0000 (UTC) Received: (qmail 23534 invoked by uid 399); 24 Jun 2010 22:24:46 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 24 Jun 2010 22:24:46 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4C23DB2D.9030904@FreeBSD.org> Date: Thu, 24 Jun 2010 15:24:45 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.10) Gecko/20100621 Thunderbird/3.0.5 MIME-Version: 1.0 To: bf1783@gmail.com References: In-Reply-To: X-Enigmail-Version: 1.0.1 OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@FreeBSD.org, "b. f." , "Alexandre L." Subject: Re: Problem using Portmaster to upgrade installed ports via packages only X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jun 2010 22:24:48 -0000 On 06/24/10 06:10, b. f. wrote: >> Hi, >> >> On my FreeBSD box running 8.0-RELEASE-p3, I have tried to use >> PORTMASTER tool to upgrade my ports via packages only. Then I added >> the following line to my user's .cshrc file and root's .cshrc file, >> and re-opened user's session : setenv PACKAGESITE >> ftp://ftp.fr.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/All/ >> >> >> Then I typed this linde into a console : >> % sudo portmaster -PP -a -x openoffice There is a procedure for using sudo with portmaster described in the man page. That procedure is preferable because it uses your user environment for everything except where root privileges are actually necessary. What I suspect is happening here is that sudo is stripping your environment which means that portmaster never sees the PACKAGESITE variable. I tried it just now with csh, setting the environment variable as you did, but using portmaster with sudo in the way described in the man page and it worked fine. If you would prefer to continue using 'sudo portmaster' that's fine, but you'll need to place the relevant information (such as PACKAGESITE) in ~/.portmasterrc or /usr/local/etc/portmaster.rc. BTW, if you're going to go this route, you're probably better off with PACKAGEROOT, but either way should work. See the man page for more information. >> Elsewhere, I have tested these FTP repositories (for PACKAGESITE >> variable) without success : >> ftp://ftp.fr.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/Lastest/ >> >> ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/Lastest/ Spelling counts. :) 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/