Bug 13794 - QA Issue: package <yocto_package_name> contains bad RPATH
Summary: QA Issue: package <yocto_package_name> contains bad RPATH
Status: CLOSED NOTABUG
Alias: None
Product: Build Testing
Classification: QA/Testing
Component: general (show other bugs)
Version: 3.0.2
Hardware: BeagleBone arm
: Undecided major
Target Milestone: ---
Assignee: Unassigned
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2020-02-18 05:24 UTC by Zoran Stojsavljevic
Modified: 2020-02-20 05:14 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

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