From f80c7a800dd4379fadddf5968a8ad79207aee7c5 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sun, 21 Oct 2018 14:40:44 -0400 Subject: src: Update Propellor.Bootstrap.cabalBuild. Make the `cp` command openbsd and gnu/linux compatible. * src/Propellor/Bootstrap.hs (cabalBuild): Update function. --- src/Propellor/Bootstrap.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Propellor/Bootstrap.hs b/src/Propellor/Bootstrap.hs index eba291c4..66e6e1ff 100644 --- a/src/Propellor/Bootstrap.hs +++ b/src/Propellor/Bootstrap.hs @@ -262,8 +262,8 @@ cabalBuild msys = do -- a binary that is fully built. Also, avoid ever removing -- or breaking the symlink. -- - -- Need cp -a to make build timestamp checking work. - unlessM (boolSystem "cp" [Param "-af", Param cabalbuiltbin, Param (tmpfor safetycopy)]) $ + -- Need cp -pfRL to make build timestamp checking work. + unlessM (boolSystem "cp" [Param "-pfRL", Param cabalbuiltbin, Param (tmpfor safetycopy)]) $ error "cp of binary failed" rename (tmpfor safetycopy) safetycopy symlinkPropellorBin safetycopy -- cgit v1.2.3