<?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>14821</bug_id>
          
          <creation_ts>2022-06-01 16:56:39 +0000</creation_ts>
          <short_desc>recipename function doesn&apos;t return recipe name for packages renamed with debian.bbclass</short_desc>
          <delta_ts>2026-05-07 15:10:33 +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>OE-Core</product>
          <component>configuration</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>ACCEPTED</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.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Pavel Zhukov">pavel</reporter>
          <assigned_to name="Randy MacLeod">randy.macleod</assigned_to>
          <cc>pavel</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>93361</commentid>
    <comment_count>0</comment_count>
    <who name="Pavel Zhukov">pavel</who>
    <bug_when>2022-06-01 16:56:39 +0000</bug_when>
    <thetext>if the package has been renamed to comply with debian naming rules (debian.bbclass has been inherited and package contains .so-files) then oe.packagedata.recipename function doesn&apos;t work properly and returns None for such packages.

Disabling debian.bbclass solves the problem and can be used as a workaround.

Simple reproducer would be:

# repro.bblass


python my_report () {

    from oe.rootfs import image_list_installed_packages
    from oe.packagedata import recipename, pkgmap

    pkgs = image_list_installed_packages(d)
    for pkg in pkgs:
        recipe = recipename(pkg, d)
        if recipe is None: bb.error(&quot;Whoops recipe of {} is None&quot;.format(pkg))
}

ROOTFS_POSTPROCESS_COMMAND += &quot; my_report; &quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93366</commentid>
    <comment_count>1</comment_count>
    <who name="Pavel Zhukov">pavel</who>
    <bug_when>2022-06-02 12:22:52 +0000</bug_when>
    <thetext>Another problem related to this bug is the fact that package name in package.manifest and package name in license.manifest are different.
package manifest has &quot;debian&quot; name in it (dbus-1 for example) while license manifest contains the original name (dbus).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93373</commentid>
    <comment_count>2</comment_count>
    <who name="Pavel Zhukov">pavel</who>
    <bug_when>2022-06-02 14:49:14 +0000</bug_when>
    <thetext>license manifet and package manifest are generated from license_image.bbclass</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94324</commentid>
    <comment_count>3</comment_count>
    <who name="Pavel Zhukov">pavel</who>
    <bug_when>2022-11-01 19:21:41 +0000</bug_when>
    <thetext>Bumping as nobody else is affected it seems</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97109</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-10-30 15:37:25 +0000</bug_when>
    <thetext>Build move to 5.0 -- ../Randy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98824</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-04-25 01:13:53 +0000</bug_when>
    <thetext>Bulk move of 5.0 medium importance issues to 5.99.
Move to 5.1 if you want to actively work on an issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98853</commentid>
    <comment_count>6</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-04-25 01:23:10 +0000</bug_when>
    <thetext>Move to 5.99 since no one is actively working on this issue.
Move to 5.x if you start on a task, please.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>