Bug 3174

Summary: QA warning building nativesdk-ncurses
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Paul Eggleton <bluelightning>
Component: devtools / tool chainAssignee: Radu Moisan <radu.moisan>
Status: RESOLVED DUPLICATE QA Contact:
Severity: minor    
Priority: Medium CC: jessica.zhang, meta.mr.watcher, meta.watcher, radu.moisan, sgw
Version: 1.3   
Target Milestone: 1.3   
Hardware: x86   
OS: Multiple   
Whiteboard: in review
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Paul Eggleton 2012-09-26 10:27:49 UTC
When building meta-toolchain I noticed we get the following QA warning:

WARNING: QA Issue: nativesdk-ncurses: Files/directories were installed but not shipped
  /opt/poky/1.2+snapshot/sysroots/i686-pokysdk-linux/usr/bin/reset.ncurses
  /opt/poky/1.2+snapshot/sysroots/i686-pokysdk-linux/usr/bin/clear.ncurses

I'm not sure if we also get these in the non-nativesdk case, but either way we ought to fix them.
Comment 1 Radu Moisan 2012-10-01 08:04:52 UTC
the check in package.bbclass seems legit, I'll look into ncurses.
Comment 2 Radu Moisan 2012-10-03 08:56:23 UTC
While processing nativesdk-ncurses the warning is thrown because FILE_nativesdk-ncurses-tools contains references to 

/opt/poky/1.2+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/clear
/opt/poky/1.2+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/reset

while in ${PKGD} I found

/opt/poky/1.2+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/clear.ncurses
/opt/poky/1.2+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/reset.ncurses

At a first look the problem seems to be with FILE_nativesdk-ncurses-tools which should have the binaries appended with ".${BPN}" but for some reason they are not.
Comment 3 Radu Moisan 2012-10-03 09:30:16 UTC
Found the problem:
${PN} = nativesdk-ncurses

so the evaluation of

${@['', '.${BPN\x7d'][d.getVar('PN', 1) == 'ncurses']} is the empty string which explains the missing append .${BPN} 

One quick fix, I guess, it could be to add 

INSANE_SKIP_nativesdk-${BPN}-tools = "installed_vs_shipped"
Comment 4 Radu Moisan 2012-10-03 09:41:13 UTC
Correction:

INSANE_SKIP_nativesdk-${BPN} = "installed_vs_shipped"
Comment 5 Saul Wold 2012-11-02 09:09:49 UTC
Fixed by Robert via a different bug #

*** This bug has been marked as a duplicate of bug 3325 ***