Tiny Core Extensions > TCE Q&A Forum

freetype extension

(1/1)

hiro:
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: ---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

--- End code ---

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

tinypoodle:
Perhaps using /usr/local rather than /usr for your extension would solve your issue?

hiro:
Not sure, why should that be related?
I'm trying to overwrite the old symlink, so that all programs use the new library.

tinypoodle:
Related in the sense of default paths.
I am under the impression that /usr/local/lib precedes /usr/lib in priority of library path.

hiro:
Thanks, good to know.

Navigation

[0] Message Index

Go to full version