diff options
author | Ross Burton <ross.burton@intel.com> | 2015-09-25 23:25:12 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-28 12:00:16 +0100 |
commit | 8a12632e975d0efe71346b56202d19fe3f83ff08 (patch) | |
tree | b00e5069620422f28dd563e53264c7b29bd0fafc /meta/classes/gtk-icon-cache.bbclass | |
parent | b0707780fb4eb3a11c00e8d112d44b750e6d522c (diff) | |
download | poky-8a12632e975d0efe71346b56202d19fe3f83ff08.tar.gz |
gdk-pixbuf: move gdk-pixbuf-query-loaders to $libdir for multilib safety
If for example gdk-pixbuf and lib32-gdk-pixbuf are in an image then only one
${bindir}/gdk-pixbuf-query-loaders will be installed, so only one variant will
actually be usable.
Solve this by moving gdk-pixbuf-query-loaders into ${libdir} as it's intimately
tied to the library and rarely directly invoked by the user, and update the
callers to use the right path.
(From OE-Core rev: 69df75f268e2b3d5874f05e2b5a6125f6d990a03)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/gtk-icon-cache.bbclass')
-rw-r--r-- | meta/classes/gtk-icon-cache.bbclass | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/meta/classes/gtk-icon-cache.bbclass b/meta/classes/gtk-icon-cache.bbclass index 12358e3aed..b005ab220b 100644 --- a/meta/classes/gtk-icon-cache.bbclass +++ b/meta/classes/gtk-icon-cache.bbclass | |||
@@ -4,12 +4,14 @@ DEPENDS += "${@['hicolor-icon-theme', '']['${BPN}' == 'hicolor-icon-theme']} gtk | |||
4 | 4 | ||
5 | gtk_icon_cache_postinst() { | 5 | gtk_icon_cache_postinst() { |
6 | if [ "x$D" != "x" ]; then | 6 | if [ "x$D" != "x" ]; then |
7 | $INTERCEPT_DIR/postinst_intercept update_icon_cache ${PKG} mlprefix=${MLPREFIX} libdir=${libdir} \ | 7 | $INTERCEPT_DIR/postinst_intercept update_icon_cache ${PKG} \ |
8 | base_libdir=${base_libdir} | 8 | mlprefix=${MLPREFIX} \ |
9 | libdir=${libdir} \ | ||
10 | STAGING_LIBDIR_NATIVE=${STAGING_LIBDIR_NATIVE} | ||
9 | else | 11 | else |
10 | 12 | ||
11 | # Update the pixbuf loaders in case they haven't been registered yet | 13 | # Update the pixbuf loaders in case they haven't been registered yet |
12 | GDK_PIXBUF_MODULEDIR=${libdir}/gdk-pixbuf-2.0/2.10.0/loaders gdk-pixbuf-query-loaders --update-cache | 14 | GDK_PIXBUF_MODULEDIR=${libdir}/gdk-pixbuf-2.0/2.10.0/loaders ${libdir}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders --update-cache |
13 | 15 | ||
14 | for icondir in /usr/share/icons/* ; do | 16 | for icondir in /usr/share/icons/* ; do |
15 | if [ -d $icondir ] ; then | 17 | if [ -d $icondir ] ; then |
@@ -21,8 +23,10 @@ fi | |||
21 | 23 | ||
22 | gtk_icon_cache_postrm() { | 24 | gtk_icon_cache_postrm() { |
23 | if [ "x$D" != "x" ]; then | 25 | if [ "x$D" != "x" ]; then |
24 | $INTERCEPT_DIR/postinst_intercept update_icon_cache ${PKG} mlprefix=${MLPREFIX} libdir=${libdir} \ | 26 | $INTERCEPT_DIR/postinst_intercept update_icon_cache ${PKG} \ |
25 | base_libdir=${base_libdir} | 27 | mlprefix=${MLPREFIX} \ |
28 | libdir=${libdir} \ | ||
29 | STAGING_LIBDIR_NATIVE=${STAGING_LIBDIR_NATIVE} | ||
26 | else | 30 | else |
27 | for icondir in /usr/share/icons/* ; do | 31 | for icondir in /usr/share/icons/* ; do |
28 | if [ -d $icondir ] ; then | 32 | if [ -d $icondir ] ; then |