| Summary: |
devtool: output from recipetool breaks 'add' for some remote sources |
| Product: |
[Build System, Metadata & Runtime] OE-Core
|
Reporter: |
Stephano Cetola <stephano> |
| Component: |
Scripts and Tools | Assignee: |
Stephano Cetola <stephano> |
| Status: |
VERIFIED
FIXED
|
QA Contact: |
Juan Ramos <juan.fernandox.ramos.frayle> |
| Severity: |
major
|
|
|
| Priority: |
High
|
CC: |
bluelightning, jose.perez.carranza, ross.burton
|
| Version: |
2.2 | |
|
| Target Milestone: |
2.3 M1 | |
|
| Hardware: |
x86 | |
|
| OS: |
Multiple | |
|
| Whiteboard: |
|
|
OS type for building Yocto:
|
---
|
Type of Regression:
|
Regression (Used to work)
|
|
Verified:
|
|
Documentation change:
|
No (bug/feature does not impact docs)
|
Introduced in 452a1133ddadfb0750e930843d0e284185fca17c Since adding the "watch=True" to exec_build_env_command, devtool add is now throwing a UnicodeDecodeError for all remote sources which cause fetcher to use wget (tarballs, binary packages, etc). The exception is thrown here: devtool/__init__.py: 73 out = out.decode('utf-8') devtool is outputting characters like these [â]: HTTP request sent, awaiting response... 200 OK Length: 164035 (160K) [application/x-bzip2] Saving to: â/poky_sdk/downloads/xclock-1.0.7.tar.bz2â I believe that these âs are UTF-8 quotes (U+2018 and 2019) that are unable to display properly. My terminal is setup to display UTF-8 properly, and does so if I run wget directly. I've reproduced this on multiple machines, including one Debian VM with a very minimal setup, by simply running: devtool add http://ftp.x.org/pub/individual/app/xclock-1.0.7.tar.bz2 exec_build_env_command sources oe-init-build-env and then runs (in this case a call to recipetool) through the script command so that bitbake will think it is outputting to a terminal. Something may be getting lost here.