Date: Mon, 25 Feb 2008 02:14:30 -0800 (PST) From: Jacula Modyun <jacula@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/121075: devel/hs-hmake: Can't find ghc includes Message-ID: <200802251014.m1PAEQde066226@splork.wirewater.yow> Resent-Message-ID: <200802251020.m1PAK1WH028534@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 121075 >Category: ports >Synopsis: devel/hs-hmake: Can't find ghc includes >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Feb 25 10:20:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Jacula Modyun >Release: FreeBSD 7.0-PRERELEASE i386 >Organization: >Environment: System: FreeBSD splork.wirewater.yow 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #0: Sat Jan 19 15:48:03 UTC 2008 root@splork.wirewater.yow:/usr/obj/usr/src/sys/JACULA i386 >Description: Building the port devel/hs-hmake I obtain this error: ghc -i../cpphs -o /usr/portsbuild/usr/ports/devel/hs-hmake/work/hmake-3.13/lib/ix86-FreeBSD/runhs /usr/portsbuild/usr/ports/devel/hs-hmake/work/hmake-3.13/targets/ix86-FreeBSD/obj/hmake/runhs.o sh /usr/portsbuild/usr/ports/devel/hs-hmake/work/hmake-3.13/targets/ix86-FreeBSD/hmake3.config hmake-config: Starting new config file in /usr/portsbuild/usr/ports/devel/hs-hmake/work/hmake-3.13/lib/ix86-FreeBSD/hmakerc MkConfig: user error (Can't find ghc includes at /usr/local/lib/ghc-6.8.2/imports) MkConfig: user error (Can't find ghc includes at /usr/local/lib/ghc-6.8.2/imports) MkConfig: user error (Can't find ghc includes at /usr/local/lib/ghc-6.8.2/imports) MkConfig: user error (Can't find ghc includes at /usr/local/lib/ghc-6.8.2/imports) hmake-config: compiler not known: 'ghc' gmake[1]: *** [config] Error 2 gmake[1]: Leaving directory `/usr/portsbuild/usr/ports/devel/hs-hmake/work/hmake-3.13/src/hmake' gmake: *** [targets/ix86-FreeBSD/hmake-ghc] Error 2 *** Error code 2 Stop in /usr/ports/devel/hs-hmake. >How-To-Repeat: >Fix: --- patch-devel-hs-hmake begins here --- diff -uNr hs-hmake.orig/files/patch-src-hmake-Config.hs hs-hmake/files/patch-src-hmake-Config.hs --- hs-hmake.orig/files/patch-src-hmake-Config.hs 1970-01-01 00:00:00.000000000 +0000 +++ hs-hmake/files/patch-src-hmake-Config.hs 2008-02-25 09:49:19.000000000 +0000 @@ -0,0 +1,11 @@ +--- src/hmake/Config.hs.orig 2006-07-07 16:01:16.000000000 +0000 ++++ src/hmake/Config.hs 2008-02-25 09:48:20.000000000 +0000 +@@ -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 diff -uNr hs-hmake.orig/files/patch-src-hmake-PackageConfig.hs hs-hmake/files/patch-src-hmake-PackageConfig.hs --- hs-hmake.orig/files/patch-src-hmake-PackageConfig.hs 1970-01-01 00:00:00.000000000 +0000 +++ hs-hmake/files/patch-src-hmake-PackageConfig.hs 2008-02-25 09:51:53.000000000 +0000 @@ -0,0 +1,11 @@ +--- src/hmake/PackageConfig.hs.orig 2006-08-21 15:30:46.000000000 +0000 ++++ src/hmake/PackageConfig.hs 2008-02-25 09:51:14.000000000 +0000 +@@ -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 --- patch-devel-hs-hmake ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802251014.m1PAEQde066226>