[28311] trunk/dports/lang

Landon Fuller landonf at macports.org
Tue Aug 28 16:18:35 PDT 2007


On Aug 28, 2007, at 4:16 PM, N_Ox wrote:

>> You shouldn't use Tcl's "cd" in a port -- it changes the current  
>> working directory of the entire process. We should probably remove  
>> the Tcl command from the interpreter.
>>
>> -landonf
>
> I think we should change this behavior rather than disabling the  
> command.
> Useful working directories in build stages (e.g. ${worksrcpath} in  
> configure or ${destroot} in destroot) would be a nice feat.

We would have to rewrite? all file operations to take into account a  
virtual current working directory, and somehow maintain that context  
within the current execution block.
Seems safer and less work to just not depend on a the current working  
directory (which is always a good idea, anyway).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.macosforge.org/pipermail/macports-dev/attachments/20070828/89f9a596/PGP.bin


More information about the macports-dev mailing list