portupgrade, packages, and same versions
David Syphers
dsyphers at u.washington.edu
Sat Dec 4 20:01:59 PST 2004
So I did show-and-tell on questions@, and nobody seems to know. Anyone here
know why portupgrade has to be run twice when forcing an upgrade via
packages? See example error below. It's a very minor thing, but I don't think
it's the desired behavior. I'm running portupgrade 20040701_3 on 5.3-STABLE.
---------- Forwarded Message ----------
On Thursday 02 December 2004 05:54 pm, Kris Kennaway wrote:
> On Thu, Dec 02, 2004 at 05:33:50PM -0800, David Syphers wrote:
> > Or not, actually. It has nothing to do with the -u option. It fails
> > whenever it has to fetch the package (which it does successfully). The
> > next time it's run, when it has the package already, it succeeds.
>
> Again, show us, don't tell us.
yggdrasil# portupgrade -fuPP nasm-0.98.38_1,1
---> Checking for the latest package of 'devel/nasm'
---> Fetching the package(s) for 'nasm-0.98.38_1,1' (devel/nasm)
---> Fetching nasm-0.98.38_1,1
/var/tmp/nasm-0.98.38_1,1.tbz 100% of 133 kB 232 kBps
---> Downloaded as nasm-0.98.38_1,1.tbz
---> Identifying the package /var/tmp/nasm-0.98.38_1,1.tbz
---> Saved as /usr/ports/packages/All/nasm-0.98.38_1,1.tbz
---> Found a package of 'devel/nasm': nasm-0.98.38_1,1.tbz
(nasm-0.98.38_1,1) ---> Located a package version 0.98.38_1,1
(nasm-0.98.38_1,1.tbz)
** Ignoring the package, which is the same version as is installed
(0.98.38_1,1)
** No package available: devel/nasm
** Listing the failed packages (*:skipped / !:failed)
! devel/nasm (nasm-0.98.38_1,1) (package not found)
---> Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed
yggdrasil# portupgrade -fuPP nasm-0.98.38_1,1
---> Checking for the latest package of 'devel/nasm'
---> Found a package of 'devel/nasm': nasm-0.98.38_1,1.tbz
(nasm-0.98.38_1,1) ---> Reinstalling 'nasm-0.98.38_1,1' (devel/nasm) using
a package
---> Backing up the old version
---> Uninstalling the old version
---> Deinstalling 'nasm-0.98.38_1,1'
[Updating the pkgdb <format:bdb1_btree> in /var/db/pkg ... - 185 packages
found (-1 +0) (...) done]
pkg_info: can't find package 'nasm-0.98.38_1,1.tbz' installed or in a file!
---> Installing the new version via the package
---> Cleaning out obsolete shared libraries
[Updating the pkgdb <format:bdb1_btree> in /var/db/pkg ... - 186 packages
found (-0 +1) . done]
-David
--
"To get out of the Metaphysical Void, you either have to
grasp the meaning of the universe or roll doubles twice."
-Cecil Adams
More information about the freebsd-ports
mailing list