Upgrade script
Kris Kennaway
kris at obsecurity.org
Sun Apr 15 01:20:41 UTC 2007
Actually this script is not doing enough: the problem is that even
after all the portrevisions will be bumped, a portupgrade -a will not
install most of the new xorg packages, and the user will be left with
a non-working hybrid (I guess no-one actually tested the upgrade part
yet :-).
i.e. when xorg-libraries is upgraded from 6.9 to 7.2, most of the
dependency checks for things that now live in sub-packages will pass
(since they look for files also installed by xorg 6.9), so most of the
new ports won't be installed. I confirmed this on an attempted
upgrade of an xorg 6.9 machine.
What was necessary was the following:
# Make sure all dependencies are in consistent state
pkgdb -FL
# This is over-complete, i.e. it removes some things it doesn't have
# to. Should be replaced by pkg_delete -f.
pkg_deinstall -Rf xorg imake libGLU nvidia-driver
# Install new xorg from scratch. Could be replaced by pkg_add -r xorg
# once packages are available.
portinstall -N xorg
# Patch up dependencies, i.e. register new dependencies on all the new
# sub-ports of the packages we didn't upgrade yet
pkgdb -FL
Then portupgrade -a, which was probably not strictly necessary.
Kris
P.S. Dunno about non-portupgrade users, they may be SOL.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-x11/attachments/20070415/ccee78be/attachment.pgp
More information about the freebsd-x11
mailing list