Bug 9710

Summary: busybox od does not accept POSIX options
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Jean Parpaillon <jean.parpaillon>
Component: meta-yoctoAssignee: Stephano Cetola <stephano>
Status: RESOLVED INVALID QA Contact:
Severity: major    
Priority: Undecided CC: poky.bs.watcher, poky.watcher, randy.macleod, ross.burton, stephano
Version: 2.1   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Jean Parpaillon 2016-06-06 08:01:56 UTC
'od' command provided in base poky environment is not fully POSIX compliant. In particular:
'-t TYPE': hexa output is specified with '-X' instead of '-t x'
'-N NUMBER' is not supported
Comment 1 Stephano Cetola 2016-06-09 15:02:13 UTC
Poky doesn't aim to be POSIX compliant. The workaround here would be to install coreutils which contains GNU od.
Comment 2 Jean Parpaillon 2016-06-09 15:03:57 UTC
I understand it does not 'aim to' but is there any valid reason for it not to be, while busybox does ?
Comment 3 Ross Burton 2016-06-09 15:14:51 UTC
So it looks like busybox ships with two versions of od: od.c (6k source) or od_bloaty.c (36k source).

If you desperately need full od then it's trivial to enable od_bloaty (enable CONFIG_DESKTOP or use coreutils.  An alternative would be to demonstrate that enabling CONFIG_DESKTOP doesn't cause too much of an impact.
Comment 4 Jean Parpaillon 2016-06-09 15:16:24 UTC
Ok, got it.
Thanks for your answer :)