Bug 9550

Summary: Resolve string formatting issues in stat
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Joshua Lock <joshuagloe>
Component: coreAssignee: Plauchu Edwin <edwin.plauchu.camacho>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: elena.reshetova, leonardo.sandoval.gonzalez, meta.mr.watcher, meta.watcher, ross.burton
Version: 2.2   
Target Milestone: 2.2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Joshua Lock 2016-04-28 10:48:04 UTC
stat fails to compile with compiler flags which elevate common string formatting issues into an error (-Wformat -Wformat-security -Werror=format-security).
Comment 1 Plauchu Edwin 2016-05-06 16:24:33 UTC
is it stat of busybox ?
Comment 2 Joshua Lock 2016-05-09 09:48:47 UTC
No,(In reply to comment #1)
> is it stat of busybox ?

No, it's stat_3.3.bb in meta/recipes-extended/stat/
Comment 3 Leonardo Sandoval Gonzalez 2016-05-09 23:40:55 UTC
(In reply to comment #1)
> is it stat of busybox ?

Edwin,

Take a look a this bug: 

  https://bugzilla.yoctoproject.org/show_bug.cgi?id=9488


One way patch the repo is  with this

  curl http://patchwork.openembedded.org/patch/121119/mbox/ | git am

ALSO, and comment out 

  SECURITY_STRINGFORMAT_pn-gcc = "" 

then Change your DISTRO to "poky-lsb" on local.conf.

And launch a build. You should see warnings as mentioned on 9488.
Comment 4 Plauchu Edwin 2016-05-16 20:44:30 UTC
Patch created at
http://lists.openembedded.org/pipermail/openembedded-core/2016-May/121570.html
Comment 6 Plauchu Edwin 2016-05-17 02:16:44 UTC
This is the version with fputs calls
http://lists.openembedded.org/pipermail/openembedded-core/2016-May/121584.html
Comment 7 Plauchu Edwin 2016-05-17 17:03:34 UTC
Patch version 2 was created at http://lists.openembedded.org/pipermail/openembedded-core/2016-May/121630.html
Comment 8 Plauchu Edwin 2016-05-17 19:28:55 UTC
Patch version 3 at
http://lists.openembedded.org/pipermail/openembedded-core/2016-May/121639.html
Comment 9 Ross Burton 2016-05-19 15:22:08 UTC
Fixed in oe-core f03c1f41933e9997a01a8b1dcdf9fb18579de1d1.