mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-09 02:22:18 +00:00
Fix build with ghc 6.8.2.
This commit is contained in:
parent
d11098027e
commit
2eb1a06def
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=208141
11
devel/hs-hmake/files/patch-src-hmake-Config.hs
Normal file
11
devel/hs-hmake/files/patch-src-hmake-Config.hs
Normal 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
|
11
devel/hs-hmake/files/patch-src-hmake-PackageConfig.hs
Normal file
11
devel/hs-hmake/files/patch-src-hmake-PackageConfig.hs
Normal 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
|
Loading…
Reference in New Issue
Block a user