diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2011-01-14 13:54:35 -0200 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2011-01-14 16:35:43 -0200 |
commit | eb888ab88687b6f5e0753836d118588cc39fc392 (patch) | |
tree | 6265ea222d2fb40539aceeebe0c5ebfe9f510d9a /recipes/dbus | |
parent | 819e1c13dc50ef3bf5d689ef25012a238781723d (diff) | |
download | openembedded-eb888ab88687b6f5e0753836d118588cc39fc392.tar.gz |
dbus: fix init script if $prefix is empty
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes/dbus')
-rw-r--r-- | recipes/dbus/dbus.inc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/recipes/dbus/dbus.inc b/recipes/dbus/dbus.inc index 73fc426933..86dc62b945 100644 --- a/recipes/dbus/dbus.inc +++ b/recipes/dbus/dbus.inc @@ -4,7 +4,7 @@ SECTION = "base" LICENSE = "GPLv2+ AFLv2.1" DEPENDS = "expat glib-2.0 virtual/libintl libsm libice virtual/libx11" -INC_PR = "r19" +INC_PR = "r20" SRC_URI = "\ http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz;name=dbus \ @@ -52,6 +52,11 @@ do_install_append() { install -d ${D}${libexecdir}/ install -m 0755 bus/.libs/dbus-daemon-launch-helper ${D}${libexecdir}/ fi + + # Handle case where prefix is empty + if [ -z "$prefix" ]; then + sed -i 's,/usr,,g' ${D}${sysconfdir}/init.d/dbus-1 + fi } RDEPENDS_${PN}-x11 = "${PN}" |