Comment 1 for bug 2052986

Revision history for this message
Dalton Durst (universalsuperbox) wrote :

I've attached a patch which backports the upstream commit 942b30e9 to noble, with included changelog (you'll probably need to mangle further since I'm not the uploader, but I tried). This change builds successfully (with dh_auto_test) and works on amd64 and arm64.

I also tested various commands from the faketime manpage and all returned as appropriate. I won't bore you with them here.

  $ faketime -f '1970-01-01 00:00:01' stat Makefile
    File: Makefile
    Size: 1006 Blocks: 8 IO Block: 4096 regular file
  Device: 0,57 Inode: 2251351 Links: 1
  Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
  Access: 1970-01-01 00:00:01.000000000 +0000
  Modify: 1970-01-01 00:00:01.000000000 +0000
  Change: 1970-01-01 00:00:01.000000000 +0000
  Birth: 1970-01-01 00:00:01.000000000 +0000
  $ faketime -f '1970-01-01 00:00:01' date -R
  Thu, 01 Jan 1970 00:00:01 +0000
  $ apt policy faketime
  faketime:
    Installed: 0.9.10-2.1ubuntu1
    Candidate: 0.9.10-2.1ubuntu1
    Version table:
  *** 0.9.10-2.1ubuntu1 100
          100 /var/lib/dpkg/status
      0.9.10-2.1 500
          500 http://ports.ubuntu.com/ubuntu-ports noble/universe arm64 Packages