Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Jan 2009 09:56:06 -0800
From:      Garrett Cooper <yanefbsd@gmail.com>
To:        RW <rwmaillists@googlemail.com>
Cc:        ports@freebsd.org
Subject:   Re: pkgdb -F and obsolete  packages
Message-ID:  <55F4ACB2-9A22-45D0-A74B-8440AA9CE730@gmail.com>
In-Reply-To: <20090127141126.35d9004f@gumby.homeunix.com>
References:  <20090127141126.35d9004f@gumby.homeunix.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Jan 27, 2009, at 6:11 AM, RW wrote:

>
> After updating my ports tree, pkgdb prompted me to remove a couple of
> obsolete packages and then failed to delete them (see below).
>
> I deleted them manually, but I would have thought pkgdb should either
> removed the dependencies first, or force the delete and then handle
> the stale dependencies afterwards.
>
>
> # pkgdb -F
> --->  Checking the package registry database
> [Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... - 846  
> packages found (-1 +0) (...) done]
> Stale origin: 'x11/xphelloworld': perhaps moved or obsoleted.
> -> The port 'x11/xphelloworld' was removed on 2009-01-24 because:
>        "Xprint application, deprecated upstream"
> -> Hint:  xphelloworld-1.0.1_1 is required by the following  
> package(s):
>        xorg-7.3_2
>        xorg-apps-7.3
> -> Hint: checking for overwritten files...
> -> No files installed by xphelloworld-1.0.1_1 have been overwritten  
> by other packages.
> Deinstall xphelloworld-1.0.1_1 ? [no] yes
> --->  Deinstalling 'xphelloworld-1.0.1_1'
> pkg_delete: package 'xphelloworld-1.0.1_1' is required by these  
> other packages
> and may not be deinstalled:
> xorg-7.3_2
> xorg-apps-7.3
> ** Listing the failed packages (-:ignored / *:skipped / !:failed)
>        ! xphelloworld-1.0.1_1  (pkg_delete failed)
> Command failed [exit code 1]: /usr/local/sbin/pkg_deinstall  
> xphelloworld-1.0.1_1

	pkg_delete -f xphelloworld-1.0.1_1 (or make deinstall in the ports  
directory) will do the trick. Just make sure to upgrade after that ;).
	This is most likely a usage bug with pkg_install / pkgdb; I think  
there might be a -f option that you can use, but honestly that's like  
playing with fire.
Cheers,
-Garrett



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55F4ACB2-9A22-45D0-A74B-8440AA9CE730>