<?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>14206</bug_id>
          
          <creation_ts>2021-01-29 01:18:21 +0000</creation_ts>
          <short_desc>oe-selftest perl errors on rpm based distros</short_desc>
          <delta_ts>2025-11-13 15:13:32 +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>3.3</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>5.3 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexandre Belloni">alexandre.belloni</reporter>
          <assigned_to name="Mingli Yu">mingli.yu</assigned_to>
          <cc>Jagadheesan_Duraisamy</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sakib.sajal</cc>
    
    <cc>tgamblin</cc>
    
    <cc>tim.orling</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>89072</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2021-01-29 01:18:21 +0000</bug_when>
    <thetext>When running on an rpm distribution (in that case centos), oe-selftest seems to include perl files from the host and prints out errors that seem harmless:

2021-01-27 19:20:17,391 - oe-selftest - INFO - 9: 5/10 26/423 (0.30s) (package.VersionOrdering.test_opkg)
error: /etc/rpm/macros.perl: line 34: Macro %global is a built-in (%define)
error: /etc/rpm/macros.perl: line 35: Macro %global is a built-in (%define)
error: /etc/rpm/macros.perl: line 34: Macro %global is a built-in (%define)
error: /etc/rpm/macros.perl: line 35: Macro %global is a built-in (%define)
error: /etc/rpm/macros.perl: line 34: Macro %global is a built-in (%define)
error: /etc/rpm/macros.perl: line 35: Macro %global is a built-in (%define)
error: /etc/rpm/macros.perl: line 34: Macro %global is a built-in (%define)
error: /etc/rpm/macros.perl: line 35: Macro %global is a built-in (%define)
error: /etc/rpm/macros.perl: line 34: Macro %global is a built-in (%define)
error: /etc/rpm/macros.perl: line 35: Macro %global is a built-in (%define)
error: /etc/rpm/macros.perl: line 34: Macro %global is a built-in (%define)
error: /etc/rpm/macros.perl: line 35: Macro %global is a built-in (%define)
2021-01-27 19:20:19,902 - oe-selftest - INFO - package.VersionOrdering.test_rpm (subunit.RemotedTestCase)
2021-01-27 19:20:19,903 - oe-selftest - INFO -  ... ok

Including files from the host is probably an issue. This will get hidden when using more recent distributions:
https://bugzilla.redhat.com/show_bug.cgi?id=1532539

Full autobuilder log here: https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/1761/steps/15/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89135</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-02-04 15:33:59 +0000</bug_when>
    <thetext>Only appears on centos7 systems as on other systems the error was fixed in the macros.perl file but we shouldn&apos;t be looking at host files. We need to figure out how to stop rpm looking at this file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89311</commentid>
    <comment_count>2</comment_count>
    <who name="Jagadheesan">Jagadheesan_Duraisamy</who>
    <bug_when>2021-02-19 10:55:19 +0000</bug_when>
    <thetext>Also seen on 
https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/1847/steps/15/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96083</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-07-26 21:22:03 +0000</bug_when>
    <thetext>Bulk move of 64 bugs to 4.3 M3 after a quick review.
If a bug is actually fixed, please add a commit link and resolve it.
-- Randy for YP bug team.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96471</commentid>
    <comment_count>4</comment_count>
    <who name="Trevor Gamblin">tgamblin</who>
    <bug_when>2023-09-14 16:43:52 +0000</bug_when>
    <thetext>Moved to M4.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97057</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-10-30 15:29:09 +0000</bug_when>
    <thetext>Bulk move to 5.0 M1. -- Randy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97684</commentid>
    <comment_count>6</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-12-21 23:28:31 +0000</bug_when>
    <thetext>Bulk move of 52 5.0-M1 bugs to M2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98015</commentid>
    <comment_count>7</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-01-25 14:28:51 +0000</bug_when>
    <thetext>Bulk move of bugs owned by &quot;unassigned&quot; from 5.0-M2 to 5.0-M3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98273</commentid>
    <comment_count>8</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-02-22 18:03:21 +0000</bug_when>
    <thetext>It&apos;s possible that this poky commit:

commit d426872674ab31a57cc593303a16ca409ecb0c1c
Author: Alexander Kanavin &lt;alex.kanavin@gmail.com&gt;
Date:   Tue Feb 6 04:13:46 2024

    lzlib: add a recipe
    
    This is needed for rpm reproducibility, as otherwise libmagic
    will call an external lzip executable, which is both
    non-threadsafe, and non-deterministic w.r.t sysroot presence.
    
    (From OE-Core rev: 0e4bde86e1aa499274fc85d01d36a74c3401762e)
    
    Signed-off-by: Alexander Kanavin &lt;alex@linutronix.de&gt;
    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;

although not perl-related, may help. If anyone re-tests, please comment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99445</commentid>
    <comment_count>9</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-07-25 15:01:41 +0000</bug_when>
    <thetext>Maybe any rpm-based distro not just a centos7 system.
Randy will test on Fedora.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102606</commentid>
    <comment_count>10</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-08-14 15:56:04 +0000</bug_when>
    <thetext>Mingli, please check if you can reproduce this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102686</commentid>
    <comment_count>11</comment_count>
    <who name="Mingli Yu">mingli.yu</who>
    <bug_when>2025-09-04 06:14:54 +0000</bug_when>
    <thetext>Hi Randy,

I didn&apos;t reproduce the issue on Fedora 42.
$ cat /etc/redhat-release 
Fedora release 42 (Adams)

$ oe-selftest   -r package.VersionOrdering.test_opkg
2025-09-04 14:04:15,244 - oe-selftest - INFO - test_opkg (package.VersionOrdering.test_opkg)
2025-09-04 14:04:15,300 - oe-selftest - INFO -  ... ok
2025-09-04 14:04:32,561 - oe-selftest - INFO - ----------------------------------------------------------------------
2025-09-04 14:04:32,562 - oe-selftest - INFO - Ran 1 test in 1759.347s
2025-09-04 14:04:32,562 - oe-selftest - INFO - OK
2025-09-04 14:04:46,644 - oe-selftest - INFO - RESULTS:
2025-09-04 14:04:46,645 - oe-selftest - INFO - RESULTS - package.VersionOrdering.test_opkg: PASSED (0.06s)
2025-09-04 14:04:46,646 - oe-selftest - INFO - SUMMARY:
2025-09-04 14:04:46,646 - oe-selftest - INFO - oe-selftest () - Ran 1 test in 1759.348s
2025-09-04 14:04:46,646 - oe-selftest - INFO - oe-selftest - OK - All required tests passed (successes=1, skipped=0, failures=0, errors=0)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103279</commentid>
    <comment_count>12</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-11-13 15:13:32 +0000</bug_when>
    <thetext>Seems to be fixed as per Mingli&apos;s comment.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>