<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,&nbsp;<div class="">I’m trying to write ( and to use ) a recipe which should build a simple &nbsp;.rpm, &nbsp;which contains the /usr/lib/libaffinity.so and a &nbsp;few header files within /usr/include/affinity/* subdir.</div><div class=""><br class=""></div><div class="">However, it looks like bitbake is trying / “forcing” me to &nbsp;build a ${PN}-dbg package….:</div><div class=""><br class=""></div><div class="">I’m doing the following steps:</div><div class=""><br class=""></div><div class="">1. recipe:</div><div class="">“</div><div class="">…</div><div class=""><div class="">inherit &nbsp;cmake pkgconfig</div><div class=""><br class=""></div><div class="">PACKAGES = "${PN}"</div><div class="">FILES_${PN} = "${libdir}/libaffinity.so /usr/include/affinity/*” &nbsp;&nbsp;</div></div><div class="">…</div><div class="">“</div><div class="">So, I assume &nbsp;I’ m asking to build only 1 package.</div><div class=""><br class=""></div><div class="">2. During the bitbake processing, as the compilation, build, &nbsp;and installation are over, the &nbsp;files are copied into the ${D} directory, as expected:</div><div class="">“</div><div class="">michael@localhost image]$ pwd&nbsp;</div><div class=""><div class="">/home/michael/Devlab/poky/build-atmel/tmp/work/cortexa5t2hf-vfp-poky-linux-gnueabi/affinityng/0.1-r0/image</div><div class="">[michael@localhost image]$ cd usr</div><div class="">[michael@localhost usr]$ ls -la</div><div class="">total 16</div><div class="">drwxr-xr-x. 4 michael michael 4096 Aug 21 19:57 .</div><div class="">drwxr-xr-x. 3 michael michael 4096 Aug 21 19:57 ..</div><div class="">drwxr-xr-x. 3 michael michael 4096 Aug 21 19:57 include</div><div class="">drwxr-xr-x. 2 michael michael 4096 Aug 21 19:57 lib</div></div><div class="">“</div><div class="">So far, everything as expected in accordance with the Yocto reference.&nbsp;</div><div class=""><br class=""></div><div class="">3. According to the manual reference &nbsp;- "<span style="color: rgb(51, 51, 51); line-height: 24px; background-color: rgb(255, 255, 255);" class="">The&nbsp;</span><code class="filename" style="color: rgb(51, 51, 51); line-height: 24px;">do_package</code><span style="color: rgb(51, 51, 51); line-height: 24px; background-color: rgb(255, 255, 255);" class="">&nbsp;and&nbsp;</span><code class="filename" style="color: rgb(51, 51, 51); line-height: 24px;">do_packagedata</code><span style="color: rgb(51, 51, 51); line-height: 24px; background-color: rgb(255, 255, 255);" class="">&nbsp;tasks combine to analyze the files found in the&nbsp;</span><a class="link" href="http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#var-D" title="D" style="color: rgb(68, 68, 68); line-height: 24px;"><code class="filename">D</code></a><span style="background-color: rgb(255, 255, 255);" class=""><font color="#333333" class=""><span style="line-height: 24px;" class="">&nbsp;directory…”, &nbsp;I would expect that the package would be build.</span></font></span></div><div class=""><font color="#333333" class=""><span style="line-height: 24px; background-color: rgb(255, 255, 255);" class="">However, the &nbsp;attempt to build is failing. with the error:</span></font></div><div class=""><font color="#333333" class=""><span style="line-height: 24px;" class="">“</span></font><span style="line-height: 24px; color: rgb(51, 51, 51);" class="">…</span></div><div class=""><div class="">ERROR: QA Issue: affinityng: Files/directories were installed but not shipped</div><div class="">&nbsp; /usr/src</div><div class="">&nbsp; /usr/lib/.debug</div><div class="">&nbsp; /usr/lib/.debug/libaffinity.so</div><div class="">&nbsp; /usr/src/debug</div><div class="">&nbsp; /usr/src/debug/affinityng</div><div class="">&nbsp; /usr/src/debug/affinityng/0.1-r0</div><div class="">&nbsp; /usr/src/debug/affinityng/0.1-r0/kernel</div></div><div class="">…</div><div class="">“</div><div class=""><br class=""></div><div class="">4. Following the reference, I checked the PKGD directory, where the files should be before split….</div><div class="">And I noticed that there is the src directory there, &nbsp;in addition to &nbsp;directories — include and lib — the only ones I was expecting to see there.</div><div class="">( see log below ) .</div><div class=""><br class=""></div><div class="">“</div><div class=""><div class="">/home/michael/Devlab/poky/build-atmel/tmp/work/cortexa5t2hf-vfp-poky-linux-gnueabi/affinityng/0.1-r0/package/usr</div><div class="">….</div><div class="">[michael@localhost usr]$ ls -la</div><div class="">total 20</div><div class="">drwxr-xr-x. 5 michael michael 4096 Aug 21 19:57 .</div><div class="">drwxr-xr-x. 3 michael michael 4096 Aug 21 19:57 ..</div><div class="">drwxr-xr-x. 3 michael michael 4096 Aug 21 19:57 include</div><div class="">drwxr-xr-x. 3 michael michael 4096 Aug 21 19:57 lib</div><div class="">drwxr-xr-x. 3 michael michael 4096 Aug 21 19:57 src</div><div class="">[michael@localhost usr]$ pwd&nbsp;</div><div class="">/home/michael/Devlab/poky/build-atmel/tmp/work/cortexa5t2hf-vfp-poky-linux-gnueabi/affinityng/0.1-r0/package/usr</div><div class="">[michael@localhost usr]$ cd src</div><div class="">[michael@localhost src]$ ls -la</div><div class="">total 12</div><div class="">drwxr-xr-x. 3 michael michael 4096 Aug 21 19:57 .</div><div class="">drwxr-xr-x. 5 michael michael 4096 Aug 21 19:57 ..</div><div class="">drwxr-xr-x. 3 michael michael 4096 Aug 21 19:57 debug</div><div class="">[michael@localhost src]$&nbsp;</div></div><div class="">“</div><div class="">5. It looks like that as result of package split, the &nbsp;include &amp; lib directories are used properly to build affinityng package, at least it is shown in packages-split properly.</div><div class="">But then , &nbsp;the content of the src directory is causing the problem with QA.</div><div class=""><br class=""></div><div class="">6. At the same time, if I ask to build &nbsp;${PN}-dbg package in addition - both packages are build, no QA complains, and all src/debug/* are going into the -dbg package…&nbsp;</div><div class=""><br class=""></div><div class="">I wonder,</div><div class="">- why does the src directory appear within &nbsp;PKGD/usr? ( If there is no such directory within the ${D} directory...)</div><div class="">- where is the definition for &nbsp;-dbg package is coming from, and is it possible to disable it?&nbsp;</div><div class=""><br class=""></div><div class="">May be somebody have the answer or suggestion what to check next…. &nbsp;</div><div class=""><br class=""></div><div class="">Thanks for a kind attention to the matter.&nbsp;</div><div class=""><br class=""></div><div class="">Have a great day,</div><div class="">Michael.</div><div class=""><br class=""></div></body></html>