<?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>12719</bug_id>
          
          <creation_ts>2018-04-27 13:32:53 +0000</creation_ts>
          <short_desc>Support reproducible build for kernel modules tarball</short_desc>
          <delta_ts>2026-10-01 15:48:11 +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>2.5</version>
          <rep_platform>x86</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>enhancement</bug_severity>
          <target_milestone>6.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Juro Bystricky">juro.bystricky</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>stephano</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>80447</commentid>
    <comment_count>0</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2018-04-27 13:32:53 +0000</bug_when>
    <thetext>The goal of this enhancement is to build reproducible modules-qemux86.tgz tarballs for:

$ MACHINE=qemux86 bitbake core-image-minimal


The resulting tarballs of this build are placed in the folder &lt;builddir&gt;/tmp/deploy/images/qemux86

Repeating the build in a different folder will place the tarballs in:
&lt;builddir-different&gt;/tmp/deploy/images/qemux86

The build is deemed reproducible if the tarballs are binary identical.
This is rather simple, replacing the line in kernel.bbclass:

tar -cvzf ${DEPLOYDIR}/${MODULE_TARBALL_BASE_NAME} -C ${D} lib

with:

sde=$(get_sde)
tar -I &quot;gzip -9n&quot; --sort=name --clamp-mtime --mtime=@$sde -cvf ${DEPLOYDIR}/${MODULE_TARBALL_BASE_NAME} -C ${D} lib

But we should wait until we resolve:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=12707

(Otherwise we would need to do some run-time checks for supported &quot;tar&quot; command line arguments)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87171</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-05-07 08:08:56 +0000</bug_when>
    <thetext>I believe we now have the minimum tar version needed at least.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96800</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-10-24 14:24:20 +0000</bug_when>
    <thetext>Bulk move from 4.99 or 0.00 to 5.99</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>