Ticket #13407: patch-Install.hs

File patch-Install.hs, 616 bytes (added by bfulgham@…, 17 years ago)

Patch to build 6.8.2 under Leopard (Intel)

Line 
1--- libraries/Cabal/Distribution/Simple/Install.hs.orig 2008-01-10 20:06:31.000000000 -0800
2+++ libraries/Cabal/Distribution/Simple/Install.hs      2008-01-10 20:07:30.000000000 -0800
3@@ -168,6 +168,11 @@
4    incs <- mapM (findInc relincdirs) (installIncludes lbi)
5    unless (null incs) $ do
6      createDirectoryIfMissingVerbose verbosity True incdir
7+
8+     -- Hack to make cabal work with packaging systems
9+     -- that expect to be able to delete empty directories:
10+     writeFile (incdir ++ ".cabalTurd") ""
11+
12      sequence_ [ copyFileVerbose verbosity path (incdir </> f)
13               | (f,path) <- incs ]
14   where