Subject: Find out what buildlinks (or dependencies) are needed?
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 05/24/2002 13:15:39
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?

   Jeremy C. Reed
   http://www.reedmedia.net/