Skip to contentSkip to conversation

gnome-desktop: Fix python location on recent distros

PATCH New Richard Purdie 1 participant 1 message Aug 2, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gnome-desktop: Fix python location on recent distros

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

---

meta/recipes-gnome/gnome/gnome-desktop.inc +2 -1
index 51933b2..4687a7b 100644
@@ -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
 }