gdk-pixbuf: use host loaders to update the cache
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Tue, 5 Apr 2016 23:31:24 +0000 (20:31 -0300)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 15 Apr 2016 18:24:09 +0000 (20:24 +0200)
commit1b1128589345d7ff9bda3861bf98e26da820a14d
treefb79b961f5c4d73b58e20bc4b176bf0a3749070f
parent91b16fbbf9dbd997263d2e157e5503732418760b
gdk-pixbuf: use host loaders to update the cache

Unfortunately gdk-pixbuf-query-loaders doesn't understand cross loaders
to update the cache, hence we can't use the host variant against target
loaders since it will output an effectively empty cache, causing runtime
failure of libgtk when finding icons.
So make host-gdk-pixbuf functionally equivalent to the target gdk-pixbuf
so we can run gdk-pixbuf-query-loaders against the host plugins and just
strip the host directory to make it runtime-compatible (like was done
before for the target directory).

This is still better than trying to update at runtime, since that would
require a writable loaders.cache file in tmpfs or rw filesystem, not to
mention the associated additional startup time.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/gdk-pixbuf/gdk-pixbuf.mk