general dependency questions

Ryan Schmidt ryandesign at macports.org
Fri Dec 21 00:33:06 PST 2007


On Dec 20, 2007, at 15:35, Brian Barnes wrote:

> I'm new to macports and experimenting with it.  To that end, I was  
> wondering if there is a simple way to list all dependencies  
> recursively in macports.  For example, the standard 'macports deps  
> foo' command does not list the deps of the deps.  I found a perl  
> script that does something similar in nature here:  http:// 
> lists.macosforge.org/pipermail/macports-users/2007-April/002481.html
>
> But, I mean, who wants to run perl scripts instead of a port  
> command?  :)

I have a PHP script to do the same, and generate a graphviz graph out  
of it. There's no built-in command in port.


> Also, the portfile for grace has the following dependency line:
> depends_lib             lib:libX11.6:XFree86 \
>
> X11 for Leopard provide X11R7 (instead of 6) and is based on xorg,  
> not XFree86.  But, I know that macports grace works in Leopard.  So  
> I'm wondering, how exactly is that line parsed?  How badly  
> malformed would it have to be, before macports tries to compile  
> XFree86 itself or just refuses to install?

The line means "This port depends on the library libX11.6, and if  
that library is not found, install the XFree86 port." Apple's X11,  
installed by default on Leopard and listed in the MacPorts system  
requirements, provides libX11.6, so the XFree86 port is not installed.



More information about the macports-users mailing list