* [PATCH 0/1] useradd.bbclass: add missing functions to preinst
@ 2013-08-16 2:10 Qi.Chen
2013-08-16 2:10 ` [PATCH 1/1] " Qi.Chen
0 siblings, 1 reply; 2+ messages in thread
From: Qi.Chen @ 2013-08-16 2:10 UTC (permalink / raw)
To: openembedded-core; +Cc: Zhangle.Yang
From: Chen Qi <Qi.Chen@windriver.com>
The following changes since commit 16d522bcd1f1b7741577fa31fab7e2129da0cae9:
maintainers.inc: reassign maintainers, remove obsolete recipes (2013-08-12 13:13:05 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib ChenQi/useradd-add-missing-funcs
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/useradd-add-missing-funcs
Chen Qi (1):
useradd.bbclass: add missing functions to preinst
meta/classes/useradd.bbclass | 3 +++
1 file changed, 3 insertions(+)
--
1.7.9.5
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] useradd.bbclass: add missing functions to preinst
2013-08-16 2:10 [PATCH 0/1] useradd.bbclass: add missing functions to preinst Qi.Chen
@ 2013-08-16 2:10 ` Qi.Chen
0 siblings, 0 replies; 2+ messages in thread
From: Qi.Chen @ 2013-08-16 2:10 UTC (permalink / raw)
To: openembedded-core; +Cc: Zhangle.Yang
From: Chen Qi <Qi.Chen@windriver.com>
The preinst scripts are calling bbnote, bbwarn and bbfatal functions,
but these functions are not written to the preinst scripts.
This patch writes these missing functions to the preinst scripts to
avoid the 'not found' errors.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
meta/classes/useradd.bbclass | 3 +++
1 file changed, 3 insertions(+)
diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass
index 21daae8..eabfc5d 100644
--- a/meta/classes/useradd.bbclass
+++ b/meta/classes/useradd.bbclass
@@ -168,6 +168,9 @@ fakeroot python populate_packages_prepend () {
preinst = d.getVar('pkg_preinst_%s' % pkg, True) or d.getVar('pkg_preinst', True)
if not preinst:
preinst = '#!/bin/sh\n'
+ preinst += 'bbnote () {\n%s}\n' % d.getVar('bbnote', True)
+ preinst += 'bbwarn () {\n%s}\n' % d.getVar('bbwarn', True)
+ preinst += 'bbfatal () {\n%s}\n' % d.getVar('bbfatal', True)
preinst += 'perform_groupadd () {\n%s}\n' % d.getVar('perform_groupadd', True)
preinst += 'perform_useradd () {\n%s}\n' % d.getVar('perform_useradd', True)
preinst += 'perform_groupmems () {\n%s}\n' % d.getVar('perform_groupmems', True)
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-08-16 2:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-16 2:10 [PATCH 0/1] useradd.bbclass: add missing functions to preinst Qi.Chen
2013-08-16 2:10 ` [PATCH 1/1] " Qi.Chen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox