Necessary library is a leaf for unknown reason

Andrew Udvare audvare at gmail.com
Sun Mar 10 08:54:17 UTC 2019


I have made a Portfile for mas that needs the Commandant framework, another Portfile I made:

https://github.com/Tatsh/ports/blob/master/devel/Commandant/Portfile
https://github.com/Tatsh/ports/blob/master/sysutils/mas/Portfile

On line 17, I clearly wrote:

depends_lib         port:Commandant port:Result

But for some reason every time I run `port echo leaves` I get this output:

 $ port echo leaves
Commandant                     @0.15.0_0

I am expecting no output. Same for rleaves which selects the rest:

 $ port echo rleaves
Commandant                     @0.15.0_0
Result                         @4.1.0_0

These should not be known as leaves as they are both required by the mas package. Is there something I am missing here?

 $ port info mas
mas @1.6.2 (sysutils, aqua)
Variants:             universal

Description:          Mac App Store command line interface.
Homepage:             https://github.com/mas-cli/mas

Library Dependencies: Commandant, Result
Platforms:            macosx
License:              MIT
Maintainers:          none

I thought library dependencies never get removed until the dependent package is removed, and as long as they are not requested. In my case, mas is requested so I expect all its library dependencies to remain.

-- 
Andrew Udvare




More information about the macports-users mailing list