Subject: Re: Replacing path to bash
To: Geert Hendrickx <>
From: Johnny Lam <>
List: tech-pkg
Date: 12/14/2005 08:55:50
Geert Hendrickx wrote:
> On Tue, Dec 13, 2005 at 02:27:55PM -0800, Jeremy C. Reed wrote:
>>USE_TOOLS+=     mktemp:pkgsrc
>>USE_TOOLS+=     gmake perl:run pkg-config
>>In the above examples, the :pkgsrc means to use the pkgsrc version and
>>not the native version and the :run means that it used for a run-time
>>dependencies also. The default is a build dependency (which can be set
>>with :build.)
> So if I understand correctly, "USE_TOOLS+= bash:run" will not depend on the
> shells/bash package on e.g. Linux systems which already have /bin/bash?
> Ok, that's good.  

Yes, your understanding is correct.  The primary purpose of the tools 
framework is to use pkgsrc to provide bits that the base system may not 
have when the package asks for a specific tool.  Lately, I've been using 
it more and more to provide "run-time binary dependencies", where a 
package needs a binary in another package to function correctly, but 
where that binary can be provided by one of several packages, e.g. gs, 
mkfontdir, etc.


	-- Johnny Lam <>