Patchwork [2/2] gtk-update-icon-cache-native: create wrapper script

login
register
mail settings
Submitter Laurentiu Palcu
Date April 8, 2013, 3:06 p.m.
Message ID <1365433601-24194-3-git-send-email-laurentiu.palcu@intel.com>
Download mbox | patch
Permalink /patch/47627/
State Accepted
Commit 4e46d6f2353b852f255500e774dc5653d3c7cd05
Headers show

Comments

Laurentiu Palcu - April 8, 2013, 3:06 p.m.
When using the sstate from another build machine, the path to the pixbuf
loader's cache points to a path on the remote machine. Hence, the update
of the icon cache fails on host.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
---
 .../gtk+/gtk-update-icon-cache-native_3.4.4.bb     |    4 ++++
 1 file changed, 4 insertions(+)
Martin Jansa - April 8, 2013, 4:28 p.m.
On Mon, Apr 08, 2013 at 06:06:41PM +0300, Laurentiu Palcu wrote:
> When using the sstate from another build machine, the path to the pixbuf
> loader's cache points to a path on the remote machine. Hence, the update
> of the icon cache fails on host.
> 
> Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
> ---
>  .../gtk+/gtk-update-icon-cache-native_3.4.4.bb     |    4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/meta/recipes-gnome/gtk+/gtk-update-icon-cache-native_3.4.4.bb b/meta/recipes-gnome/gtk+/gtk-update-icon-cache-native_3.4.4.bb
> index 93c30a7..73b7644 100644
> --- a/meta/recipes-gnome/gtk+/gtk-update-icon-cache-native_3.4.4.bb
> +++ b/meta/recipes-gnome/gtk+/gtk-update-icon-cache-native_3.4.4.bb
> @@ -40,4 +40,8 @@ do_compile() {
>  do_install() {
>  	install -d ${D}${bindir}
>          install -m 0755 ${B}/gtk-update-icon-cache ${D}${bindir}

^ can you fix indentation in this line, when you're changing this file?

Thanks

JaMa (who proposed to use consistent white-space for shell/python tasks
long time ago)

> +
> +	create_wrapper ${D}/${bindir}/gtk-update-icon-cache \
> +		GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/2.10.0/loaders.cache
> +
>  }
> -- 
> 1.7.9.5
> 
> 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Patch

diff --git a/meta/recipes-gnome/gtk+/gtk-update-icon-cache-native_3.4.4.bb b/meta/recipes-gnome/gtk+/gtk-update-icon-cache-native_3.4.4.bb
index 93c30a7..73b7644 100644
--- a/meta/recipes-gnome/gtk+/gtk-update-icon-cache-native_3.4.4.bb
+++ b/meta/recipes-gnome/gtk+/gtk-update-icon-cache-native_3.4.4.bb
@@ -40,4 +40,8 @@  do_compile() {
 do_install() {
 	install -d ${D}${bindir}
         install -m 0755 ${B}/gtk-update-icon-cache ${D}${bindir}
+
+	create_wrapper ${D}/${bindir}/gtk-update-icon-cache \
+		GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/2.10.0/loaders.cache
+
 }