redo a change I lost somewhere
fixes ghc spain in i386 container on amd64 host
This commit is contained in:
parent
49383915e7
commit
a3206d45d6
|
@ -11,6 +11,7 @@ import System.PosixCompat
|
||||||
|
|
||||||
import Propellor
|
import Propellor
|
||||||
import qualified Propellor.Property.Docker as Docker
|
import qualified Propellor.Property.Docker as Docker
|
||||||
|
import qualified Propellor.Property.Docker.Shim as DockerShim
|
||||||
import Utility.FileMode
|
import Utility.FileMode
|
||||||
import Utility.SafeCommand
|
import Utility.SafeCommand
|
||||||
|
|
||||||
|
@ -53,6 +54,7 @@ processCmdLine = go =<< getArgs
|
||||||
|
|
||||||
defaultMain :: [HostName -> Maybe [Property]] -> IO ()
|
defaultMain :: [HostName -> Maybe [Property]] -> IO ()
|
||||||
defaultMain getprops = do
|
defaultMain getprops = do
|
||||||
|
DockerShim.cleanEnv
|
||||||
checkDebugMode
|
checkDebugMode
|
||||||
cmdline <- processCmdLine
|
cmdline <- processCmdLine
|
||||||
debug ["command line: ", show cmdline]
|
debug ["command line: ", show cmdline]
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
--
|
--
|
||||||
-- Note: This is currently Debian specific, due to glibcLibs.
|
-- Note: This is currently Debian specific, due to glibcLibs.
|
||||||
|
|
||||||
module Propellor.Property.Docker.Shim (setup, file) where
|
module Propellor.Property.Docker.Shim (setup, cleanEnv, file) where
|
||||||
|
|
||||||
import Propellor
|
import Propellor
|
||||||
import Utility.LinuxMkLibs
|
import Utility.LinuxMkLibs
|
||||||
|
@ -44,6 +44,9 @@ setup propellorbin dest = do
|
||||||
modifyFileMode shim (addModes executeModes)
|
modifyFileMode shim (addModes executeModes)
|
||||||
return shim
|
return shim
|
||||||
|
|
||||||
|
cleanEnv :: IO ()
|
||||||
|
cleanEnv = void $ unsetEnv "GCONV_PATH"
|
||||||
|
|
||||||
file :: FilePath -> FilePath -> FilePath
|
file :: FilePath -> FilePath -> FilePath
|
||||||
file propellorbin dest = dest </> takeFileName propellorbin
|
file propellorbin dest = dest </> takeFileName propellorbin
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue