1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-06 01:57:40 +00:00

Fix build with ghc 6.8.2.

This commit is contained in:
Oliver Braun 2008-02-28 21:26:08 +00:00
parent d11098027e
commit 2eb1a06def
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=208141
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- src/hmake/Config.hs.orig 2006-07-07 18:01:16.000000000 +0200
+++ src/hmake/Config.hs 2008-02-28 22:18:01.000000000 +0100
@@ -267,7 +267,7 @@
else do -- 5.00 and above
pkgcfg <- runAndReadStdout (escape ghcpath++" --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

View File

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