<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>34203</bug_id>
          
          <creation_ts>2017-11-16 06:51:50 +0300</creation_ts>
          <short_desc>Add SOURCE_DATE_EPOCH support</short_desc>
          <delta_ts>2017-11-20 19:32:48 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>gear</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>34214</blocked>
    
    <blocked>34105</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Dmitry V. Levin">ldv</reporter>
          <assigned_to name="Dmitry V. Levin">ldv</assigned_to>
          <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>legion</cc>
    
    <cc>placeholder</cc>
    
    <cc>vseleznv</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>167275</commentid>
    <comment_count>0</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2017-11-16 06:51:50 +0300</bug_when>
    <thetext>When gear executes a command and passes it a pkg.tar generated from a tag object,
it should pass to this command a SOURCE_DATE_EPOCH environment variable initialized from the tag object: if the tag object is signed, SOURCE_DATE_EPOCH should be defined to the signature time, otherwise to the time saved in tagger entry.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167356</commentid>
    <comment_count>1</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2017-11-20 16:37:05 +0300</bug_when>
    <thetext>Alternatively, when given a tag object, gear can ignore the signature time and always use the time saved in tagger entry, assuming that in signed tags the time saved in tagger entry is also signed.

In addition, when given a commit object, gear can use the time saved in committer entry.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167359</commentid>
    <comment_count>2</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2017-11-20 18:39:40 +0300</bug_when>
    <thetext>I&apos;m going to implement the following change:

When gear extracts from a tag object, it would set $SOURCE_DATE_EPOCH
to the tagger timestamp before invoking an external command.
Likewise, when gear extracts from a commit object, it would set $SOURCE_DATE_EPOCH
to the committer timestamp before invoking an external command.

When $SOURCE_DATE_EPOCH is set, gear-command-tar would specify tar --mtime option,
thus setting mtime of files in the pkg.tar to $SOURCE_DATE_EPOCH.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167362</commentid>
    <comment_count>3</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2017-11-20 19:32:48 +0300</bug_when>
    <thetext>gear-2.1.1-alt1 -&gt; sisyphus:

Mon Nov 20 2017 Dmitry V. Levin &lt;ldv@altlinux&gt; 2.1.1-alt1
- Applied bash4 compatibility workaround (closes: #32147).
- Added SOURCE_DATE_EPOCH support (closes: #34203).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>