<?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>16192</bug_id>
          
          <creation_ts>2026-03-07 19:01:47 +0000</creation_ts>
          <short_desc>layerindex: needs to parse addpylib</short_desc>
          <delta_ts>2026-03-08 19:39:42 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Layer Index</product>
          <component>Layer Index</component>
          <version>6.99</version>
          <rep_platform>All</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="Tim Orling">tim.orling</reporter>
          <assigned_to name="Tim Orling">tim.orling</assigned_to>
          <cc>Martin.Jansa</cc>
          
          <qa_contact name="apoorv sangal">apoorvsangal</qa_contact>
          <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>104559</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2026-03-07 19:01:47 +0000</bug_when>
    <thetext>If a layer uses addpylib to add functions that are required to parse recipes, layerindex fails.

Recent example:

ERROR: Unable to read /opt/workdir/https___github_com_webOS-ports_meta-webos-ports/meta-luneos/recipes-core/images/luneos-emulator-appliance.bb: Traceback (most recent call last):
  File &quot;/opt/workdir/git___git_openembedded_org_bitbake/lib/bb/data_smart.py&quot;, line 465, in expandWithRefs
    s = __expand_python_regexp__.sub(varparse.python_sub, s)
  File &quot;/opt/workdir/git___git_openembedded_org_bitbake/lib/bb/data_smart.py&quot;, line 154, in python_sub
    value = utils.better_eval(codeobj, DataContext(self.d), {&apos;d&apos; : self.d})
  File &quot;/opt/workdir/git___git_openembedded_org_bitbake/lib/bb/utils.py&quot;, line 489, in better_eval
    return eval(source, ctx, locals)
  File &quot;Var &lt;WEBOS_DISTRO_TOPDIR_BRANCH&gt;&quot;, line 1, in &lt;module&gt;
NameError: name &apos;oebackport&apos; is not defined

Many more of the same error in the following:
https://layers.openembedded.org/layerindex/layerupdate/9489081/
https://layers.openembedded.org/layerindex/layerupdate/9489082/

Where layerindex is missing &apos;oebackport&apos; definition:
addpylib ${LAYERDIR}/lib oebackport

https://github.com/webOS-ports/meta-webos-ports/blob/1783bea818eeeda8a2e171529f46a00b14702e6a/meta-luneos/conf/layer.conf#L25</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>