<?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>7879</bug_id>
          
          <creation_ts>2015-06-11 09:32:59 +0000</creation_ts>
          <short_desc>Similar recipe names cause problems with PN auto setting (usability issue)</short_desc>
          <delta_ts>2025-11-27 16:15:49 +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>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard> </status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Igor Stoppa">igor.stoppa</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</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>51636</commentid>
    <comment_count>0</comment_count>
    <who name="Igor Stoppa">igor.stoppa</who>
    <bug_when>2015-06-11 09:32:59 +0000</bug_when>
    <thetext>Premise:

* I have created a custom layer
* Inside this layer, I have a recipe named baseos_initrd.bb
* This recipe pulls in another one, located in the same place, through PACKAGE_INSTALL.

Expectation:

* this should work regardless of the name of the 2nd recipe


Finding:

* if the name of the 2nd recipe is a subset of the name of the first (I had tried baseos_init.bb), I get the error:

NOTE: Resolving any missing task queue dependencies
ERROR: Nothing RPROVIDES &apos;baseos_init&apos; (but /home/igor/dev/iot-os/meta-iot-os-filesystem/recipes-image/images/baseos_initrd.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target &apos;baseos_init&apos; is unbuildable, removing...
Missing or unbuildable dependency chain was: [&apos;baseos_init&apos;]
ERROR: Required build target &apos;baseos_initrd&apos; has no buildable providers.
Missing or unbuildable dependency chain was: [&apos;baseos_initrd&apos;, &apos;baseos_init&apos;]


* if the 2nd recipe has a totally different name (myinitrd.bb), then the build succeeds</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51637</commentid>
    <comment_count>1</comment_count>
    <who name="Igor Stoppa">igor.stoppa</who>
    <bug_when>2015-06-11 09:43:41 +0000</bug_when>
    <thetext>More findings: init_for_baseos didn&apos;t work, while baseosinit worked :-o</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51649</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2015-06-11 15:12:53 +0000</bug_when>
    <thetext>I think the issue here is that the &quot;magic&quot; which pulls the name and version number (PN, PV, PR) from the .bb file name is confusing things. The simple fix is either to set PN/PV/PR manually and use your existing filename or use a different filename.

Obviously the user feedback about what is happening here is confusing and could be better, the bug is therefore open to look into ways we could make this less confusing for the user.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96536</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-09-21 15:00:59 +0000</bug_when>
    <thetext>The code that checks on the name and version is performance critical so we can&apos;t just always check for errors. Perhaps there could be a linter...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96846</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-10-24 14:24:29 +0000</bug_when>
    <thetext>Bulk move from 4.99 or 0.00 to 5.99</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>