Bug 11135

Summary: irda-utils do_populate_lic warning indicates encoding handling issue
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Paul Eggleton <bluelightning>
Component: coreAssignee: Ross Burton <ross.burton>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher
Version: 2.2   
Target Milestone: 2.3 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Paul Eggleton 2017-03-07 21:33:15 UTC
If you build irda-utils with master you get the following warning:

WARNING: irda-utils-0.9.18-r0 do_populate_lic: Could not copy license file /home/paul/poky/poky/build/tmp/work/core2-64-poky-linux/irda-utils/0.9.18-r0/irda-utils-0.9.18/irdadump/irdadump.c to /home/paul/poky/poky/build/tmp/work/core2-64-poky-linux/irda-utils/0.9.18-r0/license-destdir/irda-utils/irdadump.c: 'utf-8' codec can't decode byte 0xf8 in position 874: invalid start byte

I'm not entirely sure why we need to be reading the file at this point to the extent that encoding would be an issue, but in any case we shouldn't be tripping up on files that aren't valid UTF-8.
Comment 1 Ross Burton 2017-03-08 14:22:23 UTC
It's because we're extracting the license section from the file.
Comment 2 Ross Burton 2017-03-14 10:13:46 UTC
Merged in oe-core b606e1430c36f1ad528fbfbbf9b8b6243390b879.