]> code.ossystems Code Review - openembedded-core.git/commitdiff
gnome-desktop: Fix python location on recent distros
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 2 Aug 2012 21:28:58 +0000 (21:28 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 2 Aug 2012 22:01:07 +0000 (23:01 +0100)
This fixes errors on distros with python as /bin/python of the form:

| error: Failed dependencies:
|  /bin/python is needed by gnome-desktop-2.32.1-r5.i586

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-gnome/gnome/gnome-desktop.inc

index 51933b23b482a66e7788d9e7dc7146c82de13b13..4687a7b1ca376d66f35dbbdb45241d05217c2336 100644 (file)
@@ -11,12 +11,13 @@ do_configure_prepend () {
 
 FILES_${PN} += "${datadir}/gnome-about ${datadir}/libgnome-desktop/pnp.ids"
 
-PR = "r5"
+PR = "r6"
 
 inherit gnome pkgconfig
 
 do_install_append () {
        sed -i -e's,${STAGING_BINDIR_NATIVE},${bindir},g' ${D}${bindir}/gnome-about
+       sed -i -e '1s,#!.*python,#! ${USRBINPATH}/env python,' ${D}${bindir}/gnome-about
 }