Open
Description
Describe the bug
discovered while compiling dosfstools
:
dosfstools> make: Makefile.am: Timestamp out of range; substituting 2514-05-30 01:53:03.999999999
dosfstools> make: Warning: File 'Makefile.am' has modification time 15558496220 s in the future
dosfstools> make: configure.ac: Timestamp out of range; substituting 2514-05-30 01:53:03.999999999
dosfstools> CDPATH="${ZSH_VERSION+.}:" && cd . && /nix/store/z65p5clqbxdjmix6kpml8965l20ybka8-bash-4.4-p23/bin/bash '/build/source/missing' aclocal-1.16
dosfstools> cd . && /nix/store/z65p5clqbxdjmix6kpml8965l20ybka8-bash-4.4-p23/bin/bash /build/source/missing automake-1.16 --foreign
dosfstools> CDPATH="${ZSH_VERSION+.}:" && cd . && /nix/store/z65p5clqbxdjmix6kpml8965l20ybka8-bash-4.4-p23/bin/bash '/build/source/missing' autoconf
dosfstools> cd . && /nix/store/z65p5clqbxdjmix6kpml8965l20ybka8-bash-4.4-p23/bin/bash ./config.status Makefile
dosfstools> config.status: creating Makefile
dosfstools> make: Makefile.am: Timestamp out of range; substituting 2514-05-30 01:53:03.999999999
dosfstools> make: Warning: File 'Makefile.am' has modification time 15558496215 s in the future
dosfstools> make: configure.ac: Timestamp out of range; substituting 2514-05-30 01:53:03.999999999
dosfstools> CDPATH="${ZSH_VERSION+.}:" && cd . && /nix/store/z65p5clqbxdjmix6kpml8965l20ybka8-bash-4.4-p23/bin/bash '/build/source/missing' aclocal-1.16
dosfstools> cd . && /nix/store/z65p5clqbxdjmix6kpml8965l20ybka8-bash-4.4-p23/bin/bash /build/source/missing automake-1.16 --foreign
dosfstools> CDPATH="${ZSH_VERSION+.}:" && cd . && /nix/store/z65p5clqbxdjmix6kpml8965l20ybka8-bash-4.4-p23/bin/bash '/build/source/missing' autoconf
dosfstools> cd . && /nix/store/z65p5clqbxdjmix6kpml8965l20ybka8-bash-4.4-p23/bin/bash ./config.status Makefile
e.g.
# stat /nix/store/fcwfh7ym57709z3ja46p624zwcq1fnyd-source/{Makefile.am,configure.ac}
File: /nix/store/fcwfh7ym57709z3ja46p624zwcq1fnyd-source/Makefile.am
Size: 256 Blocks: 8 IO Block: 4096 regular file
Device: 802h/2050d Inode: 10230746 Links: 2
Access: (0444/-r--r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2021-05-18 23:22:21.134854825 +0200
Modify: 1970-01-01 00:00:00.000000000 +0100
Change: 2021-05-18 23:24:10.630524636 +0200
Birth: 2021-05-10 03:07:03.638628770 +0200
File: /nix/store/fcwfh7ym57709z3ja46p624zwcq1fnyd-source/configure.ac
Size: 2445 Blocks: 8 IO Block: 4096 regular file
Device: 802h/2050d Inode: 10230750 Links: 2
Access: (0444/-r--r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2021-05-18 23:22:21.134854825 +0200
Modify: 1970-01-01 00:00:00.000000000 +0100
Change: 2021-05-18 23:24:10.626524648 +0200
Birth: 2021-05-10 03:07:03.642628821 +0200
# unshare -m
## mount -o remount,rw /nix/store
## rm -rf /nix/store/fcwfh7ym57709z3ja46p624zwcq1fnyd-source
## stat /nix/store/fcwfh7ym57709z3ja46p624zwcq1fnyd-source/{Makefile.am,configure.ac}
stat: cannot stat '/nix/store/fcwfh7ym57709z3ja46p624zwcq1fnyd-source/Makefile.am': No such file or directory
stat: cannot stat '/nix/store/fcwfh7ym57709z3ja46p624zwcq1fnyd-source/configure.ac': No such file or directory
## exit
# nix store repair /nix/store/fcwfh7ym57709z3ja46p624zwcq1fnyd-source
# stat /nix/store/fcwfh7ym57709z3ja46p624zwcq1fnyd-source/{Makefile.am,configure.ac}
File: /nix/store/fcwfh7ym57709z3ja46p624zwcq1fnyd-source/Makefile.am
Size: 256 Blocks: 8 IO Block: 4096 regular file
Device: 802h/2050d Inode: 10230746 Links: 2
Access: (0444/-r--r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2021-05-18 23:22:21.134854825 +0200
Modify: 1970-01-01 00:00:00.000000000 +0100
Change: 2021-05-18 23:26:47.270091788 +0200
Birth: 2021-05-10 03:07:03.638628770 +0200
File: /nix/store/fcwfh7ym57709z3ja46p624zwcq1fnyd-source/configure.ac
Size: 2445 Blocks: 8 IO Block: 4096 regular file
Device: 802h/2050d Inode: 10230750 Links: 2
Access: (0444/-r--r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2021-05-18 23:22:21.134854825 +0200
Modify: 1970-01-01 00:00:00.000000000 +0100
Change: 2021-05-18 23:26:47.266091798 +0200
Birth: 2021-05-10 03:07:03.642628821 +0200
Steps To Reproduce
unknown
Expected behavior
the timestamps should be proper normalized.
nix-env --version
output
# nix-env --version
nixenv (Nix) 2.4pre20210514_de9e43c
Additional context
Activity