Bug 34202 - Add SOURCE_DATE_EPOCH support
Summary: Add SOURCE_DATE_EPOCH support
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: hasher (show other bugs)
Version: unstable
Hardware: all Linux
: P3 enhancement
Assignee: Dmitry V. Levin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks: 34214 34105
  Show dependency tree
 
Reported: 2017-11-16 06:51 MSK by Dmitry V. Levin
Modified: 2017-11-20 19:26 MSK (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.