New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CA-drvs] nix-store --repair-path creates files with invalid atime and mtime #4830
Comments
ok, I was able to create a Makefile skeleton which repros the make behavoir partially: t: /nix/store/<random existing store path>-source/<random existing file>
echo 1 $^ > $@ log when broken:
log when working:
This probably means that this is not a simple bug in Nix, but something else.... but I don't know what's going wrong there... |
interesting: |
I can’t reproduce this (neither using my main store, or with |
wget https://ytrizja.de/misc/libarchive-source.nar
mkdir -p /root/tmp-store
nix-store --store /root/tmp-store --restore /root/tmp-store/vv2ksh443zynl57zvw3vihq9v0znzlbv-source < ./libarchive-source.nar
stat /root/tmp-store/vv2ksh443zynl57zvw3vihq9v0znzlbv-source/CMakeLists.txt result with Nix 2.4pre20210506_db6ab75 and 2.4pre20210514_de9e43c
Sadly, this does not reproduce the problem at all... try to repair using nix 2.4pre20210506_db6ab75but nix 2.4pre20210506_db6ab75 does indeed restore it correctly:
(although I have now two buggy nix versions on that machine, I'll try to continue from here (e.g. trying to install a more recent nix version, which has fewer bugs)) |
P.S: tried to fix it for now using: unshare -m
# in the newly opened shell:
mount -o remount,rw /nix/store
find /nix/store/vv2ksh443zynl57zvw3vihq9v0znzlbv-source/build -print -exec touch -r /nix/store/vv2ksh443zynl57zvw3vihq9v0znzlbv-source/CMakeLists.txt '{}' +
exit
|
with the newest nix version Nix 2.4pre20210529_1f39092, this also seems to happen with fixed-output derivations. |
I marked this as stale due to inactivity. → More info |
Describe the bug
discovered while compiling
dosfstools
:e.g.
Steps To Reproduce
unknown
Expected behavior
the timestamps should be proper normalized.
nix-env --version
outputAdditional context
The text was updated successfully, but these errors were encountered: