Bug 3174 - QA warning building nativesdk-ncurses
Summary: QA warning building nativesdk-ncurses
Status: RESOLVED DUPLICATE of bug 3325
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 1.3
Hardware: x86 Multiple
: Medium minor
Target Milestone: 1.3
Assignee: Radu Moisan
QA Contact:
URL:
Whiteboard: in review
Depends on:
Blocks:
 
Reported: 2012-09-26 10:27 UTC by Paul Eggleton
Modified: 2012-11-02 09:09 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***