<?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>13473</bug_id>
          
          <creation_ts>2019-08-08 15:08:16 +0000</creation_ts>
          <short_desc>systemd: build isn&apos;t reproducible</short_desc>
          <delta_ts>2019-09-12 14:54:47 +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>0.0.0</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>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.8 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</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>84617</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-08-08 15:08:16 +0000</bug_when>
    <thetext>The systemd build isn&apos;t reproducible because systemd embeds a system time epoch (so that on boot if the RTC isn&apos;t set at least the clock is set to the right decade).  This is based on the mtime of NEWS, which in a tarball is static but in a git clone will be the timestamp of the clone.  From meson.build:

time_epoch = get_option(&apos;time-epoch&apos;)
if time_epoch == -1
        NEWS = files(&apos;NEWS&apos;)
        time_epoch = run_command(stat, &apos;-c&apos;, &apos;%Y&apos;, NEWS).stdout().to_int()
endif
conf.set(&apos;TIME_EPOCH&apos;, time_epoch)

If reproducible builds are enabled, we should set time-epoch to the reproducible build timestamp instead.  This may involve removing the time-epoch PACKAGECONFIG in systemd which doesn&apos;t appear to have a purpose.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84894</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-09-05 23:05:56 +0000</bug_when>
    <thetext>Patch on the list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84939</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-09-12 14:54:47 +0000</bug_when>
    <thetext>Fixed in oe-core 29afbd4f02354de7103ee3a88f4ce5336b95b88a.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>