portupgrade dies during upgrade of x11
Frank Shute
frank at shute.org.uk
Tue Jan 27 09:27:33 PST 2009
On Tue, Jan 27, 2009 at 09:48:58AM +0100, Ewald Jenisch wrote:
>
> Hi,
>
> During an upgrade of my ports involving x11 portupgrade dies (FreeBSD
> 7.1, AMD64)
>
>
>
> Here's what I did: After cvsup, make fetchindex, I did a pkgdb -F and
> then portupgrade -rf libxcb as per UPDATING of 20090123.
>
> Next I did a pkgdb -F again, which complained about obsoleted packages
> while at the same time telling me that they're still needed, so I
> didn'd de-install them:
>
> # pkgdb -F
> ---> Checking the package registry database
> Stale origin: 'x11/xorg-protos': perhaps moved or obsoleted.
> -> The port 'x11/xorg-protos' was removed on 2009-01-23 because:
> "Not really necessary"
> -> Hint: xorg-protos-7.3_2 is required by the following package(s):
> xorg-7.3_2
> -> Hint: checking for overwritten files...
> -> No files installed by xorg-protos-7.3_2 have been overwritten by other packages.
> Deinstall xorg-protos-7.3_2 ? [no]
> 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]
> Duplicated origin: delete - xorg-protos-7.3_2 xphelloworld-1.0.1_1
> Unregister any of them? [no]
> Stale dependency: xorg-7.3_2 -> add (x11-drivers/xf86-video-openchrome):
> Fixed. (-> xf86-video-openchrome-0.2.903)
> Stale dependency: xorg-7.3_2 -> xinput-1.4.0 (x11/xinput):
> xinit-1.1.1 (score:18%) ? ([y]es/[n]o/[a]ll) [no]
> Install stale dependency? ([y]es/[n]o/[a]ll) [yes] a
> [Gathering depends for x11/xinput ................................................................. done]
> ---> Installing 'xinput-1.4.0' from a port (x11/xinput)
> ---> Building '/usr/ports/x11/xinput'
> .
> .
> .
> ===> Compressing manual pages for xinput-1.4.0
> ===> Registering installation for xinput-1.4.0
> ===> Cleaning for xinput-1.4.0
> Fixed. (-> xinput-1.4.0)
> Stale dependency: xorg-apps-7.3 -> xinput-1.4.0 (x11/xinput):
> xinput-1.4.0 ? ([y]es/[n]o/[a]ll) [yes] a
> Fixed. (-> xinput-1.4.0)
> #
>
>
>
> After that I started portupgrade -arR which died in the following way:
>
> # portupgrade -arR
> ** Port marked as IGNORE: x11-drivers/xf86-video-vga:
> is marked as broken: Needs to be removed
> ** Port marked as IGNORE: x11-drivers/xf86-video-via:
> requires pciVideoPtr typedef
> ** Port directory not found: x11/xorg-protos
> ** Port directory not found: x11/xphelloworld
> ---> Skipping 'x11/xorg-apps' (xorg-apps-7.3) because a requisite package 'xphelloworld-1.0.1_1' (x11/xphelloworld) failed (specify -k to force)
> ---> Skipping 'x11-drivers/xorg-drivers' (xorg-drivers-7.3_3) because a requisite package 'xf86-video-vga-4.1.0_2' (x11-drivers/xf86-video-vga) failed (specify -k to force)
> ---> Skipping 'x11/xorg' (xorg-7.3_2) because a requisite package 'xorg-apps-7.3' (x11/xorg-apps) failed (specify -k to force)
> ** Listing the failed packages (-:ignored / *:skipped / !:failed)
> - x11-drivers/xf86-video-vga (marked as IGNORE)
> - x11-drivers/xf86-video-via (marked as IGNORE)
> - x11/xorg-protos (port directory error)
> - x11/xphelloworld (port directory error)
> * x11/xorg-apps (xorg-apps-7.3)
> * x11-drivers/xorg-drivers (xorg-drivers-7.3_3)
> * x11/xorg (xorg-7.3_2)
> #
>
>
> I've also tried to uninstall x11/xorg-protos during pkgdb -F which
> also died:
>
> # pkgdb -F
> ---> Checking the package registry database
> Stale origin: 'x11/xorg-protos': perhaps moved or obsoleted.
> -> The port 'x11/xorg-protos' was removed on 2009-01-23 because:
> "Not really necessary"
> -> Hint: xorg-protos-7.3_2 is required by the following package(s):
> xorg-7.3_2
> -> Hint: checking for overwritten files...
> -> No files installed by xorg-protos-7.3_2 have been overwritten by other packages.
> Deinstall xorg-protos-7.3_2 ? [no] yes
> ---> Deinstalling 'xorg-protos-7.3_2'
> pkg_delete: package 'xorg-protos-7.3_2' is required by these other packages
> and may not be deinstalled:
> xorg-7.3_2
> ** Listing the failed packages (-:ignored / *:skipped / !:failed)
> ! xorg-protos-7.3_2 (pkg_delete failed)
> Command failed [exit code 1]: /usr/local/sbin/pkg_deinstall xorg-protos-7.3_2
> #
>
>
>
> Any way to resolve this?
>
> Thanks much in advance for any clue,
> -ewald
Ewald,
What I'd do under your circumstances is run pkgdb -F again and
deinstall all the packages that are moved or obsoleted.
If it won't deinstall because of dependencies, use: pkg_deinstall -f
Then repeat pkgdb -F again & pkg_deinstall -f until it comes up clean.
Then have a go again at updating according to the instructions in
/usr/ports/UPDATING
If the worst comes to the worst, you can always just deinstall X &
then upgrade.
Regards,
--
Frank
Contact info: http://www.shute.org.uk/misc/contact.html
More information about the freebsd-questions
mailing list