Bug 34202

Summary: Add SOURCE_DATE_EPOCH support
Product: Sisyphus Reporter: Dmitry V. Levin <ldv>
Component: hasherAssignee: Dmitry V. Levin <ldv>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: enhancement    
Priority: P3 CC: at, glebfm, ldv, placeholder, vseleznv
Version: unstable   
Hardware: all   
OS: Linux   
Bug Depends on:    
Bug Blocks: 34214, 34105    

Description Dmitry V. Levin 2017-11-16 06:51:42 MSK
hasher-priv should forward SOURCE_DATE_EPOCH environment variable to chrootuid'ed processes.
Comment 1 Dmitry V. Levin 2017-11-20 05:34:30 MSK
Alternatively, hasher should forward SOURCE_DATE_EPOCH environment variable to rpmbuild.
Comment 2 Dmitry V. Levin 2017-11-20 17:34:18 MSK
I'm going to implement the following change:

* when building from pkg.tar, use specfile mtime as SOURCE_DATE_EPOCH;
* when building from src.rpm, use buildtime as SOURCE_DATE_EPOCH.
Comment 3 Repository Robot 2017-11-20 19:26:16 MSK
hasher-1.3.30-alt1 -> sisyphus:

Mon Nov 20 2017 Dmitry V. Levin <ldv@altlinux> 1.3.30-alt1
- hsh-rebuild, hsh-sh-rebuild-functions:
  implemented $SOURCE_DATE_EPOCH support (closes: #34202):
  + when building from pkg.tar, use specfile mtime as SOURCE_DATE_EPOCH;
  + when building from src.rpm, use buildtime as SOURCE_DATE_EPOCH.