Date: Thu, 24 Jun 2010 15:24:45 -0700 From: Doug Barton <dougb@FreeBSD.org> To: bf1783@gmail.com Cc: freebsd-questions@FreeBSD.org, "b. f." <bf1783@googlemail.com>, "Alexandre L." <axelbsd@ymail.com> Subject: Re: Problem using Portmaster to upgrade installed ports via packages only Message-ID: <4C23DB2D.9030904@FreeBSD.org> In-Reply-To: <AANLkTimLMrQ4qOYmxE7mg0hgRc0skTYZ1mFqwxPS8s0Y@mail.gmail.com> References: <AANLkTimLMrQ4qOYmxE7mg0hgRc0skTYZ1mFqwxPS8s0Y@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C23DB2D.9030904>