<?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>16220</bug_id>
          
          <creation_ts>2026-03-27 01:03:23 +0000</creation_ts>
          <short_desc>oe-selftest: oelib.license.TestSingleLicense.test_single_licenses fails with Python 3.14.x (empty license list)</short_desc>
          <delta_ts>2026-03-27 19:13:48 +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>core</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>0.0.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sermsity Sunil Kumar Dora">SunilKumar.Dora</reporter>
          <assigned_to name="Sermsity Sunil Kumar Dora">SunilKumar.Dora</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>sundeep.kokkonda</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>104841</commentid>
    <comment_count>0</comment_count>
    <who name="Sermsity Sunil Kumar Dora">SunilKumar.Dora</who>
    <bug_when>2026-03-27 01:03:23 +0000</bug_when>
    <thetext>Another new issue on Fedora43:

The oe-selftest test `oelib.license.TestSingleLicense.test_single_licenses` is failing when using Python 3.14.

From the logs, the test expects:
  [&apos;GPL-2.0-only&apos;]

but gets:
  []

This indicates a failure in license parsing.

The issue is reproducible in a clean environment and does not appear to be related to any specific layer or CI setup.

https://autobuilder.yoctoproject.org/valkyrie/#/builders/48/builds/3388/

STEPS TO REPRODUCE
------------------
1. Use Fedora Rawhide (or any environment with Python 3.14.x)
2. Clone a fresh OE-Core / poky
3. Initialize build environment:
     source oe-init-build-env
4. Run:
     oe-selftest -r oelib.license.TestSingleLicense.test_single_licenses


RESULT
------
Test fails with:
  [] vs [&apos;GPL-2.0-only&apos;]


- The issue reproduces consistently with Python 3.14.3 (Fedora Rawhide).
- The same test passes with Python 3.10.
- This suggests a possible incompatibility or behavior change in Python 3.14 affecting OE-Core license parsing.

- This failure is independent of the gdbserver selftest issue (tracked separately in YPBZ #16195).
+++++++++++++++++++++++++++

2026-03-24 12:46:35,882 - oe-selftest - INFO - 8: 30/54 198/678 (0.00s) (0 failed) (oelib.license.TestSingleLicense.test_invalid_licenses)
2026-03-24 12:46:35,884 - oe-selftest - INFO - oelib.license.TestSingleLicense.test_single_licenses (subunit.RemotedTestCase)
2026-03-24 12:46:35,885 - oe-selftest - INFO -  ... FAIL

Stderr:
2026-03-24 12:37:37,115 - oe-selftest - INFO - Adding: &quot;include selftest.inc&quot; in /srv/pokybuild/yocto-worker/oe-selftest-fedora/build/build-st-1993576/conf/local.conf
2026-03-24 12:37:37,116 - oe-selftest - INFO - Adding: &quot;include bblayers.inc&quot; in bblayers.conf
FIT configuration mapping(s) not matched with any DTB: dtb-extra-conf:nonexistent.dtb:extra-conf
FIT configuration mapping(s) not matched with any DTB: dtb-conf:nonexistent.dtb:renamed
2026-03-24 12:46:35,885 - oe-selftest - INFO - 8: 31/54 199/678 (0.00s) (0 failed) (oelib.license.TestSingleLicense.test_single_licenses)
2026-03-24 12:46:35,885 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File &quot;/srv/pokybuild/yocto-worker/oe-selftest-fedora/build/layers/openembedded-core/meta/lib/oeqa/selftest/cases/oelib/license.py&quot;, line 38, in test_single_licenses
    self.assertListEqual(licenses, [license])
    ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
  File &quot;/usr/lib64/python3.14/unittest/case.py&quot;, line 1131, in assertListEqual
    self.assertSequenceEqual(list1, list2, msg, seq_type=list)
    ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/usr/lib64/python3.14/unittest/case.py&quot;, line 1113, in assertSequenceEqual
    self.fail(msg)
    ~~~~~~~~~^^^^^
  File &quot;/usr/lib64/python3.14/unittest/case.py&quot;, line 750, in fail
    raise self.failureException(msg)
AssertionError: Lists differ: [] != [&apos;GPL-2.0-only&apos;]

Second list contains 1 additional elements.
First extra element 0:
&apos;GPL-2.0-only&apos;

- []
+ [&apos;GPL-2.0-only&apos;]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104848</commentid>
    <comment_count>1</comment_count>
    <who name="Sermsity Sunil Kumar Dora">SunilKumar.Dora</who>
    <bug_when>2026-03-27 13:47:52 +0000</bug_when>
    <thetext>Patch:

https://lists.openembedded.org/g/openembedded-core/message/234089</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104851</commentid>
    <comment_count>2</comment_count>
    <who name="Sermsity Sunil Kumar Dora">SunilKumar.Dora</who>
    <bug_when>2026-03-27 19:13:31 +0000</bug_when>
    <thetext>The fix has been merged into OE-Core Master, so this issue is now being closed.

https://git.openembedded.org/openembedded-core/commit/?id=8a5b019eec72676893507d018e7609745d2e3f49</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>