From owner-freebsd-ports@FreeBSD.ORG Sun May 27 12:53:58 2007 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7EDA816A46C for ; Sun, 27 May 2007 12:53:58 +0000 (UTC) (envelope-from derrick@uniquestrength.net) Received: from alnrmhc12.comcast.net (alnrmhc12.comcast.net [204.127.225.92]) by mx1.freebsd.org (Postfix) with ESMTP id 5B81C13C4B9 for ; Sun, 27 May 2007 12:53:58 +0000 (UTC) (envelope-from derrick@uniquestrength.net) Received: from [192.168.1.109] (c-68-55-141-86.hsd1.md.comcast.net[68.55.141.86]) by comcast.net (alnrmhc12) with ESMTP id <20070527124303b1200qeltue>; Sun, 27 May 2007 12:43:03 +0000 From: Dantavious To: freebsd-ports@freebsd.org Date: Sun, 27 May 2007 08:43:03 -0400 User-Agent: KMail/1.9.6 References: <46594789.8030900@FreeBSD.org> In-Reply-To: <46594789.8030900@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200705270843.03798.derrick@uniquestrength.net> Subject: Re: Instructions for xorg 7.2 upgrade using portmaster X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 May 2007 12:53:58 -0000 On Sunday 27 May 2007 04:55:37 Doug Barton wrote: > Howdy, > > Thanks to all who've inquired about doing the xorg upgrade using > portmaster. I appreciate your patience in waiting for me to provide > instructions for it, but it's been quite an exciting journey. I just > committed a new version of portmaster (1.17) that has many new > features and enhancements, several of which are required for the upgrade. > > Please note that if you can do it, the _best_ way to use portmaster to > do the upgrade is still to run 'pkg_delete -f xorg*' followed by > 'portmaster x11/xorg', but if you can't or don't want to do that, read > on. :) The problem that you'll inevitably run into is that due to the > vast number of files that are moving from one port to another, > combined with the way portmaster does depth-first updates, old port A > is going to be deleted after new port B has already installed one or > more new files with the same name, leading to either a failed build or > rebuilding of the dependency. We can minimize that problem, but we > can't avoid it altogether. So, here we go ... > > 0. Update to version 1.17 of portmaster (or newer if available), and > take a glance at the man page. > > 1. Add 'X11BASE= ${LOCALBASE}' to /etc/make.conf. Strictly speaking > this should not be necessary, but I ran into weirdness without it. > > 2. Export XORG_UPGRADE into your environment (see /usr/ports/UPDATING) > > 3. Read the 20070519 entry in /usr/ports/UPDATING, and any newer > entries that pertain to the upgrade. > > 4. pkg_delete -f the xorg-manpages, xorg-fonts-misc-bitmaps, and > xorg-libraries ports. These ports are guaranteed to delete new files > when they are pkg_delete'd, and there is no way around it. > > 5. Consider doing 'rm -r /var/db/ports/*', or adding the new > --force-config option to the beginning of each command line below. > > 6. Start the script per UPDATING. > > 7. portmaster -wv /usr/ports/x11/xorg-libraries > If you can be sure (either through using WRKDIRPREFIX or pre-cleaning > your /usr/ports/ tree) that you have no stale work directories, > consider adding the -C flag. If you want to delete the old distfiles > without prompting, add -d. > > 8. portmaster -v[Cd] /usr/ports/devel/imake > > 9. portmaster -v[Cd] -w -r libXft > If this build fails at any point (and it probably will at least once) > then add -R to the command line when you restart it in order to avoid > having to rebuild things already built. This is probably a good time > to add the -C option if the build fails part way through the make > phase of a port to avoid having to rebuild that part of the port > that's already done. If your build fails often with trying to install > a port that's already installed (part of the chicken/egg problem > described above) consider adding -m"-DFORCE_PKG_REGISTER" to the > portmaster command line. It's not an ideal solution, but it's a time > saver, and it works. > > 10. portmaster -v[Cd] -w /usr/ports/x11/xorg > The -R option as described above won't help you here, but the other > information from 9. applies. > > 11. portmaster -v[Cd] -w -a > > 12. portmaster [-d] -s > > 13. portmaster [-d] --clean-distfiles > > 14. Enjoy the brave new world of xorg 7.2 :) > > > Good luck, > > Doug > > PS, One request, please do not mail me directly asking for help with > the upgrade. You're much better off posting a message here on > freebsd-ports@ so that you can get help that much sooner. I will of > course be monitoring the list closely. Thanks. Thanks for the great tool and the instructions. v/r Derrick