useradd.bbclass: remove hardcoded reference to /usr/bin
PATCH 1/1 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 <[email protected]>
--- meta/classes/useradd.bbclass | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
meta/classes/useradd.bbclass +2 -2
@@ -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
Signature · 1 line
1.7.4.1
Quoted 4 lines · Phil Blundell
Otherwise the class doesn't work if ${bindir} is set to a different value; likewise for /var vs ${localstatedir}.
Signed-off-by Phil Blundell <[email protected]>
Good find!
Signed-off-by Joshua Lock <[email protected]>
Quoted 19 lines
--- meta/classes/useradd.bbclass | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)meta/classes/useradd.bbclass +2
-2@@ -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
Signature · 3 lines
Joshua Lock
Yocto Project "Johannes factotum"
Intel Open Source Technology CentreRichard Purdie
AppliedQuoted 7 lines · Phil Blundell
Otherwise the class doesn't work if ${bindir} is set to a different value; likewise for /var vs ${localstatedir}.
Signed-off-by Phil Blundell <[email protected]>--- meta/classes/useradd.bbclass | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
Merged to master, thanks.
Richard