From owner-freebsd-questions Fri May 17 16: 1:16 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 49EDB37B405 for ; Fri, 17 May 2002 16:01:10 -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 16:01:09 -0700 From: "Philip J. Koenig" Organization: The Electric Kahuna Organization To: questions@FreeBSD.ORG Date: Fri, 17 May 2002 16:01:09 -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: Kent Stewart In-reply-to: <3CE52340.6080209@owt.com> X-mailer: Pegasus Mail for Win32 (v3.12c) Message-ID: <20020517230109498.AAA337@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 8:35, Kent Stewart boldly uttered: > Philip J. Koenig wrote: > > > Been trying to upgrade ports on a machine that started out running > > 4.1, was most recently running 4.3-Stable, and is now running 4.6- > > Prerelease. > > > > Upgraded portupgrade itself OK, but when I do a "pkgdb -F" it shows > > most of the installed packages as having no "origin". (apparently > > this is because the "origin" concept was introduced after 4.1) > > > > My understanding is that "origin" is the path to the port in the > > ports directory - ie if the port is /usr/ports/editors/joe, the > > origin is "editors/joe". > > > > But there is no interactive search or anything to help find the > > correct path to input to correct this problem when running "pkgdb - > > F", so does this mean that I have to sit down, manually find and make > > a list of all the modern equivalents/locations of all 200 installed > > packages, then manually type in each path for each old package during > > "pkgdb -F" before I can effectively use portupgrade? > > > I keep seeing cases where I think the easy solution is to > > pkg_delete -r pkg_name > > This will recursively delete anything using pkg_name, and then, you > can remake the end of the line packages you are trying to upgrade. > Everything that uses the base package needs to be upgraded and installed. > > Kent I may end up doing that. I was disappointed to discover that portsupgrade/pkg_deinstall are crippled if the "origin" is missing for packages/ports. Whereas for example pkg_version is able to scan through the ports index and understand versions and origins by looking for matching strings, if "origin" is missing. It would be great if "pkgdb" could use the above scheme to prompt you with the most likely "guessed" origin when running "pkgdb -F" on old ports/packages. Then one could easily correct most of the origin problems and keep using his tools. -- 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