Why does it say it's compiled in the 80's?

I’m getting some weird compilation dates and kernel versions

$ cec-client -i
libCEC version: 6.0.2,  compiled on 1980-01-01 00:00:00 by nixbld on Linux 6.1.62 (aarch64), features: P8_USB, DRM, P8_detect
$ uname -a
Linux pi 6.6.6 #1-NixOS SMP Mon Dec 11 09:40:17 UTC 2023 aarch64 GNU/Linux
  nixpkgs.overlays = [
    (self: super: {
      libcec = super.libcec.override { inherit (self) libraspberrypi; };
    }
    )
  ];

1 Like

Nix builds software in a sandbox to enhance reproducibility. Part of that sandbox is that it sets all file modify/create dates to a specific time, I think the Unix epoch.

It seems that it also sets a fake time for the build process, so that all builds are occurring at the same time as far as the compiler is aware.

4 Likes