[OE-core] [PATCHv2 0/2] Make useradd-staticids.bbclass Python 3 compatible

Peter Kjellerstedt peter.kjellerstedt at axis.com
Fri Jun 10 15:46:09 UTC 2016


Avoid warnings with Python 3 due to files that are not closed in
useradd-staticids.bbclass.

PATCHv2: Also avoid a FutureWarning about split() requiring a
non-empty pattern. It occured for every recipe that inherited useradd
(with useradd-staticids enabled), but with no context at all. It also
did not end up in the tmp/log/cooker log...

//Peter

The following changes since commit 40e789d1fee7f0df2d23230fff38325119ad2935:

  bitbake: lib/bb/main.py: Fix use of BBPOSTCONF and BBPRECONF (2016-06-09 18:00:58 +0100)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib pkj/useradd-staticids-py3
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=pkj/useradd-staticids-py3

Peter Kjellerstedt (2):
  useradd-staticids.bbclass: Make sure opened files are closed
  useradd-staticids.bbclass: Avoid FutureWarning about split()

 meta/classes/useradd-staticids.bbclass | 34 +++++++++++++++++++---------------
 1 file changed, 19 insertions(+), 15 deletions(-)

-- 
2.8.3



More information about the Openembedded-core mailing list