Bug 1793722
Summary: | setting SOURCE_DATE_EPOCH=1576713600 | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Harald Reindl <h.reindl> |
Component: | redhat-rpm-config | Assignee: | Florian Festi <ffesti> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 31 | CC: | ajax, ffesti, fweimer, igor.raits, john.j5live, jonathan, j, mjw, packaging-team-maint, pmatilai, pmoravco, praiskup, vmukhame |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-02-11 12:08:21 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Harald Reindl
2020-01-21 23:01:17 UTC
Comment hidden (abuse)
It's set in redhat-rpm-config, see https://src.fedoraproject.org/rpms/redhat-rpm-config/c/86aae600e62fadc18760d95d1fddd323cf9e9a86 To override, set %source_date_epoch_from_changelog to 0 in local macro config. don't get me wrong but "from changelog" is a pretty dumb default when the source tarball got changed, in my case https://git.php.net/?p=php-src.git;a=shortlog;h=refs/heads/PHP-7.4 because i build daily snapshots for development with "%source_date_epoch_from_changelog 0" it is still complete nonsense fresh built php snapshot - built: Feb 13 2020 10:24:17 -rw-r----- 1 builduser builduser 24K 2020-02-13 11:36 /rpmbuild/SPECS/php.spec -rw-r----- 1 builduser builduser 9.8M 2020-02-13 15:26 /rpmbuild/SOURCES/php-7.4.0.tar.xz the only way to restore sane behavior: export SOURCE_DATE_EPOCH="$(date +"%s")" to make it clear: i expect the f**g date when build was starting until said otherwise as build date as before that below is stupid hehavior afert switch to a different snapshot tarball with new bugfixes from https://git.php.net/?p=php-src.git;a=shortlog;h=refs/heads/PHP-7.4 ----------------------------- [root@srv-rhsoft:~]$ ls /usr/bin/php -rwxr-xr-x 1 root root 6,6M 2020-02-13 11:42 /usr/bin/php [root@srv-rhsoft:~]$ php -v PHP 7.4.3-thelounge-sandybridge-fc31 (cli) (built: Feb 13 2020 10:24:17) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies ----------------------------- [root@srv-rhsoft:~]$ php -v PHP 7.4.3-thelounge-sandybridge-fc31 (cli) (built: Feb 13 2020 10:24:17) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies [root@srv-rhsoft:~]$ ls /usr/bin/php -rwxr-xr-x 1 root root 6,6M 2020-02-13 15:32 /usr/bin/php ----------------------------- |