From owner-freebsd-questions Fri May 17 15:47:57 2002 Delivered-To: freebsd-questions@freebsd.org Received: from empty1.ekahuna.com (empty1.ekahuna.com [198.144.200.196]) by hub.freebsd.org (Postfix) with ESMTP id BFE8A37B416 for ; Fri, 17 May 2002 15:47:46 -0700 (PDT) Received: from pc-02 (pc02.ekahuna.com [198.144.200.197]) by empty1.ekahuna.com (Post.Office MTA v3.5.3 release 223 ID# 0-0U10L2S100V35) with ESMTP id com; Fri, 17 May 2002 15:47:45 -0700 From: "Philip J. Koenig" Organization: The Electric Kahuna Organization To: questions@FreeBSD.ORG Date: Fri, 17 May 2002 15:47:45 -0700 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Portupgrade / pkgdb question Reply-To: pjklist@ekahuna.com Cc: Brian Minard In-reply-to: <15589.21588.23312.302422@yop.flatfoot.ca> References: <20020517132846380.AAA341@empty1.ekahuna.com@pc02.ekahuna.com> X-mailer: Pegasus Mail for Win32 (v3.12c) Message-ID: <20020517224745963.AAA345@empty1.ekahuna.com@pc02.ekahuna.com> 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 17 May 2002, at 15:04, Brian Minard boldly uttered: > On May 17, 2002, Philip J. Koenig wrote: > > It appears that ports or packages created back in the 4.1 days aren't > > aware of "origin", so you have to 'correct' all of them. (very > > tedious without some form of prompting when running pkgdb -F, IMHO.. > > especially when you have 200+ packages/ports installed) > > > > Just a thought: Why not update the ports tree? > > When I moved from the 4.0 CD to the 4.6 pre-release, I cvsup'ed the > ports tree and then executed the following. > > # portsupgrade -cO > upgrade.sh > (edit upgrade.sh to remove the packages you really don't want upgraded) > # sh upgrade.sh > # portsdb -Uu > # pkgdb -F (with a much smaller number of out of date origins...) > > In this case, all installed ports are upgraded to their current > versions. This seems to have worked well. I avoided the interactive > ports and didn't meet with much success building KDE. I assume "portsupgrade" was a typo. The reason I haven't bothered with that is that according to the portupgrade manpage, you're in for trouble if you try to upgrade a bunch of ports and you don't have an error-free pkgdb. Since pkgdb -F implies my installed packages (most installed originally as binary packages from the 4.1 CD) don't even know where to check to see if they're up to date and/or what port to build to upgrade themselves (they don't understand "origin" and portversion lists most packages with the "#" character so can't even report if they're up to date or not) I don't see how that would work. Also, why would simply redirecting standard output to a file avoid portupgrade running anyway? I would think that would just send the runtime messages to a file? Aren't you thinking of pkg_version -c? Pkg_version appears to be able to determine versions without a valid "origin", unlike portversion/portupgrade. I already CVSup'd the ports tree (same time I got the sources for (4.6-PRE), ran "portsdb -Uu", and "pkgdb -F", the latter being the sticking point. > (Might want to look at pkgtools.conf before you try this.) > > If you use portsclean (-CDD) things should get cleaned up afterwards. -- Philip J. Koenig pjklist@ekahuna.com Electric Kahuna Systems -- Computers & Communications for the New Millenium To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message