summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2011-09-01 16:03:52 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-02 18:36:20 +0100
commit050e43a57fc06fcb352adef7e24765106a995e5c (patch)
tree6c7c344ad744a4559f4e045fd636486fef5cfa55 /meta/classes
parentc04ae9bf71920c6ea2315dc87b9250bb2f6560b3 (diff)
downloadpoky-050e43a57fc06fcb352adef7e24765106a995e5c.tar.gz
useradd.bbclass: remove hardcoded reference to /usr/bin
Otherwise the class doesn't work if ${bindir} is set to a different value; likewise for /var vs ${localstatedir}. (From OE-Core rev: 21371df16917cd82642b39763793783d61ee5516) Signed-off-by: Phil Blundell <philb@gnu.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/useradd.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass
index ba8d8dc8f6..5f5b68ddd0 100644
--- a/meta/classes/useradd.bbclass
+++ b/meta/classes/useradd.bbclass
@@ -74,8 +74,8 @@ fi
74} 74}
75 75
76useradd_sysroot () { 76useradd_sysroot () {
77 export PSEUDO="${STAGING_DIR_NATIVE}/usr/bin/pseudo" 77 export PSEUDO="${STAGING_DIR_NATIVE}${bindir}/pseudo"
78 export PSEUDO_LOCALSTATEDIR="${STAGING_DIR_TARGET}/var/pseudo" 78 export PSEUDO_LOCALSTATEDIR="${STAGING_DIR_TARGET}${localstatedir}/pseudo"
79 79
80 # Explicitly set $D since it isn't set to anything 80 # Explicitly set $D since it isn't set to anything
81 # before do_install 81 # before do_install