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

Joshua Root jmr at macports.org
Sun Dec 7 22:03:18 PST 2008


Ryan Schmidt wrote:
> 
> On Dec 7, 2008, at 21:34, Joshua Root wrote:
> 
>> 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.
> 
> 
> Surely MacPorts doesn't have a problem creating such symlinks... I do
> that in several of my ports: graphviz/graphviz-devel,
> oracle-instantclient...

Yeah, I just tested and it's happy with relative links. It's only
linking to paths that don't yet exist where Tcl fails and 'system "ln
-s"' succeeds.

- Josh


More information about the macports-dev mailing list