'port build' different than 'make all'

Markus Weissmann mww at macports.org
Fri Jan 4 03:17:35 PST 2008


On 4 Jan 2008, at 03:59, jcharum wrote:

> Ryan Schmidt-24 wrote:
>>
>> I am not really familiar with ghc, but I can tell you that MacPorts
>> builds in a modified environment. Any PATH you have set in your
>> terminal, for example, is ignored, and MacPorts uses its own PATH. A
>> slew of other environment variables are also set by MacPorts. I can't
>> name them all off the top of my head but you can peek through the
>> sources in src/port1.0 such as portconfigure.tcl and portbuild.tcl.
>>
>
> I see.  I actually built with the PATH that the configure script  
> reports
> during the MacPorts configure phase, so I think I got that part  
> right unless
> the PATH is different for the build phase(!).  Thanks for the  
> pointer to the
> sources to see the rest of the environment.  I will investigate to  
> see if I
> can reproduce the MacPorts build output.


if you have a version of port < 1.6 installed: We removed two  
environment variables that caused build troubles on 10.5 (originally  
for prebinding).


Regards,

-Markus

--
Dipl. Inf. (FH) Markus W. Weissmann
http://www.macports.org/
http://www.mweissmann.de/



More information about the macports-dev mailing list