[PATCH cygport] Add initial support for SOURCE_DATE_EPOCH
Christian Franke
Christian.Franke@t-online.de
Thu Aug 24 06:36:09 GMT 2023
ASSI via Cygwin-apps wrote:
> Christian Franke via Cygwin-apps writes:
>> If binutils, gzip and tar also would support this, the patch would be
>> empty :-)
> GZip has -n though ...
For gzip I decided to keep the timestamp and use (the GNU version of)
touch instead.
> and GNU tar --mtime and --clamp-mtime, so why not use
> that?
Already done:
+ if [ -n "${SOURCE_DATE_EPOCH}" ]
+ then
+ # Ensure reproducible sort order and last modification times <=
SOURCE_DATE_EPOCH
+ TAR_SOURCE_DATE_OPTS="--sort=name --mtime=@${SOURCE_DATE_EPOCH}
--clamp-mtime"
+ fi
:-)
--
Regards,
Christian
More information about the Cygwin-apps
mailing list