Date: Fri, 17 May 2002 16:01:09 -0700 From: "Philip J. Koenig" <pjklist@ekahuna.com> To: questions@FreeBSD.ORG Cc: Kent Stewart <kstewart@owt.com> Subject: Re: Portupgrade / pkgdb question Message-ID: <20020517230109498.AAA337@empty1.ekahuna.com@pc02.ekahuna.com> In-Reply-To: <3CE52340.6080209@owt.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020517230109498.AAA337>