Subject: Re: Find out what buildlinks (or dependencies) are needed?
To: Jeremy C. Reed <reed@reedmedia.net>
From: Johnny C. Lam <jlam@netbsd.org>
List: tech-pkg
Date: 05/24/2002 16:00:31
On Fri, May 24, 2002 at 01:15:39PM -0700, Jeremy C. Reed wrote:
> What is an easy way to find out what buildlinks (or dependencies) to
> include?
> 
> For example, I have packaged cxunzip. It uses gnome but I haven't listed
> any dependencies in the working Makefile yet.
> 
> I used:
> 
> ldd `which cxunzip` | egrep 'pkg/|X11R6/' | cut -d" " -f 4 | cut -d"/" -f
> 5 | while read line ; do grep -l $line /var/db/pkg/*/+CONTENTS ; done |
> sort -u | cut -d"/" -f 5
> 
> So I see it is using:
> esound-0.2.20
> gettext-lib-0.10.35nb1
> glib-1.2.10nb1
> gnome-libs-1.4.1.4
> gtk+-1.2.10
> imlib-1.9.14
> libaudiofile-0.2.3
> suse_x11-7.3nb2
> x11-links-0.7
> 
> Anyways, is there any easy way to find out what packages have
> buildlink.mk, etc.? Or does this always done manually?

I think this is just done manually at this point.  Some of those
buildlink.mk files include other buildlink.mk files, so it's not necessary
to list all of them.  In this particular case, gnome-libs/buildlink.mk
should include everything else.

	Cheers,

	-- Johnny Lam <jlam@netbsd.org>