stdenv: Prevent issues like #4266

Don't preserve hardlinks, and instead use reflinks if they're available.
This commit is contained in:
Wout Mertens 2014-10-28 23:10:26 +01:00 committed by Peter Simons
parent 114a775254
commit c04e492898

View File

@ -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