[Rpm-maint] [rpm-software-management/rpm] Move all time related APIs to 64 bit (#1229)

Panu Matilainen notifications at github.com
Thu Feb 1 08:05:08 UTC 2024


AFAICS we have precisely five relevant time-related APIs:
- rpmfiFMtime()
- rpmfilesFMtime()
- rpmtsTid()
- rpmtsSetTid() 
- pgpDigParamsCreationTime()

Mtime and tid are stored in a uint32_t tag in the package as per RPM v3/v4 spec, former at build and latter at install-time. OpenPGP timestamps are stored in uint32_t by specification. 

As uint32_t is good up to 2106, there's a fair amount of pain with *zero* benefit to us or anybody else for bothering with the timestamp format in packages, so dropping the fileformat label from here, we're not changing it in v6 either. The APIs are a different matter, we can move them to time_t at a suitable opportuinty (next soname bump) to move the burden of dealing with (theoretical) time_t truncation from API consumers to rpm internals where we can bury it with a small ceremony. I have a very hard time believing rpm to be still around at 2106.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1229#issuecomment-1920724526
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/1229/1920724526 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240201/c7103229/attachment-0001.html>


More information about the Rpm-maint mailing list