How to find all dependents of go?
Joshua Root
jmr at macports.org
Thu Jan 14 18:01:19 PST 2016
On 2016-1-15 10:36 , Daniel J. Luke wrote:
> On Jan 14, 2016, at 6:31 PM, David Evans <devans at macports.org> wrote:
>> On 1/14/16 3:25 PM, Clemens Lang wrote:
>>> Hi,
>>>
>>> On Thu, Jan 14, 2016 at 09:28:48PM +0100, Christoph Iserlohn wrote:
>>>> But
>>>> $ port dependents go
>>>> returns
>>>> go has no dependents.
>>>> which is clearly wrong. I have several ports depending on go installed, e.g.:
>>>> $ port installed go-tools
>>>> The following ports are currently installed:
>>>> go-tools @65b5a8eca7a871e7c1d99722e4a43a4a6e32ebe0_0 (active)
It's only a build dependency, so once go-tools is installed, go is no
longer required.
>>>> No luck with port search either:
>>>> $ port search --exact --depends_lib --depends_build go
>>>> No match for go found
>>>
>>> Try port echo depends:go.
>>>
>>
>> This is not too useful as it returns a list of ports whose dependencies
>> have 'go' in their names. So you get the desired dependents plus ports
>> that depend on pango, etc.
You can construct a better regex like:
port echo 'depends:\:go(\s|$)'
> port echo dependentof:go
>
> or
>
> port echo rdependentof:go
That queries the registry just like 'port dependents'.
- Josh
More information about the macports-dev
mailing list