setting SOURCE_DATE_EPOCH=1576713600 where is that coming from and how can it be killed in F31? "Reproducible Builds" are nice but not wanted for local builds unconditional [root@srv-rhsoft:/scripts/profile-php-binaries]$ ./versions.sh PHP 7.2.27-thelounge-sandybridge-fc31 (cli) (built: Jan 19 2020 00:00:00) ( NTS ) -rwxr-xr-x 1 harry verwaltung 5,9M 2020-01-21 23:21 /scripts/profile-php-binaries/7.2/sapi/cli/php -rw-r--r-- 1 harry verwaltung 5,8M 2020-01-21 23:21 /scripts/profile-php-binaries/7.2/libs/libphp7.so PHP 7.3.15-thelounge-sandybridge-fc31 (cli) (built: Jan 19 2020 00:00:00) ( NTS ) -rwxr-xr-x 1 harry verwaltung 5,8M 2020-01-21 23:27 /scripts/profile-php-binaries/7.3/sapi/cli/php -rw-r--r-- 1 harry verwaltung 5,7M 2020-01-21 23:27 /scripts/profile-php-binaries/7.3/libs/libphp7.so PHP 7.4.3-thelounge-sandybridge-fc31 (cli) (built: Jan 19 2020 00:00:00) ( NTS ) -rwxr-xr-x 1 harry verwaltung 6,6M 2020-01-21 23:34 /scripts/profile-php-binaries/7.4/sapi/cli/php -rw-r--r-- 1 harry verwaltung 6,5M 2020-01-21 23:34 /scripts/profile-php-binaries/7.4/libs/libphp7.so PHP 8.0.0-thelounge-sandybridge-fc31 (cli) (built: Jan 19 2020 00:00:00) ( NTS ) -rwxr-xr-x 1 harry verwaltung 6,5M 2020-01-21 23:44 /scripts/profile-php-binaries/8.0/sapi/cli/php -rw-r--r-- 1 harry verwaltung 6,4M 2020-01-21 23:44 /scripts/profile-php-binaries/8.0/libs/libphp.so
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 -----------------------------