* [PATCH 0/2] sstate.bbclass: sstate_hardcode_path(): fix for multilib
@ 2017-10-23 2:56 Robert Yang
2017-10-23 2:56 ` [PATCH 1/2] useradd.bbclass: print a warn when useradd not found Robert Yang
2017-10-23 2:56 ` [PATCH 2/2] sstate.bbclass: sstate_hardcode_path(): fix for multilib Robert Yang
0 siblings, 2 replies; 3+ messages in thread
From: Robert Yang @ 2017-10-23 2:56 UTC (permalink / raw)
To: openembedded-core
The following changes since commit 3b413a80578caacd9a7f405f3c51a3921d78a60d:
README.qemu: qemuppc64 is not supported (2017-10-16 23:54:27 +0100)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib rbt/2ssfixes
http://cgit.openembedded.org/openembedded-core-contrib/log/?h=rbt/2ssfixes
Robert Yang (2):
useradd.bbclass: print a warn when useradd not found
sstate.bbclass: sstate_hardcode_path(): fix for multilib
meta/classes/sstate.bbclass | 6 +++---
meta/classes/useradd.bbclass | 1 +
2 files changed, 4 insertions(+), 3 deletions(-)
--
2.7.4
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] useradd.bbclass: print a warn when useradd not found
2017-10-23 2:56 [PATCH 0/2] sstate.bbclass: sstate_hardcode_path(): fix for multilib Robert Yang
@ 2017-10-23 2:56 ` Robert Yang
2017-10-23 2:56 ` [PATCH 2/2] sstate.bbclass: sstate_hardcode_path(): fix for multilib Robert Yang
1 sibling, 0 replies; 3+ messages in thread
From: Robert Yang @ 2017-10-23 2:56 UTC (permalink / raw)
To: openembedded-core
Exit quietly makes it very hard for debugging when user is not added as
expected, print a warning helps a lot.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
meta/classes/useradd.bbclass | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass
index c9103cb..124becd 100644
--- a/meta/classes/useradd.bbclass
+++ b/meta/classes/useradd.bbclass
@@ -118,6 +118,7 @@ useradd_sysroot () {
# useradd/groupadd tools are unavailable. If there is no dependency, we assume we don't want to
# create users in the sysroot
if ! command -v useradd; then
+ bbwarn "command useradd not found!"
exit 0
fi
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] sstate.bbclass: sstate_hardcode_path(): fix for multilib
2017-10-23 2:56 [PATCH 0/2] sstate.bbclass: sstate_hardcode_path(): fix for multilib Robert Yang
2017-10-23 2:56 ` [PATCH 1/2] useradd.bbclass: print a warn when useradd not found Robert Yang
@ 2017-10-23 2:56 ` Robert Yang
1 sibling, 0 replies; 3+ messages in thread
From: Robert Yang @ 2017-10-23 2:56 UTC (permalink / raw)
To: openembedded-core
It only substituted staging_target for target recipe which didn't work
for multilib, for example, postinst-useradd-lib32-polkit:
* No multilib:
PATH=/path/to/tmp-glibc/work/core2-64-wrs-linux/polkit/0.113-r0/recipe-sysroot-native/bin
It would be substituted to:
FIXMESTAGINGDIRTARGET-native/bin
Not the funny "-native/bin", this works well.
* When multilib:
PATH=/path/to/tmp-glibc/work/core2-32-wrsmllib32-linux/lib32-polkit/0.113-r0/recipe-sysroot-native/bin
Now staging_target endswith "/lib32-recipe-sysroot", so it can't
replace '/recipe-sysroot-native', there would be build errors when
building multilib + rm_work, for example:
chown: invalid user: ‘polkitd:root’
Substitute staging_host for target recipe can fix the problem, now all
of native, cross and target need substitute staging_host, so we can
simply the code a little.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
meta/classes/sstate.bbclass | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index e30fbe1..314a14d 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -538,15 +538,15 @@ python sstate_hardcode_path () {
staging_host = d.getVar('RECIPE_SYSROOT_NATIVE')
sstate_builddir = d.getVar('SSTATE_BUILDDIR')
+ sstate_sed_cmd = "sed -i -e 's:%s:FIXMESTAGINGDIRHOST:g'" % staging_host
if bb.data.inherits_class('native', d) or bb.data.inherits_class('cross-canadian', d):
sstate_grep_cmd = "grep -l -e '%s'" % (staging_host)
- sstate_sed_cmd = "sed -i -e 's:%s:FIXMESTAGINGDIRHOST:g'" % (staging_host)
elif bb.data.inherits_class('cross', d) or bb.data.inherits_class('crosssdk', d):
sstate_grep_cmd = "grep -l -e '%s' -e '%s'" % (staging_target, staging_host)
- sstate_sed_cmd = "sed -i -e 's:%s:FIXMESTAGINGDIRTARGET:g; s:%s:FIXMESTAGINGDIRHOST:g'" % (staging_target, staging_host)
+ sstate_sed_cmd += " -e 's:%s:FIXMESTAGINGDIRTARGET:g'" % staging_target
else:
sstate_grep_cmd = "grep -l -e '%s'" % (staging_target)
- sstate_sed_cmd = "sed -i -e 's:%s:FIXMESTAGINGDIRTARGET:g'" % (staging_target)
+ sstate_sed_cmd += " -e 's:%s:FIXMESTAGINGDIRTARGET:g'" % staging_target
extra_staging_fixmes = d.getVar('EXTRA_STAGING_FIXMES') or ''
for fixmevar in extra_staging_fixmes.split():
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-10-23 2:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-23 2:56 [PATCH 0/2] sstate.bbclass: sstate_hardcode_path(): fix for multilib Robert Yang
2017-10-23 2:56 ` [PATCH 1/2] useradd.bbclass: print a warn when useradd not found Robert Yang
2017-10-23 2:56 ` [PATCH 2/2] sstate.bbclass: sstate_hardcode_path(): fix for multilib Robert Yang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox