Subject: Re: recursive pkg_tarup?
To: Daniel Bolgheroni <dbolgheroni@unifei.edu.br>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 09/27/2004 17:09:21
On Mon, 27 Sep 2004, Daniel Bolgheroni wrote:

> The same feature I was asking about two weeks ago, probably. pkg_tarup
> doesn't work if you want to "tarup" dependencies too, even if in the
> man pages there is a "-a" parameter that supposely do the job. Also,

$ list_requires() { for pkg in `pkg_info -qn ${1}` ; do
echo $pkg ; list_requires "$pkg" ; done; }

$ list_requires kde | sort -u

Example:

rainier:/usr/pkgsrc$ list_requires scribus | sort -u
MesaLib>=6.0
Xfixes>=2.0.0
Xft2>=2.1nb1
Xrandr>=1.0.1
Xrender>=0.8.2
expat>=1.95.7
fixesext>=2.0
fontconfig>=2.1nb2
freetype2>=2.1.8
glu>=6.0
jpeg>=6b
lcms>=1.06
libart2>=2.3.10nb1
mng>=1.0.0
png>=1.2.4
pth>=2.0.0
qt3-libs>=3.2.3
qt3-tools>=3.1.2nb3
tiff>=3.6.1
xcursor>=1.1.1
zlib>=1.2.1

Another example:

$ list_requires gphoto2 | sort -u
aalib>=1.4.0.4
gettext-runtime>=0.14.1nb1
jpeg>=6b
libexif>=0.5.12
libgphoto2>=2.1.2
libiconv>=1.9.1
libusb>=0.1.7
popt>=1.7nb3

 Jeremy C. Reed

 	  	 	 technical support & remote administration
	  	 	 http://www.pugetsoundtechnology.com/