Date: Thu, 16 Apr 2009 20:59:30 +0200 From: Mel Flynn <mel.flynn+fbsd.questions@mailing.thruhere.net> To: freebsd-questions@freebsd.org Cc: Roland Smith <rsmith@xs4all.nl>, "Eugene L." <root1101@gmail.com> Subject: Re: FreeBSD Upgrade: Ports That Need Rebuilding Message-ID: <200904162059.31243.mel.flynn%2Bfbsd.questions@mailing.thruhere.net> In-Reply-To: <20090416162732.GA5626@slackbox.xs4all.nl> References: <49E64867.5060209@gmail.com> <200904161217.08784.mel.flynn%2Bfbsd.questions@mailing.thruhere.net> <20090416162732.GA5626@slackbox.xs4all.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 16 April 2009 18:27:32 Roland Smith wrote: > On Thu, Apr 16, 2009 at 12:17:08PM +0200, Mel Flynn wrote: > > On Thursday 16 April 2009 07:15:05 Roland Smith wrote: > > > On Thu, Apr 16, 2009 at 12:49:43AM +0400, Eugene L. wrote: > > > > I am planning to update to CURRENT, been reading freebsd-current for > > > > some time, apparently some ports require rebuilding as they are > > > > kernel specific, like hal, so I wonder how to rebuild those ports > > > > automatically? > > > > > > If you switch to another major version of FreeBSD, the best course is > > > to remove and reinstall all ports. > > > > All ports depending on libc. Which is everything except > > scripts. Removal isn't necessary. ports-mgmt/portmaster is one of > > those scripts that doesn't need recompilation and can be used to force > > recompilation of all ports that need it. Two for one deal. > > Unfortunately, no port management tool deals completely with this > situation. The libc version isn't listed as a dependency, AFAIK. Yes, that's right. However, portmaster is capable of ignoring ports for updating using +IGNOREME files in the corresponding /var/db/pkg/pkgname directory. You can invest a little time before the upgrade which ports you can skip this way. On the other hand, reinstalling script only ports, probably takes less time then figuring this out. YMMV. > I tend to make a list of all installed ports (with portmaster -L), wipe > all ports and remove any remains from /usr/local. Then reinstall all > ports listed as 'root ports' and 'leaf ports' in said list. This makes > sure you have a clean and consistent set of ports. I guess I'm just anti-redoing-configuration, since there's so many formats out there. One can of course backup ${LOCALBASE}/etc --exclude rc.d, but the number of exceptions grows over time (/etc/X11/xorg.conf, /usr/local/squid/*, /usr/local/pgsql/data/*, /usr/local/hybserv/*). I also see an advantage to your method. I've been running into incorrect PLISTs more often, which can leave traces of old files. -- Mel
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904162059.31243.mel.flynn%2Bfbsd.questions>