[Rpm-maint] [rpm-software-management/rpm] Allow SOURCE_DATE_EPOCH to override file timestamps (#144)

Bernhard M. Wiedemann notifications at github.com
Wed Feb 1 20:59:03 UTC 2017


Limit the maximum date to SOURCE_DATE_EPOCH, if defined
similar to the tar --clamp-mtime option

based on a patch by Nicolas Vigier <boklm at torproject.org>

together with previously merged
#143 
b8a54d6a1e9bb6140b6b47e23dc707e4b967537e from @boklm
22588250baa1bfa5c00f57d39329d0c144fc8112

This allows rpmbuild to produce bit-by-bit identical rpms on different hosts when setting rpmmacros to
```
%_buildhost reproducible
%source_date_epoch_from_changelog Y
%clamp_mtime_to_source_date_epoch Y
```

macro is needed, because not everyone might want it, as it is known to affect python packages that include .pyc files which reference the original timestamp. Those will still work but re-compile on demand.
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/144

-- Commit Summary --

  * Allow SOURCE_DATE_EPOCH to override file timestamps

-- File Changes --

    M build/files.c (33)
    M macros.in (5)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/144.patch
https://github.com/rpm-software-management/rpm/pull/144.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/144
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20170201/3691f85d/attachment.html>


More information about the Rpm-maint mailing list