Bugzilla – Bug 1148824
Issues with %clamp_mtime_to_source_date_epoch
Last modified: 2019-09-11 07:33:44 UTC
An issue has appeared since we enabled %clamp_mtime_to_source_date_epoch for openSUSE:Factory, i.e. The files in the FTP Tree (boot/x86_64/{common,initrd,root) are being built/packaged as part of the package installation-images. Those files frequently change their content, even without i-i changing the changelog (based on depending packages, like yast, kernel, ...) The files are being extracted out of i-i's generated rpms and published on the FTP Tree. From OBS to download.o.o, rsync is being used to sync the files. the files are having unmodified mtime though, which makes rsync, in the default config, ignore/skip those files from being resynced, resulting in broken FTP Trees (uninstallable using NET installer)
%clamp_mtime_to_source_date_epoch has been disabled in openSUSE:Factory for the time being
I see some routes to solve this: 1. we could have SOURCE_DATE_EPOCH set by OBS workers for such packages to the date of the newest BuildRequires This works, because rpm follows the spec in https://github.com/rpm-software-management/rpm/pull/143/files#diff-33c4466b79132dc6647bbca750af4af6R213 2. we could adapt the extractor code to touch relevant files 3. we use %if in prjconf to exclude installation-images from %clamp_mtime_to_source_date_epoch