[PATCH] Force build from source if macports.conf sets delete_la_files

Joshua Root jmr at macports.org
Mon Jul 22 14:53:26 PDT 2013


On 2013-7-23 07:46 , Ryan Schmidt wrote:
> 
> I'm not sure. Would anything bad happen if:
> 
> Scenario 1
> 
> a) user installs port foo built with MP 2.1 and thus non-empty dependency_libs in .la files
> b) user installs port bar (that depends on foo) with MP 2.2 and thus empty dependency_libs in .la files
> -> My understanding is this should work fine.
> 
> Scenario 2
> 
> a) user installs port foo built with MP 2.2 and thus empty dependency_libs in .la files
> b) user installs port bar (that depends on foo) built with MP 2.1 and thus non-empty dependency_libs in .la files (e.g. from the packages server)
> -> Presumably the installation would work, since it's a binary
> -> Would the software work?

It would work fine. The value of dependency_libs is only used by
dependents at link time.

> -> What if the user now installs port baz that depends on bar and has to build from source?

When building baz, libtool would read bar's .la file and add linking to
the libs referenced in its dependency_libs.

- Josh


More information about the macports-dev mailing list