[72457] trunk/dports/devel/ld64/Portfile

Rainer Müller raimue at macports.org
Sat Oct 16 11:22:26 PDT 2010


On 2010-10-16 19:10 , Mike Alexander wrote:
> There's another problem with this.  Since this executes 
> "${prefix}/bin/llvm-config" every time the port file is parsed it fails 
> if whatever provides that (maybe llvm?) is not installed.  This means 
> that portindex fails with this patch if you don't have something 
> providing llvm-config installed.

What you describe is what was the case before this change. The execution
was in the top-level of the Portfile.

But only the top-level of a Portfile (and variants) are evaluated for
the portindex run. Such a pre-build or pre-destroot phase as Ryan
suggested is only evaluated when you actually try to build or destroot
the port.

Rainer


More information about the macports-dev mailing list