From owner-freebsd-questions Fri Sep 28 22:48:14 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-94-248-46.mmcable.com [24.94.248.46]) by hub.freebsd.org (Postfix) with SMTP id ECB1437B401 for ; Fri, 28 Sep 2001 22:48:10 -0700 (PDT) Received: (qmail 96737 invoked by uid 100); 29 Sep 2001 05:48:10 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15285.24729.959309.725432@guru.mired.org> Date: Sat, 29 Sep 2001 00:48:09 -0500 To: Andrew J Caines Cc: kbstew99@hotmail.com, questions@freebsd.org Subject: Re: Tracking down libpng.so.4 package dependency In-Reply-To: <20010929001552.V39250@hal9000.servehttp.com> References: <15284.53157.808642.644254@guru.mired.org> <3BB4D224.99CA89CF@owt.com> <103067005@toto.iv> <20010929001552.V39250@hal9000.servehttp.com> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Andrew J Caines types: > > You can get a list of all the files in the ports tree that reference > > png like so: > > cd /usr/ports > > find `pkg_info -aoq` -type f | xargs grep '[^.]png' > > This finds a few with direct dependencies, but it's a bit noisy and didn't > give any clues. You could try filtering things you know aren't interesting from the noise. For instance, adding "| grep -v ^pkg-plist" would throw out the obvious direct dependencies. Or send the original output to a file, and start greping through that. However, you provided a pointer to a better solution below. > > If you find a file in a port that you haven't updated, you might try > > updating that port, then rebuilding the galeon port. > > I think galeon itself, along with all but maybe one package, are built > right, however the cascading dependencies are including that one thing (a > .so I presume) which still links to libpng.so.4. > > By way of evidence: > > # ldd `which galeon-bin` | egrep png > libpng.so.5 => /usr/local/lib/libpng.so.5 (0x283d8000) > libpng.so.4 => not found (0x0) > > What a reall need is a treelike ldd output. From ldd(1) Yup. Patches welcome :-); it looks like more than a one-evening hack. For now, try this in bash: for l in $(ldd -f %p\\n $(which galeon-bin)) do echo $l: strings $l | grep libpng | sed 's/^/ /' done Libraries that aren't found will generate ugly results from this.... http://www.mired.org/home/mwm/ Q: How do you make the gods laugh? A: Tell them your plans. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message