Bug 2038

Summary: [multilib] Add scripts to sanity check for multilib libraries in the build directory
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Shane Wang <shane.wang>
Component: meta-yoctoAssignee: Radu Moisan <radu.moisan>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: Medium+ CC: alexandru.damian, jessica.zhang, poky.bs.watcher, poky.watcher, sgw, song.liu, sstncr
Version: unspecified   
Target Milestone: 1.3 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Shane Wang 2012-02-28 13:14:42 UTC
For world, we don't have images to test with. But at least, add sanity check script later to check whether multilib libraries are there in the build directory.

Again, that benefits those which have the images to test with, for instance, recipes in sato, sato-sdk, lsb-sdk etc.
Comment 1 Radu Moisan 2012-09-03 09:19:16 UTC
(In reply to comment #0)
> For world, we don't have images to test with. But at least, add sanity check
> script later to check whether multilib libraries are there in the build
> directory.
> 
> Again, that benefits those which have the images to test with, for instance,
> recipes in sato, sato-sdk, lsb-sdk etc.

hi Shane,
Can you please elaborate more on this task, I don't have the big picture so I don't really know where to start. For instance do you want a script run automatically for world (at the end) to check for multilib libraries?
Comment 2 Radu Moisan 2012-09-03 10:59:34 UTC
I was looking around to get a handle on this and found https://bugzilla.yoctoproject.org/show_bug.cgi?id=1488
Do I have to add the sanity check in sanity.bbclass like to Peter did in that patch?
Comment 3 Radu Moisan 2012-09-10 07:16:33 UTC
Looking over insane.bbclass
Comment 4 Radu Moisan 2012-09-10 12:07:18 UTC
working to determine two aspects:
1. which is the target directory to check upon
2. how to determine from a global method what particular libraries (naming) to search for (in a particular workdir). This information is found in the makefile.
Comment 5 Radu Moisan 2012-09-12 07:46:49 UTC
got feedback from Richard and the goal for this task is to add a package_qa_check_multilib in insane.bbclass that would

* check for ${libdir} in path
* check for other library directories in path
Comment 6 Radu Moisan 2012-09-18 13:50:47 UTC
Agreed to check for wrong library installation paths. For instance, catch recipe installing /lib/bar.so when ${base_libdir}="lib32" or installing in /usr/lib64 when ${libdir}="/usr/lib"
Comment 7 Radu Moisan 2012-09-21 11:25:36 UTC
65d1eb7788870b3e318902c827097183f2dddafc
Comment 8 Stefan Stanacar 2012-10-17 15:02:47 UTC
Verified in master branch / commit eed0d8765ea92f22e26d5b3aec0b9fe98f3af57f
with 
ERROR_QA_append = " libdir" in local.conf