How can I figure out the dependencies ports tree for a specific port

For example. I'm trying to build /usr/ports/databases/mysql80-server port. I use `make config-recursive` to configure the dependencies. And I noticed the dialogue window asking me to configure `git` and `subversion`.


I am wondering why the mysql server port needs `git` and `subversion` ports?


Can I figure out the dependencies for `mysql80-server`? or, trying to minimize the ports really needed for the mysql port?


Thank you for your help.
 
Check the ports manual page, it'll list all build targets. From the top of my head you'd want run-depends-list and/or build-depends-list.

Keep in mind that those other ports can have dependencies too.
 
Code:
% pkg search -o mysql80-server
databases/mysql80-server       Multithreaded SQL database (server)
% cd /tmp
% portgraph -p databases/mysql80-server
% ls mys*
mysql80-server          mysql80-server.svg
% cd
%

mysql80-server.png

 

Attachments

Open the port Makefile and read the BUILD/LIB/RUN_DEPENDS. Of course, BUILD_DEPENDS is just about build time dependencies.

Also, be aware OPTIONS often bring new dependencies, and so you need to read at this section of the Makefile, if there is it.
 
Back
Top