From owner-freebsd-questions@FreeBSD.ORG Sat Aug 11 06:06:42 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 25E6316A418 for ; Sat, 11 Aug 2007 06:06:42 +0000 (UTC) (envelope-from sonicy@otenet.gr) Received: from rosebud.otenet.gr (rosebud.otenet.gr [195.170.0.94]) by mx1.freebsd.org (Postfix) with ESMTP id A5AFB13C4DB for ; Sat, 11 Aug 2007 06:06:41 +0000 (UTC) (envelope-from sonicy@otenet.gr) Received: from atlantis.dyndns.org (athedsl-305956.home.otenet.gr [85.73.242.194]) by rosebud.otenet.gr (8.13.8/8.13.8/Debian-3) with ESMTP id l7B66ceC010696; Sat, 11 Aug 2007 09:06:39 +0300 Message-ID: <46BD51ED.5050807@otenet.gr> Date: Sat, 11 Aug 2007 09:06:37 +0300 From: Manolis Kiagias User-Agent: Thunderbird 2.0.0.5 (X11/20070719) MIME-Version: 1.0 To: Richard Tobin References: <20070810230130.BF73324A339@macpro.inf.ed.ac.uk> In-Reply-To: <20070810230130.BF73324A339@macpro.inf.ed.ac.uk> Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Easy switch to xorg 7.2? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Aug 2007 06:06:42 -0000 Richard Tobin wrote: > I just did a 6.2-RELEASE install, only to find when I tried to install > some packages from stable that everything has switched to Xorg 7.2. > Can I just pkg_delete all the old xorg* packages and then pkg_add the > new ones? Is "pkg_add -r xorg" all I need? > > -- Richard > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > > I have successfully installed xorg 7.2 in a couple of new installations with minimum fuss. You can do it either from ports or packages. If you are running the i386 version of FreeBSD, there are ready packages in STABLE. There weren't any for amd64 and had to build them from ports. The procedure was very similar however. I will try to outline my steps here: - Install FreeBSD with options of your choice. Do NOT install the Xorg packages. Even better, do not install any packages from the CD, not even bash. The reason for this is the gettext library was updated, it is needed by many ports you will end up recompiling a lot of stuff you would just install on a new system. - Update your ports tree using csup. - Install bash from ports now if you wish. You will get the updated gettext. Installing a few other small ports like screen and sudo will not hurt either at this point. - Set the environment variable to get packages from stable: export PACKAGESITE=ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/Latest/ (for bash shells) or setenv PACKAGESITE ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/Latest/ (for csh) - Read /usr/ports/UPDATING. There are some instructions for xorg 7.2, but since you have not installed any previous version the ones that actually apply are: depending on you shell, either: export XORG_UPGRADE=yes or set XORG_UPGRADE yes Then: pkg_add -r xorg Note: You can also set PACKAGESITE so that it ends in /All/ instead of /Latest/. In this case you would do a pkg_add -r xorg-7.2 If you are using the amd64 port of FreeBSD you may not find ready packages (At least there were not any when I installed). Just go to /usr/ports/x11/xorg and make install clean. It will take a little more time, the end result is the same. Run the mergebase script per instructions. It won't do much, since you are not really "upgrading" but do it anyway: sh /usr/ports/Tools/scripts/mergebase.sh You are done! Configure X the usual way ( X -configure etc) and install you favourite window manager / Desktop environment from ports or packages. As I've said, I've used this procedure on a couple of machines and had absolutely no problem at all. It seems the trick is to set the XORG_UPGRADE variable even though you are not really upgrading. The mergebase script is also something to not ommit. It may copy nothing actually, but it sets some symbolic links. Hope this helps.