Date: Sat, 14 Apr 2007 21:20:35 -0400 From: Kris Kennaway <kris@obsecurity.org> To: Kris Kennaway <kris@obsecurity.org> Cc: lesi@FreeBSD.org, x11@FreeBSD.org Subject: Re: Upgrade script Message-ID: <20070415012035.GA32022@xor.obsecurity.org> In-Reply-To: <20070414195441.GA17321@xor.obsecurity.org> References: <20070414194028.GB2313@xor.obsecurity.org> <20070414195441.GA17321@xor.obsecurity.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--vtzGhvizbBRQ85DL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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=09 # 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=09 Then portupgrade -a, which was probably not strictly necessary. Kris P.S. Dunno about non-portupgrade users, they may be SOL. --vtzGhvizbBRQ85DL Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD4DBQFGIX3iWry0BWjoQKURAiyaAKC0BN/7MgUkOYAoq/CbTQtx0ENE9QCUCD2c x44I7HxufFkH6N8bwm1qLA== =AVtH -----END PGP SIGNATURE----- --vtzGhvizbBRQ85DL--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070415012035.GA32022>