mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 18:33:00 +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
|
if [ -d "$fn" ]; then
|
||||||
|
|
||||||
stripHash "$fn"
|
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
|
else
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user