From owner-freebsd-ports@FreeBSD.ORG Wed Oct 29 08:57:43 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 213E016A4CF for ; Wed, 29 Oct 2003 08:57:43 -0800 (PST) Received: from lakemtao04.cox.net (lakemtao04.cox.net [68.1.17.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E9B343FD7 for ; Wed, 29 Oct 2003 08:57:41 -0800 (PST) (envelope-from A.J.Caines@halplant.com) Received: from mail.halplant.com ([68.98.153.175]) by lakemtao04.cox.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with ESMTP id <20031029165741.VFAC5790.lakemtao04.cox.net@mail.halplant.com> for ; Wed, 29 Oct 2003 11:57:41 -0500 Received: by mail.halplant.com (Postfix, from userid 1001) id BFDED21; Wed, 29 Oct 2003 11:57:39 -0500 (EST) Date: Wed, 29 Oct 2003 11:57:39 -0500 From: Andrew J Caines To: FreeBSD ports Message-ID: <20031029165739.GH15764@hal9000.halplant.com> Mail-Followup-To: FreeBSD ports References: <20031029042715.57311.qmail@web60301.mail.yahoo.com> <20031029155727.GD15764@hal9000.halplant.com> <200310290815.36608.kstewart@owt.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200310290815.36608.kstewart@owt.com> Organization: H.A.L. Plant X-PGP-Fingerprint: C59A 2F74 1139 9432 B457 0B61 DDF2 AA61 67C3 18A1 X-Powered-by: FreeBSD 4.9-RC X-URL: http://halplant.com:88/ X-Yahoo-Profile: AJ_Z0 X-ICQ: 283813972 Importance: Normal User-Agent: Mutt/1.5.4i Subject: Re: INDEX-5 is deleted then reconstructed by "make index" X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Andrew J Caines List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Oct 2003 16:57:43 -0000 Kent, [snip large amount of unnecessary quoted text] > Wait till a change like the last upgrade to gettext comes along and you have > to rebuild all of the ports that use it. I don't have to wait. I've done it with gettext last time around and other changes with similar effect since way back. > He will have to rebuild each of them manually. You can use portupgrade > recursively on gettext and wait for it to finish. True, portupgrade really does do this awkward job automagically, as long as the ports' dependencies are all correct. I've found this to be a little hit-and-miss. I've scripted a little tool for finding packages linked to missing .so libs, called "missinglibs". Simply run as "missinglibs libfoo" or "missinglibs libfoo.so.4". ----8<---- #!/bin/sh # (c) 2001 Andrew J. Caines lib=${1:-libm} tmp=/tmp/.$$.tmp ; rm -f $tmp 2>&- echo -e "\nLooking for files linked to $lib...\n" find /usr/local/bin /usr/local/lib /usr/X11R6/bin /usr/X11R6/lib -type f \ \( -perm +111 -o -name '*.so*' \) | while read file do if ( ldd $file 2>&- | fgrep -q $lib ) then echo $file pkg_info -W $file | awk '{print $NF}' >> $tmp fi done echo -e "\nPackages with files linked to $lib...\n" sort -u $tmp rm $tmp ----8<---- -Andrew- -- _______________________________________________________________________ | -Andrew J. Caines- Unix Systems Engineer A.J.Caines@halplant.com | | "They that can give up essential liberty to obtain a little temporary | | safety deserve neither liberty nor safety" - Benjamin Franklin, 1759 |