Bug 13794

Summary: QA Issue: package <yocto_package_name> contains bad RPATH
Product: [QA/Testing] Build Testing Reporter: Zoran Stojsavljevic <zoran.stojsavljevic>
Component: generalAssignee: Unassigned <unassigned>
Status: CLOSED NOTABUG QA Contact:
Severity: major    
Priority: Undecided CC: zoran.stojsavljevic
Version: 3.0.2   
Target Milestone: ---   
Hardware: BeagleBone   
OS: arm   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Zoran Stojsavljevic 2020-02-18 05:24:02 UTC
The recipe causing the QA issue is the following:
https://github.com/ZoranStojsavljevic/meta-socketcan/blob/master/recipes-can/cannelloni/cannelloni.bb

Without/sans the line: chrpath -d ${D}${bindir}/cannelloni

The recipe produces the following QA error:

ERROR: cannelloni-1.0-r0 do_package_qa: QA Issue: package cannelloni contains bad RPATH /home/user/projects2/beaglebone-black/bbb-yocto/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/cannelloni/1.0-r0/build: in file /home/user/projects2/beaglebone-black/bbb-yocto/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/cannelloni/1.0-r0/packages-split/cannelloni/usr/bin/cannelloni [rpaths]
ERROR: cannelloni-1.0-r0 do_package_qa: QA run found fatal errors. Please consider fixing them.
ERROR: Logfile of failure stored in: /home/user/projects2/beaglebone-black/bbb-yocto/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/cannelloni/1.0-r0/temp/log.do_package_qa.208107
ERROR: Task (/home/user/projects2/beaglebone-black/bbb-yocto/meta-socketcan/recipes-can/cannelloni/cannelloni.bb:do_package_qa) failed with exit code '1'

Adding line: chrpath -d ${D}${bindir}/cannelloni solves this propblem, but my best guess, it is only a workaround, since after finishing the bitbake -k core-image-minimal, the following could be found as trace in the building directory:

cannelloni-1.0: package cannelloni contains bad RPATH
/home/user/projects2/beaglebone-black/bbb-yocto/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/cannelloni/1.0-r0/build:
in file /home/user/projects2/beaglebone-black/bbb-yocto/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/cannelloni/1.0-r0/packages-split/cannelloni/usr/bin/cannelloni
[rpaths]

The solution: finding the right root cause for these messages, and fixing it!

Zoran
Comment 1 Zoran Stojsavljevic 2020-02-20 05:13:38 UTC
I have fixed this issue. It appears that I used some of the bitbake flags in wrong way.

Here is the correct solution:
https://github.com/ZoranStojsavljevic/meta-socketcan/blob/master/recipes-can/cannelloni/cannelloni.bb

Sorry for the noise... My bad! :-(

Zoran
Comment 2 Zoran Stojsavljevic 2020-02-20 05:14:21 UTC
NOTABUG.