]> code.ossystems Code Review - openembedded-core.git/commitdiff
sudo: fixed wrong `chmod` path
authorMihai Lindner <mihaix.lindner@linux.intel.com>
Sun, 20 May 2012 13:17:32 +0000 (13:17 +0000)
committerScott Garman <scott.a.garman@intel.com>
Tue, 12 Jun 2012 20:29:29 +0000 (13:29 -0700)
Placed $D between braces ${D} to be correctly expanded to the
workdir path, instead of a path relative to host rootfs.
Currently, bitbake sudo fails on host systems where sudo is not
installed.

Signed-off-by: Mihai Lindner <mihaix.lindner@linux.intel.com>
meta/recipes-extended/sudo/sudo_1.8.4p4.bb

index 23153223c7bee63bb09bdf0ada2fd165fc8409b8..20c4a14b3ce1358e2d2946ef9dffe7c9e3dd4e4a 100644 (file)
@@ -1,6 +1,6 @@
 require sudo.inc
 
-PR = "r0"
+PR = "r1"
 
 SRC_URI = "http://ftp.sudo.ws/sudo/dist/sudo-${PV}.tar.gz \
            file://libtool.patch \
@@ -24,6 +24,6 @@ do_install_append () {
                fi
        done
 
-       chmod 4111 $D/usr/bin/sudo
-       chmod 0440 $D/etc/sudoers
+       chmod 4111 ${D}/usr/bin/sudo
+       chmod 0440 ${D}/etc/sudoers
 }