From nobody@FreeBSD.org  Sun Dec 31 19:58:26 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id CED4D16A403
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 31 Dec 2006 19:58:26 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id C05D313C448
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 31 Dec 2006 19:58:26 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id kBVJwQKx068249
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 31 Dec 2006 19:58:26 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id kBVJwQpr068248;
	Sun, 31 Dec 2006 19:58:26 GMT
	(envelope-from nobody)
Message-Id: <200612311958.kBVJwQpr068248@www.freebsd.org>
Date: Sun, 31 Dec 2006 19:58:26 GMT
From: Brandon S Allbery KF8NH<allbery@ece.cmu.edu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: lang/ghc fails to properly find readline and misbuilds
X-Send-Pr-Version: www-3.0

>Number:         107380
>Category:       ports
>Synopsis:       lang/ghc fails to properly find readline and misbuilds
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    haskell
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 31 20:00:30 GMT 2006
>Closed-Date:    Mon Jan 22 08:08:15 GMT 2007
>Last-Modified:  Mon Jan 22 08:08:15 GMT 2007
>Originator:     Brandon S Allbery KF8NH
>Release:        6.2-PRERELEASE
>Organization:
Carnegie Mellon University
>Environment:
FreeBSD rushlight.kf8nh.com 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #4: Mon Dec 25 01:38:05 EST 2006     root@rushlight.kf8nh.com:/usr/obj/usr/src/sys/TIRUN  i386
>Description:
The lang/ghc port builds ghc (which is written in ghc) by using a minimal bootstrap compiler distribution.  The ghc build is patched to use this uninstalled bootstrap compiler "in place".  Unfortunately, this patching is incomplete; the configure script in the ghc/ subdirectory wants to run the ghc-pkg command from the bootstrap compiler, but fails to find it.  This results in ghc building with incomplete readline support, so that running ghci results in a prompt in raw tty mode with no line editing capabilities.  (In a proper bootstrap situation, building the stage1 compiler would be followed by building stage2 and stage3; these later stages do not use the bootstrap ghc-pkg, so would correctly detect readline.)

>How-To-Repeat:
cd /usr/ports/lang/ghc
make install clean
# hash -r or rehash as needed
ghci
>Fix:
There are two possible ways to fix this:  patch ghc/configure to run the bootstrap ghc-pkg, or arrange for bootstrap ghc-pkg to be in $PATH.  (Presumably this also requires something to be done about libgmp.so.6, but that's also true for the bootstrap ghc itself.)  It's up to the port maintainer to decide which is preferable.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->haskell 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun Dec 31 20:00:42 UTC 2006 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=107380 

From: Volker Stolz <vs@FreeBSD.org>
To: bug-followup@FreeBSD.org, allbery@ece.cmu.edu
Cc:  
Subject: Re: ports/107380: lang/ghc fails to properly find readline and misbuilds
Date: Tue, 9 Jan 2007 09:35:35 +0800

 You're right, it's broken. I'm currently working on an upgrade anyway  
 and will fix this on my way there (but please don't hold your breath,  
 I have to do this in a slow VirtualPC environment). Thanks for the  
 analysis!
 
 Volker
State-Changed-From-To: open->closed 
State-Changed-By: vs 
State-Changed-When: Mon Jan 22 08:06:26 UTC 2007 
State-Changed-Why:  
Fix in update to 6.6. Thanks for your submission! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=107380 
>Unformatted:
