<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>13794</bug_id>
          
          <creation_ts>2020-02-18 05:24:02 +0000</creation_ts>
          <short_desc>QA Issue: package &lt;yocto_package_name&gt; contains bad RPATH</short_desc>
          <delta_ts>2020-02-20 05:14:21 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Build Testing</product>
          <component>general</component>
          <version>3.0.2</version>
          <rep_platform>BeagleBone</rep_platform>
          <op_sys>arm</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Zoran Stojsavljevic">zoran.stojsavljevic</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>zoran.stojsavljevic</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>86465</commentid>
    <comment_count>0</comment_count>
    <who name="Zoran Stojsavljevic">zoran.stojsavljevic</who>
    <bug_when>2020-02-18 05:24:02 +0000</bug_when>
    <thetext>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 &apos;1&apos;

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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86507</commentid>
    <comment_count>1</comment_count>
    <who name="Zoran Stojsavljevic">zoran.stojsavljevic</who>
    <bug_when>2020-02-20 05:13:38 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86508</commentid>
    <comment_count>2</comment_count>
    <who name="Zoran Stojsavljevic">zoran.stojsavljevic</who>
    <bug_when>2020-02-20 05:14:21 +0000</bug_when>
    <thetext>NOTABUG.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>