<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, <div class="">I’m trying to write ( and to use ) a recipe which should build a simple .rpm, which contains the /usr/lib/libaffinity.so and a 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 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 cmake pkgconfig</div><div class=""><br class=""></div><div class="">PACKAGES = "${PN}"</div><div class="">FILES_${PN} = "${libdir}/libaffinity.so /usr/include/affinity/*” </div></div><div class="">…</div><div class="">“</div><div class="">So, I assume 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, and installation are over, the files are copied into the ${D} directory, as expected:</div><div class="">“</div><div class="">michael@localhost image]$ pwd </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. </div><div class=""><br class=""></div><div class="">3. According to the manual reference - "<span style="color: rgb(51, 51, 51); line-height: 24px; background-color: rgb(255, 255, 255);" class="">The </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=""> and </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=""> tasks combine to analyze the files found in the </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=""> directory…”, 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 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=""> /usr/src</div><div class=""> /usr/lib/.debug</div><div class=""> /usr/lib/.debug/libaffinity.so</div><div class=""> /usr/src/debug</div><div class=""> /usr/src/debug/affinityng</div><div class=""> /usr/src/debug/affinityng/0.1-r0</div><div class=""> /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, in addition to 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 </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]$ </div></div><div class="">“</div><div class="">5. It looks like that as result of package split, the include & lib directories are used properly to build affinityng package, at least it is shown in packages-split properly.</div><div class="">But then , 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 ${PN}-dbg package in addition - both packages are build, no QA complains, and all src/debug/* are going into the -dbg package… </div><div class=""><br class=""></div><div class="">I wonder,</div><div class="">- why does the src directory appear within PKGD/usr? ( If there is no such directory within the ${D} directory...)</div><div class="">- where is the definition for -dbg package is coming from, and is it possible to disable it? </div><div class=""><br class=""></div><div class="">May be somebody have the answer or suggestion what to check next…. </div><div class=""><br class=""></div><div class="">Thanks for a kind attention to the matter. </div><div class=""><br class=""></div><div class="">Have a great day,</div><div class="">Michael.</div><div class=""><br class=""></div></body></html>