summaryrefslogtreecommitdiff
path: root/devel/hs-hmake/files/patch-src-hmake-PackageConfig.hs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--devel/hs-hmake/files/patch-src-hmake-PackageConfig.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/devel/hs-hmake/files/patch-src-hmake-PackageConfig.hs b/devel/hs-hmake/files/patch-src-hmake-PackageConfig.hs
new file mode 100644
index 000000000000..b7aa42627db9
--- /dev/null
+++ b/devel/hs-hmake/files/patch-src-hmake-PackageConfig.hs
@@ -0,0 +1,11 @@
+--- src/hmake/PackageConfig.hs.orig 2006-08-21 17:30:46.000000000 +0200
++++ src/hmake/PackageConfig.hs 2008-02-28 22:19:23.000000000 +0100
+@@ -51,7 +51,7 @@
+ else unsafePerformIO $ do
+ pkgcfg <- runAndReadStdout (ghc++" --print-libdir")
+ let libdir = escape pkgcfg
+- incdir1 = libdir++"/imports"
++ incdir1 = if ghcsym < 608 then libdir++"/imports" else libdir++"/lib"
+ ok <- doesDirectoryExist incdir1
+ if ok
+ then do