<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/poky.git/meta/classes/useradd.bbclass, branch python3</title>
<subtitle>Mirror of git.yoctoproject.org/poky</subtitle>
<id>https://git.enea.com/cgit/linux/poky.git/atom?h=python3</id>
<link rel='self' href='https://git.enea.com/cgit/linux/poky.git/atom?h=python3'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/'/>
<updated>2016-04-06T21:57:25+00:00</updated>
<entry>
<title>useradd.bbclass: remove user/group created by the package in clean* task</title>
<updated>2016-04-06T21:57:25+00:00</updated>
<author>
<name>Maxin B. John</name>
<email>maxin.john@intel.com</email>
</author>
<published>2016-04-06T09:20:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=cbe33ecb15f71737354184cd9f3b7507ab97b2e4'/>
<id>urn:sha1:cbe33ecb15f71737354184cd9f3b7507ab97b2e4</id>
<content type='text'>
At present, if a recipe is built which creates users/groups via
useradd.bbclass, those users/groups are not removed from sysroot
when the recipe/package is cleaned using clean/cleansstate/cleanall
or when a recipe is rebuild and 'unstaged' from the the sysroot.

The "userdel_sysroot_sstate()" provides that functionality.

[YOCTO #9262]

(From OE-Core rev: b5304ce438666a7418746f4ddd32703ae3188089)

Signed-off-by: Maxin B. John &lt;maxin.john@intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>useradd_base.bbclass: replace retry logic with flock</title>
<updated>2016-03-20T23:12:27+00:00</updated>
<author>
<name>Kai Kang</name>
<email>kai.kang@windriver.com</email>
</author>
<published>2016-02-29T09:19:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=57a525ca7271a8fe3913c61aa87cb0ba1674b4b2'/>
<id>urn:sha1:57a525ca7271a8fe3913c61aa87cb0ba1674b4b2</id>
<content type='text'>
When perform useradd during populate sysroot, it locks files passwd.lock
and group.lock at same time. And then it meets a dead lock issue
randomly.

Use flock to reslove it by using an universal lock directory for all the
user and group related operations.

[YOCTO #9022]

(From OE-Core rev: 2ebf697b46c42cee8bfa6d2e6087397f8cce385c)

Signed-off-by: Kai Kang &lt;kai.kang@windriver.com&gt;
Signed-off-by: Ross Burton &lt;ross.burton@intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>classes/useradd: handle whitespace only USERADD/GROUPADD/GROUPMEMS</title>
<updated>2016-02-11T12:27:44+00:00</updated>
<author>
<name>Maciej Borzecki</name>
<email>maciej.borzecki@open-rnd.pl</email>
</author>
<published>2016-02-10T12:32:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=9909104c673c9e9388d78d5fbe1ab9c9c421737c'/>
<id>urn:sha1:9909104c673c9e9388d78d5fbe1ab9c9c421737c</id>
<content type='text'>
Useradd attempts to add users/groups even when
{USERADD,GROUPADD,GROUPMEMS}_PARAM is whitespace only. This scenario is
possible when variables and modified using one of +=, =+ operator, yet
the content being added is conditional (i.e. may depend on PACKAGECONFIG
flags).

(From OE-Core rev: 466288d528cce5f9887d765a757af64c9cc6be03)

Signed-off-by: Maciej Borzecki &lt;maciej.borzecki@open-rnd.pl&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>classes/useradd: don't read bbnote/bbwarn/bbfatal values</title>
<updated>2015-07-16T14:09:23+00:00</updated>
<author>
<name>Paul Eggleton</name>
<email>paul.eggleton@linux.intel.com</email>
</author>
<published>2015-07-13T14:26:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=546bfe8069cfaffd970ba4f6d7fc29fa8070f319'/>
<id>urn:sha1:546bfe8069cfaffd970ba4f6d7fc29fa8070f319</id>
<content type='text'>
Since these functions now log through BitBake's message logging system
we must have standalone implementations here.

(From OE-Core rev: dd7449114a33c92a2877b1a6f875d812b10856ff)

Signed-off-by: Paul Eggleton &lt;paul.eggleton@linux.intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>meta: Add explict getVar param for (non) expansion</title>
<updated>2015-06-23T10:57:25+00:00</updated>
<author>
<name>Richard Purdie</name>
<email>richard.purdie@linuxfoundation.org</email>
</author>
<published>2015-06-18T14:14:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=86d30d756a60d181a95cf07041920a367a0cd0ba'/>
<id>urn:sha1:86d30d756a60d181a95cf07041920a367a0cd0ba</id>
<content type='text'>
Rather than just use d.getVar(X), use the more explict d.getVar(X, False)
since at some point in the future, having the default of expansion would
be nice. This is the first step towards that.

This patch was mostly made using the command:

sed -e 's:\(getVar([^,()]*\)\s*):\1, False):g' -i `grep -ril getVar *`

(From OE-Core rev: ab7c1d239b122c8e549e8112c88fd46c9e2b061b)

Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>useradd.bbclass: Remove base-passwd dependency</title>
<updated>2015-05-16T21:31:51+00:00</updated>
<author>
<name>Leonardo Sandoval</name>
<email>leonardo.sandoval.gonzalez@linux.intel.com</email>
</author>
<published>2015-05-14T07:03:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=5d426794f9a9d3ca4ffd21b0c5a300e3daeef4b9'/>
<id>urn:sha1:5d426794f9a9d3ca4ffd21b0c5a300e3daeef4b9</id>
<content type='text'>
shadow-sysroot (another useradd dependency) recipe already includes
base-passwd dependency, so removing it from useradd class.

This fixes the compilation issue observed when a recipe depends
on another where the latter inherits from useradd as in the
following scenario:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=7724#c0

[Yocto #7724]

(From OE-Core rev: a68a797c7aec607a0720ec5421baf6be821803b8)

Signed-off-by: Leonardo Sandoval &lt;leonardo.sandoval.gonzalez@linux.intel.com&gt;
Signed-off-by: Ross Burton &lt;ross.burton@intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>useradd.bbclass: avoid do_rootfs error for debian package backend</title>
<updated>2015-02-17T22:35:03+00:00</updated>
<author>
<name>Chen Qi</name>
<email>Qi.Chen@windriver.com</email>
</author>
<published>2015-02-17T02:08:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=9973ce1703e28242e58068ca2f764f3980a57922'/>
<id>urn:sha1:9973ce1703e28242e58068ca2f764f3980a57922</id>
<content type='text'>
If /etc/login.defs is treated as a configuration file, then we would meet
errors at do_rootfs time telling us that useradd/groupadd cannot execute
correctly.

This is because the dpkg handles config file specially, the login.defs
is temporarily renamed as login.defs.dpkg-new.

How ubuntu deals the user/group adding problem? They do it at postinst of the
package. And, the postinst script of a package would possibly do `chown' of
its files or directories.

The above strategy is not suitable for OE. Because we do chown in do_install
and add user/group in preinst scripts of the packages.

That's why we need this patch so that do_rootfs don't fail.

(From OE-Core rev: d98e5ec575f542b3afaabd96b07ae9a21e1c22f4)

Signed-off-by: Chen Qi &lt;Qi.Chen@windriver.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>useradd.bbclass: set PSEUDO_PASSWD consistent with root directory</title>
<updated>2014-11-25T13:03:30+00:00</updated>
<author>
<name>Peter A. Bigot</name>
<email>pab@pabigot.com</email>
</author>
<published>2014-11-15T19:53:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=f363c2087d85f7368a6442fa7baced74781cc6c0'/>
<id>urn:sha1:f363c2087d85f7368a6442fa7baced74781cc6c0</id>
<content type='text'>
When installing into a sysroot this class examines $D/etc/passwd for
content, then invokes useradd to make changes.  Under pseudo useradd
attempts to look up user information in directories specified by
$PSEUDO_PASSWD.  For opkg multilib installs $D is not always the same as
$IMAGE_ROOT, and the user might already be in the IMAGE_ROOT files,
causing a failure during rootfs population.

Fix this by ensuring the files pseudo looks at when doing useradd stuff
are the same ones that useradd.bbclass will be manipulating.

(From OE-Core rev: ec3417ad825c52f5137d38b91d8fcb4637a50f4c)

Signed-off-by: Peter A. Bigot &lt;pab@pabigot.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>useradd: Add setscene dep on pseudo-native</title>
<updated>2014-08-29T22:44:37+00:00</updated>
<author>
<name>Jate Sujjavanich</name>
<email>jatedev@gmail.com</email>
</author>
<published>2014-08-10T21:00:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=d8f60bb81c2d9136a85023e59db9139c712d0135'/>
<id>urn:sha1:d8f60bb81c2d9136a85023e59db9139c712d0135</id>
<content type='text'>
A recipe will sometimes be rebuilt unnecessarily if it adds users via
useradd and the pseudo-native task has not been populated.

This patch adds the correct dependency.

(From OE-Core rev: 2bb244e9e18124b3b86195e0e10b2ebd40cd4f81)

Signed-off-by: Jate Sujjavanich &lt;jatedev@gmail.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>update-rc.d/useradd: Add additional dependecies</title>
<updated>2014-06-06T09:25:40+00:00</updated>
<author>
<name>Saul Wold</name>
<email>sgw@linux.intel.com</email>
</author>
<published>2014-06-06T00:09:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=f39d8765b1233219a36331975a248b2cd008abdf'/>
<id>urn:sha1:f39d8765b1233219a36331975a248b2cd008abdf</id>
<content type='text'>
These dependcies are needed to ensure that thier packages are created
correctly since these classes have runtime dependiences in their packages
but they are not actually created yet at rootfs time.

[YOCTO #6072]

(From OE-Core rev: bba835fed88c3bd5bb5bd58962034aef57c408d8)

Signed-off-by: Saul Wold &lt;sgw@linux.intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
</feed>
