Recompiling a port when a dependency is updated
Joshua Root
jmr at macports.org
Sun Dec 12 01:27:37 PST 2010
On 2010-12-12 20:23 , Andrea D'Amore wrote:
> On Fri, Dec 10, 2010 at 6:17 AM, Konrad Hinsen
> <konrad.hinsen at fastmail.net> wrote:
>> I am looking for a way to specify in a port file that my package needs to be recompiled whenever a specific dependency gets upgraded. Is this possible?
>
> Not that I know of but you can use -R while upgrading your specific
> dependency, this will rebuild as well other ports depending on that
> specific dependency.
Be careful using -R; it doesn't upgrade dependents' dependencies before
upgrading the dependents themselves. Also note that you have to use
--force or the dependents won't be rebuilt unless they happen to be
outdated. You then also probably want to use -n so the dependencies of
the incompatibly changed port aren't also force upgraded.
- Josh
More information about the macports-dev
mailing list