mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
stdenv: Prevent issues like #4266
Don't preserve hardlinks, and instead use reflinks if they're available.
This commit is contained in:
parent
114a775254
commit
c04e492898
@ -463,7 +463,9 @@ _defaultUnpack() {
|
||||
if [ -d "$fn" ]; then
|
||||
|
||||
stripHash "$fn"
|
||||
cp -prd --no-preserve=timestamps "$fn" $strippedName
|
||||
# We can't preserve hardlinks because they may have been introduced by
|
||||
# store optimization, which might break things in the build
|
||||
cp -pr --reflink=auto --no-preserve=timestamps "$fn" $strippedName
|
||||
|
||||
else
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user