Debian Patches

Status for faketime/0.9.12-0.2

Patch Description Author Forwarded Bugs Origin Last update
fix-utimensat-futimens-fake-now-handling.patch Fix utimensat/futimens handling of fake "now"
Use fake_clock_gettime(CLOCK_REALTIME) to resolve NULL/UTIME_NOW
timestamps instead of reconstructing them from user_offset. This
avoids invalid timestamp handling in start-at faketime mode, where
"now" is derived from the configured base time plus elapsed real time.
Aquila Macedo <aquilamacedo@riseup.net> no upstream, e8a1c1fd3b265db7071823398591dc592ec8e65d 2026-03-27
add-regression-test-for-utimens-now.patch Add regression test for utimensat/futimens now handling
Exercise the NULL and UTIME_NOW timestamp paths in timetest so the
file-timestamp "set to now" case is covered by the test suite.
Aquila Macedo <aquilamacedo@riseup.net> no upstream, 483a7a703cd614452e096aa6a483cbf834c8b069 2026-03-27
fix-utime-utimes-fake-now.patch Fix fake "now" handling for utime and utimes
Resolve utime(..., NULL) and utimes(..., NULL) through the current fake
CLOCK_REALTIME instead of deriving "now" from local timeval state.

This matches the real dpkg-source failure mode seen under
FAKETIME='@2037-01-01 00:00:00', where touching .pc/applied-patches
ended up reaching utimensat() with an invalid explicit timespec and
failing with EINVAL.

Follow-up to #535
Aquila Macedo <aquilamacedo@riseup.net> no upstream, 097ce79771fe94f7e887984c154eecb3d362c585 2026-03-30
add-regression-test-utime-utimes-now.patch Add regression coverage for utime and utimes "now" handling
Extend timetest to exercise utime(path, NULL) and utimes(path, NULL), so
the older file timestamp wrappers are covered alongside the existing
utimensat()/futimens() "set to now" checks.

Backported to Debian by: Aquila Macedo Costa <aquila@debian.org>.
Aquila Macedo <aquilamacedo@riseup.net> no upstream, 4aa0077bfc2503dc42c34ee69e95b7c5a6948930 2026-03-30
fix-blhc-test-build-flags.patch Honor standard build flags in test Makefile
Pass CPPFLAGS and LDFLAGS through the test build rules so externally
provided compiler and linker flags are applied consistently.

This fixes the Debian blhc warnings, but the change is not specific to
Debian and improves portability of the test build in general.
Aquila Macedo <aquilamacedo@riseup.net> no 2026-03-30

All known versions for source package 'faketime'

Links