[oe-commits] Phil Blundell : useradd.bbclass: remove hardcoded reference to /usr/bin

git version control git at git.openembedded.org
Fri Sep 2 17:30:54 UTC 2011


Module: openembedded-core.git
Branch: master
Commit: 21371df16917cd82642b39763793783d61ee5516
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=21371df16917cd82642b39763793783d61ee5516

Author: Phil Blundell <philb at gnu.org>
Date:   Thu Sep  1 16:03:52 2011 +0100

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}.

Signed-off-by: Phil Blundell <philb at gnu.org>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/useradd.bbclass |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass
index ba8d8dc..5f5b68d 100644
--- a/meta/classes/useradd.bbclass
+++ b/meta/classes/useradd.bbclass
@@ -74,8 +74,8 @@ fi
 }
 
 useradd_sysroot () {
-	export PSEUDO="${STAGING_DIR_NATIVE}/usr/bin/pseudo"
-	export PSEUDO_LOCALSTATEDIR="${STAGING_DIR_TARGET}/var/pseudo"
+	export PSEUDO="${STAGING_DIR_NATIVE}${bindir}/pseudo"
+	export PSEUDO_LOCALSTATEDIR="${STAGING_DIR_TARGET}${localstatedir}/pseudo"
 
 	# Explicitly set $D since it isn't set to anything
 	# before do_install





More information about the Openembedded-commits mailing list