Skip to content

Make useradd-staticids.bbclass Python 3 compatible

Peter Kjellerstedt openembedded-core 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v11 patch 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2useradd-staticids.bbclass: Make sure opened files are closedmeta/classes/useradd-staticids.bbclass+17 -130 replies
2/2useradd-staticids.bbclass: Avoid FutureWarning about split()meta/classes/useradd-staticids.bbclass+2 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCHv2 0/2] Make useradd-staticids.bbclass Python 3 compatible

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(-)
Signature · 1 line
2.8.3