<?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>11176</bug_id>
          
          <creation_ts>2017-03-17 15:02:31 +0000</creation_ts>
          <short_desc>Add optional command to rootfs-postprocess to remove non-determinism from rootfs</short_desc>
          <delta_ts>2018-04-18 18:22:05 +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.4</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>enhancement</bug_severity>
          <target_milestone>2.5 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joshua Lock">joshuagloe</reporter>
          <assigned_to name="Juro Bystricky">juro.bystricky</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>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>71392</commentid>
    <comment_count>0</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2017-03-17 15:02:31 +0000</bug_when>
    <thetext>Add optional post-process command to use strip-nondeterminism to remove sources of non-derterminism from the rootfs.

This will provide an optional &quot;hammer&quot; to improve the determinism of the system&apos;s output whilst we continue to work on the wider problem of reproducible builds with the Yocto Project.

Post-processing a rootfs with strip-nondeterminism will provide immediate benefits to users of the system performing file-based updates (i.e. we&apos;ll be better able to produce a new rootfs for processing by OSTree which only includes real changes, not just changes introduced by non-determinism).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76370</commentid>
    <comment_count>1</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2017-08-30 23:30:13 +0000</bug_when>
    <thetext>Sent a patch to ML:
https://patchwork.openembedded.org/patch/143063/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79206</commentid>
    <comment_count>2</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2018-01-24 22:29:26 +0000</bug_when>
    <thetext>Still in review...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80308</commentid>
    <comment_count>3</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2018-04-18 18:22:05 +0000</bug_when>
    <thetext>Merged:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=b8ce7d0800dc63db2786e2761b7ac97f7b59cd06

Basically, the new code executes at the very end of do_rootfs.
At present, it modifies some timestamps/mktime of some files to achieve
deterministic outcome. There may be other actions required eventually, but this was enough to build deterministic rootfs for core-image-minimal.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>