<?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>2348</bug_id>
          
          <creation_ts>2012-04-19 14:25:59 +0000</creation_ts>
          <short_desc>Cleanup package.bbclass - runstrip and split_and_strip_files checks for kernel modules</short_desc>
          <delta_ts>2026-08-20 15:17:46 +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>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>1.2</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>NEWCOMER</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>6.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mark Hatle">mark.hatle</reporter>
          <assigned_to name="Sam Kent">sam</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>mateusz.hercun</cc>
    
    <cc>mathieu.dubois-briand</cc>
    
    <cc>mhalstead</cc>
    
    <cc>paul</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sam</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>20720</commentid>
    <comment_count>0</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2012-04-19 14:25:59 +0000</bug_when>
    <thetext>runstrip and split_and_strip_files checks do not match how they find kernel objects.

Also the strip function for kernel objects preserves dates, while the regular strip function does not.

Finally debug info is not preserved for kernel modules.  This may be something we want to start doing in the future.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84088</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2019-06-06 15:26:24 +0000</bug_when>
    <thetext>The code has changed a bit but the idea is likely still valid.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102846</commentid>
    <comment_count>2</comment_count>
    <who name="Mateusz Hercuń">mateusz.hercun</who>
    <bug_when>2025-09-29 11:44:46 +0000</bug_when>
    <thetext>Hello. I want to fix this issue but I&apos;m not sure what it means &apos;runstrip and split_and_strip_files checks do not match how they find kernel objects.&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102856</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-10-01 21:51:45 +0000</bug_when>
    <thetext>Mateusz,

It&apos;s great that you want to work on this.

I only have a minute but this might get you started:

poky.git on master
❯ rg &quot;def runstrip&quot;
meta/lib/oe/package.py
22:def runstrip(file, elftype, strip, extra_strip_sections=&apos;&apos;):

❯ rg split_and_strip_files  meta/classes-global/package.bbclass
22:# d) split_and_strip_files - split the files into runtime and debug and strip them.
532:    oe.package.process_split_and_strip_files(d)


Take a look at those files and search docs.yoctoproject.org and
then come back with more questions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105170</commentid>
    <comment_count>4</comment_count>
    <who name="Sam Kent">sam</who>
    <bug_when>2026-04-21 11:06:18 +0000</bug_when>
    <thetext>Hi

I&apos;m new to contributing and had a look at this to start with something straight forward whilst getting used to using a mailing list

Submitted a patch (hopefully correctly) to the mailing list

https://lists.openembedded.org/g/openembedded-core/topic/patch_1_2_package_py_fix/118935412</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105174</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-04-21 16:42:59 +0000</bug_when>
    <thetext>Thanks Sam.
I&apos;ve given this enhancement to you.
We&apos;re just wrapping up the 6.0 release so your patch may not be merged 
until after that&apos;s done, say next week.

Have you read:
https://docs.yoctoproject.org/contributor-guide/index.html
and did you think there was anything missing from that guide?

I see your patches but I&apos;m not the right person to review them.


Welcome to the team!
../Randy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105271</commentid>
    <comment_count>6</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-04-27 16:57:49 +0000</bug_when>
    <thetext>Sam, 

Patch reviewed on weekly meeting and is okay but needs a self-test.
Paul will reply on the list and point you in the right direction.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105276</commentid>
    <comment_count>7</comment_count>
    <who name="Sam Kent">sam</who>
    <bug_when>2026-04-28 12:43:11 +0000</bug_when>
    <thetext>Thanks, I&apos;ve submitted a V2 with a self test
I used Claude to help get to grips with oe-selftest and have updated the commit message according to the contributor guidelines</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106581</commentid>
    <comment_count>8</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-08-20 12:56:58 +0000</bug_when>
    <thetext>Patch got merged: https://git.openembedded.org/openembedded-core/commit/?id=2f32e6a01cdd18c3a7ade348c7a50b0cd459590f

Mark, can we close the bug entry?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106598</commentid>
    <comment_count>9</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-08-20 15:17:46 +0000</bug_when>
    <thetext>RP says fixed.

Thanks Sam!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>