diff options
author | Scott Garman <scott.a.garman@intel.com> | 2011-11-08 18:40:28 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-01-30 16:38:15 +0000 |
commit | 9dc2193d31cabded88ebcf1805694769cf3d97dc (patch) | |
tree | 165355f1326654b9056cb4f948b53ad98d13c4c9 /meta/classes | |
parent | 403d5e0b7dd0d124d3b7e0540a67e4da17694c21 (diff) | |
download | poky-9dc2193d31cabded88ebcf1805694769cf3d97dc.tar.gz |
useradd.bbclass: do not modify -nativesdk packages
Exclude the addition of user/group code and RDEPENDS changes for
-nativesdk packages.
(From OE-Core rev: 2f057dd905ccb497890ce73ac4e4c256edcf0351)
(From OE-Core rev: 9acbe80fea3dbd5405030c95d8b6d411689c4911)
Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/useradd.bbclass | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass index 3b2d1dbfe8..64d6861644 100644 --- a/meta/classes/useradd.bbclass +++ b/meta/classes/useradd.bbclass | |||
@@ -153,10 +153,11 @@ fakeroot python populate_packages_prepend () { | |||
153 | rdepends = d.getVar("RDEPENDS_%s" % pkg, True) or "" | 153 | rdepends = d.getVar("RDEPENDS_%s" % pkg, True) or "" |
154 | rdepends += " base-passwd shadow" | 154 | rdepends += " base-passwd shadow" |
155 | bb.data.setVar("RDEPENDS_%s" % pkg, rdepends, d) | 155 | bb.data.setVar("RDEPENDS_%s" % pkg, rdepends, d) |
156 | 156 | ||
157 | # Add the user/group preinstall scripts and RDEPENDS requirements | 157 | # Add the user/group preinstall scripts and RDEPENDS requirements |
158 | # to packages specified by USERADD_PACKAGES | 158 | # to packages specified by USERADD_PACKAGES |
159 | useradd_packages = d.getVar('USERADD_PACKAGES', True) or "" | 159 | if not bb.data.inherits_class('nativesdk', d): |
160 | for pkg in useradd_packages.split(): | 160 | useradd_packages = d.getVar('USERADD_PACKAGES', True) or "" |
161 | update_useradd_package(pkg) | 161 | for pkg in useradd_packages.split(): |
162 | update_useradd_package(pkg) | ||
162 | } | 163 | } |