<?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>15484</bug_id>
          
          <creation_ts>2024-05-15 16:27:07 +0000</creation_ts>
          <short_desc>gzip of extended pkgdata introduced non-determinism</short_desc>
          <delta_ts>2024-05-16 14:51:29 +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.1.28</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>0.0.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jate Sujjavanich">jatedev</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</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>99009</commentid>
    <comment_count>0</comment_count>
      <attachid>5046</attachid>
    <who name="Jate Sujjavanich">jatedev</who>
    <bug_when>2024-05-15 16:27:07 +0000</bug_when>
    <thetext>Created attachment 5046
Initial fix for the bug

Dunfell is out of maintenance, but I am filing this bug for informational purposes for the community. I for example will need builds as I transition to newer a newer oe-core.

In package.bbclass around 3.1.25, code was introduced to use gzip to compress extended pkgdata. This introduced non-determinism because gzip by default adds a timestamp to gzip header. This means that do_package output signature changes with each rebuild reducing the amount of sstate reuse.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99017</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-05-16 14:51:29 +0000</bug_when>
    <thetext>Thanks for the report and patch. 
As you said, dunfell is no longer maintained so this likely won&apos;t be patched.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>5046</attachid>
            <date>2024-05-15 16:27:07 +0000</date>
            <delta_ts>2024-05-15 16:27:07 +0000</delta_ts>
            <desc>Initial fix for the bug</desc>
            <filename>0001-classes-package-Change-gzip-to-use-mtime-0.patch</filename>
            <type>application/mbox</type>
            <size>1230</size>
            <attacher name="Jate Sujjavanich">jatedev</attacher>
            
              <data encoding="base64">RnJvbSA0ZDY4ZDg5MDc4NTM2OGIwNWUzZTFiMGRhM2IxMzE2NWI1YjA0NzEwIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBKYXRlIFN1amphdmFuaWNoIDxqYXRlZGV2QGdtYWlsLmNvbT4K
RGF0ZTogV2VkLCAxNSBNYXkgMjAyNCAxNjoyMzowNCArMDAwMApTdWJqZWN0OiBbUEFUQ0hdIGNs
YXNzZXMvcGFja2FnZTogQ2hhbmdlIGd6aXAgdG8gdXNlIG10aW1lPTAKClRoaXMgcmVtb3ZlcyBi
dWlsZCB0aW1lc3RhbXAgZnJvbSB0aGUgZXh0ZW5kZWQgcGtnZGF0YSBnemlwIG91dHB1dCBhbmQK
YWxsb3dzIHJlcHJvZHVjaWJsZSBidWlsZHMKLS0tCiBtZXRhL2NsYXNzZXMvcGFja2FnZS5iYmNs
YXNzIHwgNCArKy0tCiAxIGZpbGUgY2hhbmdlZCwgMiBpbnNlcnRpb25zKCspLCAyIGRlbGV0aW9u
cygtKQoKZGlmZiAt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