<?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>13618</bug_id>
          
          <creation_ts>2019-11-08 23:44:00 +0000</creation_ts>
          <short_desc>RRECOMMENDS ignored as soft dependency</short_desc>
          <delta_ts>2019-11-14 18:43:28 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BitBake</product>
          <component>bitbake</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jonathan Richardson">jon.richardson</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>scott.branden</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>85509</commentid>
    <comment_count>0</comment_count>
      <attachid>4585</attachid>
    <who name="Jonathan Richardson">jon.richardson</who>
    <bug_when>2019-11-08 23:44:00 +0000</bug_when>
    <thetext>Created attachment 4585
recipe

I have a recipe that installs a bash script /etc/init.d/rdma-ndd. In warrior there was a QA error because there was no dependency on bash. I added RRECOMMENDS_${PN} += &quot;bash&quot; and it was fine. In zeus, it&apos;s not fine again even though NO_RECOMMENDATIONS=&quot;&quot;. I don&apos;t think this should be reported as a QA error. The RRECOMMENDS should be sufficient. Recipe attached.

ERROR: mc:stingray:infiniband-diags-1.6.6-r0 do_package_qa: QA Issue: /etc/init.d/rdma-ndd contained in package infiniband-diags requires /bin/bash, but no providers found in RDEPENDS_infiniband-diags? [file-rdeps]
ERROR: mc:stingray:infiniband-diags-1.6.6-r0 do_package_qa: QA run found fatal errors. Please consider fixing them.
ERROR: Logfile of failure stored in: /home/jon/work/yocto/nxs-next-new2/poky/build/tmp/work/aarch64-poky-linux/infiniband-diags/1.6.6-r0/temp/log.do_package_qa.118042
ERROR: Task (mc:stingray:/home/jon/work/yocto/nxs-next-new2/poky/build/../meta-brcm/meta-datacenter/recipes-ofed/infiniband-diags/infiniband-diags_1.6.6.bb:do_package_qa) failed with exit code &apos;1&apos;


From bitbake -e:
NO_RECOMMENDATIONS=&quot;&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85525</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-11-14 15:04:29 +0000</bug_when>
    <thetext>I tried to reproduce this but I can&apos;t with the recipe provided as the patches are missing and I didn&apos;t try and figure out if I could find the other dependencies somewhere.

&quot;bitbake infiniband-diags -e | grep RRECOMMENDS&quot; does show the bash dependency being present.

That said I just realised that the QA check is specifically checking for RDEPENDS, not RRECOMMENDS. This does make sense since you&apos;d normally want installed scripts to work!

I&apos;d suggest you turn off that QA warning if you really don&apos;t care, something like:

INSANE_SKIP_${PN} = &quot;file-rdeps&quot;

This probably shouldn&apos;t be in the recipe but your distro config with a pn override so something like:

INSANE_SKIP_${PN}_pn-infiniband-diags = &quot;file-rdeps&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85527</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2019-11-14 15:32:13 +0000</bug_when>
    <thetext>See Richard&apos;s comment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85539</commentid>
    <comment_count>3</comment_count>
    <who name="Jonathan Richardson">jon.richardson</who>
    <bug_when>2019-11-14 18:43:28 +0000</bug_when>
    <thetext>I made it an RRECOMMENDS because I&apos;m not using the script and didn&apos;t care about it. Since it worked in warrior I thought RRECOMMENDS was broken. Maybe it just wasn&apos;t being reported properly. So essentially if you install anything in the image you have no choice but install all dependencies also.

Sounds like it should be optional from the docs:

RRECOMMENDS
&quot;The package being built does not depend on this list of packages in order to successfully build, but rather uses them for extended usability.&quot;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>4585</attachid>
            <date>2019-11-08 23:44:00 +0000</date>
            <delta_ts>2019-11-08 23:44:00 +0000</delta_ts>
            <desc>recipe</desc>
            <filename>infiniband-diags_1.6.6.bb</filename>
            <type>application/octet-stream</type>
            <size>734</size>
            <attacher name="Jonathan Richardson">jon.richardson</attacher>
            
              <data encoding="base64">U1VNTUFSWSA9ICJJbmZpbmliYW5kIGRpYWdub3N0aWMgcHJvZ3JhbXMiCgpERVNDVElQVElPTiA9
ICJpbmZpbmliYW5kLWRpYWdzIHByb3ZpZGVzIGRpYWdub3N0aWMgcHJvZ3JhbXMgYW5kIFwKc2Ny
aXB0cyBuZWVkZWQgdG8gZGlhZ25vc2UgYW4gSW5maW5pQmFuZCBzdWJuZXQuIgoKTElDRU5TRSA9
ICJCU0QiCkxJQ19GSUxFU19DSEtTVU0gPSAiZmlsZTovL0NPUFlJTkc7bWQ1PTYwZDVjNmM4M2Yw
YTMyYTI3N2FlYWNmNjUyN2I4ZmM5IgoKU1JDX1VSSSA9ICJodHRwczovL3d3dy5vcGVuZmFicmlj
cy5vcmcvZG93bmxvYWRzL21hbmFnZW1lbnQvaW5maW5pYmFuZC1kaWFncy0ke1BWfS50YXIuZ3oi
ClNSQ19VUklbbWQ1c3VtXSA9ICJiODU1Y2EzYjk4YWZlZmMyYWQ2YTJkZTM3OGFiNzFkZCIKClNS
Q19VUkkgKz0gImZpbGU6Ly8wMS1maXgtaW5jbHVkZS1wYXRoLnBhdGNoO3BhdGNoPTEgXAogICAg
ICAgICAgICBmaWxlOi8vMDItZml4LXBtLWluc3RhbGwucGF0Y2g7cGF0Y2g9MSIKCkRFUEVORFMg
PSAiZ2xpYi0yLjAgbGliaWJ1bWFkIGxpYmlibWFkIG9wZW5zbSIKREVQRU5EUyArPSAiICR7QGJi
LnV0aWxzLmNvbnRhaW5zKCdESVNUUk9fRkVBVFVSRVMnLCdzeXN0ZW1kJywnc3lzdGVtZCcsJ2V1
ZGV2JyxkKX0iCgpSREVQRU5EU18ke1BOfSArPSAicGVybCBwZXJsLW1vZHVsZXMiClJSRUNPTU1F
TkRTXyR7UE59ICs9ICJiYXNoIgoKaW5oZXJpdCBwa2djb25maWcgYXV0b3Rvb2xzCgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>