[43188] trunk/dports/x11/xorg-server/Portfile

Joshua Root jmr at macports.org
Sun Dec 7 19:34:47 PST 2008


Ryan Schmidt wrote:
> 
> On Dec 7, 2008, at 04:56, Joshua Root wrote:
> 
>> Ryan Schmidt wrote:
>>
>>> On Dec 6, 2008, at 19:22, jeremyhu at macports.org wrote:
>>>
>>>> +post-destroot {
>>>> +    system "ln -s Xquartz ${prefix}/bin/X"
>>>> +}
>>>
>>> You don't need to use "system" to make a symlink; just write:
>>>
>>> ln -s Xquartz ${prefix}/bin/X
>>
>> Actually I think maybe you do in this case. Tcl's 'file link' won't work
>> when the specified link target doesn't exist.
> 
> Xquartz doesn't exist? Why would we want to create a symlink to
> something that doesn't exist?

${destroot}${prefix}/bin/Xquartz exists, but Xquartz doesn't exist
unless the interpreter's working directory is ${destroot}${prefix}/bin,
which I don't think is the case.

And to answer your question more generally, you often want to link to
something in ${prefix} which won't be there until the port is activated.

- Josh


More information about the macports-dev mailing list