WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: freetype extension  (Read 1992 times)

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
freetype extension
« on: August 22, 2010, 02:04:32 PM »
I'm trying to build my personal freetype extension with non-blurry, e.g. microsoft fonts. But I'm getting a problem with one symlink
Code: [Select]
tc@box:/usr/lib$ ls -l libfreetype.so.6
lrwxrwxrwx 1 root staff 20 Aug 22 20:53 libfreetype.so.6 -> libfreetype.so.6.4.0

This is the original tinycore symlink.
Now I try to update it by loading my extension:

tc@box:/usr/lib$ tce-load -i sanefonts
/mnt/sda1/tce_acer/optional/sanefonts.tcz: OK
tc@box:/usr/lib$ ls -l /tmp/tcloop/sanefonts/usr/lib/libfreetype.so.6
lrwxrwxrwx 1 root staff 20 Aug 22 19:03 /tmp/tcloop/sanefonts/usr/lib/libfreetype.so.6 -> libfreetype.so.6.6.0
tc@box:/usr/lib$ ls -l libfreetype.so.6
lrwxrwxrwx 1 root staff 20 Aug 22 20:54 libfreetype.so.6 -> libfreetype.so.6.4.0

But after loading the extension the symlink is still the same...
And doing manually what I think tce-load is doing works as can be seen here:

tc@box:/usr/lib$ sudo busybox cp -as /tmp/tcloop/sanefonts/* /
tc@box:/usr/lib$ ls -l libfreetype.so.6
lrwxrwxrwx 1 root staff 46 Aug 22 20:54 libfreetype.so.6 -> /tmp/tcloop/sanefonts/usr/lib/libfreetype.so.6

This is especially strange to me, because other symlinks in the same folder, pointing to the same file get updated this way.
Any ideas?

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: freetype extension
« Reply #1 on: August 22, 2010, 02:45:43 PM »
Perhaps using /usr/local rather than /usr for your extension would solve your issue?
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: freetype extension
« Reply #2 on: August 22, 2010, 02:48:10 PM »
Not sure, why should that be related?
I'm trying to overwrite the old symlink, so that all programs use the new library.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: freetype extension
« Reply #3 on: August 22, 2010, 04:00:04 PM »
Related in the sense of default paths.
I am under the impression that /usr/local/lib precedes /usr/lib in priority of library path.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: freetype extension
« Reply #4 on: August 22, 2010, 10:28:16 PM »
Thanks, good to know.