Questions on dependencies
Ryan Schmidt
ryandesign at macports.org
Fri Nov 1 11:34:45 PDT 2013
We use “installs_libs no” to indicate that a port that other ports depend on does not install any libraries.
That’s no help when the port does install libraries, like ImageMagick does.
On Nov 1, 2013, at 13:11, Jeremy Lavergne <jeremy at lavergne.gotdns.org> wrote:
> I think we use `installs_libs no` for those licensing checks.
>
> On Nov 1, 2013, at 14:09, Ryan Schmidt <ryandesign at macports.org> wrote:
>
>> I’m not sure if there’s any licensing difference. Historically, we’ve said that if a dependency is needed at build time and at runtime, then it should be listed in only depends_lib, even if it is not a library. However I think we should change our thinking this and use depends_lib only to indicate library dependencies. The reason is that some ports provide both libraries and programs. I’m thinking specifically of ImageMagick, which might be depended upon either for its libraries like libMagickCore or for its programs like convert. When libMagickCore’s library version number increases, I need to be able to identify which ports are linking with ImageMagick’s libraries, so that I can revbump them so that they rebuild, but I don’t want to unnecessarily revbump those ports only using ImageMagick’s programs. The solution would be for ports that use the ImageMagick libraries to depend on it via depends_lib and for those only needing its programs to depend on it via depends_build and/or depends_run.
>
More information about the macports-dev
mailing list