[Slackbuilds-users] Wrong symlink in wxGTK

Robby Workman rworkman at slackbuilds.org
Sun Jun 17 21:08:02 UTC 2007


Iskar Enev wrote:
> Robby Workman wrote:
>> Iskar Enev wrote:
>>
>>> I had to recompile wxGTK a few days ago and noticed that the script 
>>> produces a wrong symlink.
>>>
>>> In fact, the command has to be "ln -sf 
>>> /usr/lib/wx/config/gtk2-ansi-release-2.6 wx-config" as in the Eric's 
>>> slackbuild.
>>
>> Is this in our current wxGTK script?
>>
>> # Now let's fix the broken symlink created by the package
>> cd $PKG/usr/bin
>>   rm wx-config
>>   if [ "$UNICODE" = "YES" ]; then
>>     ln -s ../lib/wx/config/gtk2-unicode-release-2.6 wx-config
>>   elif [ "$UNICODE" = "NO" ]; then
>>     ln -s ../lib/wx/config/gtk2-ansi-release-2.6 wx-config
>>   fi
>> cd -
>>
>> Does that not work properly?  As I understand it, the symlink
>> should point to the "unicode" binary if the unicode build is
>> enabled, and to the "ansi" binary otherwise.  I guess what I'm
>> asking is this?  Should the link be pointing to the "ansi"
>> binary regardless?  What else will/can this break?  I'm very
>> reluctant to do thing different from what upstream does unless
>> there's a compelling reason - the only reason we had to "fix"
>> the symlink is because it links inside the $PKG directory (but
>> the "ansi" or "unicode" part is otherwise the same).
>>
>> I'm working on this for 12.0rc1 now, so if someone can enlighten
>> me on this, I'd appreciate it...
>>
>> RW
>> _______________________________________________
>> Slackbuilds-users mailing list
>> Slackbuilds-users at slackbuilds.org
>> http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
>>
> 
> I was not clear enough - sorry for that. I meant that one has to replace 
> "../lib" with "/usr/lib"
> in the links.


Odd.
It's done from inside $PKG/usr/bin, so the link should (after fix)
be pointing to $PKG/usr/lib/...  It shouldn't matter, I wouldn't
think, but whatever, I'll fix it again  :)

RW



More information about the Slackbuilds-users mailing list