From: Otavio Salvador Date: Fri, 14 Jan 2011 15:54:35 +0000 (-0200) Subject: dbus: fix init script if $prefix is empty X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb888ab88687b6f5e0753836d118588cc39fc392;p=openembedded.git dbus: fix init script if $prefix is empty Signed-off-by: Otavio Salvador --- 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}"