From owner-freebsd-stable@FreeBSD.ORG Mon Aug 4 02:26:19 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0CA11106566B for ; Mon, 4 Aug 2008 02:26:19 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id EDB2E8FC18 for ; Mon, 4 Aug 2008 02:26:18 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id D4C221CC0AE; Sun, 3 Aug 2008 19:26:18 -0700 (PDT) Date: Sun, 3 Aug 2008 19:26:18 -0700 From: Jeremy Chadwick To: Nic Reveles Message-ID: <20080804022618.GA4790@eos.sc1.parodius.com> References: <696148549.2959541217812741596.JavaMail.root@mail3.gatech.edu> <1938178730.2959681217812808135.JavaMail.root@mail3.gatech.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1938178730.2959681217812808135.JavaMail.root@mail3.gatech.edu> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-stable@freebsd.org Subject: Re: Using Portupgrade? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Aug 2008 02:26:19 -0000 On Sun, Aug 03, 2008 at 09:20:08PM -0400, Nic Reveles wrote: > I've recently updated to freeBSD 6.3-STABLE from 5.3-RELEASE (amd64) and am struggling with out of date ports. I have tried updating 'ports-all' and 'src-all' numerous times (does src-all include ports-all? It takes forever) along with portupgrade. src-all does not include ports-all. "It takes forever" is wonderfully vague. :-) Chances are the cvsup server you're using is slow (usually caused by heavy disk I/O, not so much network I/O); pick another. Try them all, find one which is fast. I'd recommend a couple I commonly use, but then everyone will start using them....... :-) > For example, when trying to login to an account using the bash shell I got the following error that prevents logging in. > ld-elf.so.1: Shared object "libintl.so.6" not found This indicates bash is linked to a library that doesn't exist on your machine. On my RELENG_6 machine, there is no libintl.so.6 -- there's a libintl.so.8 (significantly newer). > So I tried: portupgrade -r bash, which did not fix anything. I was able to fix it by going into the ports directory and 'make deinstall' then 'make install'. But there are many other ports that are still broken. Is there an easy way to fix them all at once (using portupgrade)? The method I use for upgrading our systems is often shunned by other administrators because "it requires too much work", but it *always* works without any hitches. 1) Back up /usr/local. rsync -av /usr/local/ /usr/local.old/ works. 2) Save output from pkg_info somewhere (e.g. in a Notepad window, etc.) 3) pkg_delete -a -f 4) rm -fr /usr/local 5) rm -fr /var/db/pkg/* 6) rm -fr /var/db/ports (this probably isn't necessary, but why not) 7) Start installing all of your ports again If you have X on your machine, this method will very likely not make you happy, as I've heard people with X often have 300+ ports installed. I can't help you with X, as I don't use it. > 2) I rebuilt 'INDEX' > # cd /usr/ports && make index Waste of time. cd /usr/ports && make fetchindex > So I feel confident that I'm doing something incorrect since nothing seems to work after updating (or fails while updating). Could someone point me in the right direction? I'd start by ceasing use of portupgrade. Try Doug Barton's portmaster, which is in ports/ports-mgmt/portmaster. It's an extensive shell script, and does not require ruby. It might actually upgrade all of your ports for you, although your system may be in a state of disarray as a result of upgrading major OS versions. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |