Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Sep 2011 00:34:02 -0700
From:      Doug Barton <dougb@FreeBSD.org>
To:        FreeBSD Ports Mailing List <ports@freebsd.org>
Subject:   Detecting dependencies
Message-ID:  <4E7058EA.5070904@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
Howdy,

A couple of recent threads have mentioned clever ways to search for
dependencies. One problem ... there aren't any. :)  The *only* safe way
to make sure you have found all possible references to a dependency is
to grep the entire ports tree (grep -r category/portname /usr/ports/*).
There are just too many clever things that people do in various files
that aren't given conventional names that you will likely miss some
references if you don't.

Particularly useless (by itself) is using the INDEX to find dependencies
because it will miss any optional dependencies that are not enabled by
default. It is usually useful to cross-check the outcome of your grep
command to make sure that you have captured at least the known
on-by-default ones.


hth,

Doug

-- 

	Nothin' ever doesn't change, but nothin' changes much.
			-- OK Go

	Breadth of IT experience, and depth of knowledge in the DNS.
	Yours for the right price.  :)  http://SupersetSolutions.com/




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E7058EA.5070904>