diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-20 11:17:05 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-02 08:24:00 +0100 |
commit | a7309d5790f5dac46e84d3c14959943eb2496fda (patch) | |
tree | 48e1fcb886b8ef2974bade09694356f3230fb8a8 /meta/recipes-graphics/xorg-xserver | |
parent | 297438e965053b2eb56cc8ef3e59465642f10a24 (diff) | |
download | poky-a7309d5790f5dac46e84d3c14959943eb2496fda.tar.gz |
classes/lib: Update to use python3 command pipeline decoding
In python3, strings are unicode by default. We need to encode/decode
from command pipelines and other places where we interface with the
real world using the correct locales. This patch updates various
call sites to use the correct encoding/decodings.
(From OE-Core rev: bb4685af1bffe17b3aa92a6d21398f38a44ea874)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/xorg-xserver')
-rw-r--r-- | meta/recipes-graphics/xorg-xserver/xserver-xorg.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xorg.inc b/meta/recipes-graphics/xorg-xserver/xserver-xorg.inc index 30307bc86d..371c279a16 100644 --- a/meta/recipes-graphics/xorg-xserver/xserver-xorg.inc +++ b/meta/recipes-graphics/xorg-xserver/xserver-xorg.inc | |||
@@ -168,9 +168,10 @@ python populate_packages_prepend() { | |||
168 | } | 168 | } |
169 | p = subprocess.Popen(args="pkg-config --variable=%s xorg-server" % abis[name], | 169 | p = subprocess.Popen(args="pkg-config --variable=%s xorg-server" % abis[name], |
170 | shell=True, env=newenv, stdout=subprocess.PIPE) | 170 | shell=True, env=newenv, stdout=subprocess.PIPE) |
171 | output = p.communicate()[0] | 171 | stdout, stderr = p.communicate() |
172 | output = stdout.decode("utf-8").split(".")[0] | ||
172 | mlprefix = d.getVar('MLPREFIX', True) or '' | 173 | mlprefix = d.getVar('MLPREFIX', True) or '' |
173 | return "%sxorg-abi-%s-%s" % (mlprefix, name, output.split(".")[0]) | 174 | return "%sxorg-abi-%s-%s" % (mlprefix, name, output) |
174 | 175 | ||
175 | pn = d.getVar("PN", True) | 176 | pn = d.getVar("PN", True) |
176 | d.appendVar("RPROVIDES_" + pn, " " + get_abi("input")) | 177 | d.appendVar("RPROVIDES_" + pn, " " + get_abi("input")) |