From uspoerlein@gmail.com  Fri Jun 19 14:30:00 2009
Return-Path: <uspoerlein@gmail.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 27AC4106564A;
	Fri, 19 Jun 2009 14:30:00 +0000 (UTC)
	(envelope-from uspoerlein@gmail.com)
Received: from acme.spoerlein.net (cl-43.dus-01.de.sixxs.net [IPv6:2a01:198:200:2a::2])
	by mx1.freebsd.org (Postfix) with ESMTP id 930568FC22;
	Fri, 19 Jun 2009 14:29:59 +0000 (UTC)
	(envelope-from uspoerlein@gmail.com)
Received: from roadrunner.spoerlein.net (e180155202.adsl.alicedsl.de [85.180.155.202])
	by acme.spoerlein.net (8.14.3/8.14.3) with ESMTP id n5JETlWr087812
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Fri, 19 Jun 2009 16:29:47 +0200 (CEST)
	(envelope-from uspoerlein@gmail.com)
Received: from roadrunner.spoerlein.net (localhost [127.0.0.1])
	by roadrunner.spoerlein.net (8.14.3/8.14.3) with ESMTP id n5JETfQn029308
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Fri, 19 Jun 2009 16:29:41 +0200 (CEST)
	(envelope-from uqs@roadrunner.spoerlein.net)
Received: (from uqs@localhost)
	by roadrunner.spoerlein.net (8.14.3/8.14.3/Submit) id n5JETfdT029307;
	Fri, 19 Jun 2009 16:29:41 +0200 (CEST)
	(envelope-from uqs)
Message-Id: <200906191429.n5JETfdT029307@roadrunner.spoerlein.net>
Date: Fri, 19 Jun 2009 16:29:41 +0200 (CEST)
From: Ulrich Spoerlein <uqs@spoerlein.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc: haskell@freebsd.org
Subject: [PATCH] lang/ghc: Unbreak build
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         135840
>Category:       ports
>Synopsis:       [PATCH] lang/ghc: Unbreak build
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    haskell
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 19 14:40:02 UTC 2009
>Closed-Date:    Sat Jun 20 07:59:17 UTC 2009
>Last-Modified:  Sat Jun 20 07:59:17 UTC 2009
>Originator:     Ulrich Spoerlein
>Release:        FreeBSD 7.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD roadrunner.spoerlein.net 7.2-STABLE FreeBSD 7.2-STABLE #3: Tue May 12 01:29:29 CEST 2009
>Description:
- don't clobber CFLAGS (pet portlint)
- bootstrap the 'pwd' tool to make the build complete

Port maintainer (haskell@FreeBSD.org) is cc'd.
Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- ghc-6.8.3_5.patch begins here ---
Index: Makefile
===================================================================
RCS file: /tank/ncvs/ports/lang/ghc/Makefile,v
retrieving revision 1.77
diff -u -p -u -r1.77 Makefile
--- Makefile	18 Jun 2009 20:37:30 -0000	1.77
+++ Makefile	19 Jun 2009 14:28:41 -0000
@@ -94,7 +94,7 @@ BOOT_GHC=	${BOOT_DIR}/bin/ghc-${GHC_VERS
 CONFIGURE_ARGS+=	--with-ghc=${BOOT_GHC}  --with-gcc=${CC} \
 	--with-gmp-includes=${LOCALBASE}/include --with-gmp-libraries=${LOCALBASE}/lib
 # libgmp:
-CONFIGURE_ENV+=	CFLAGS=-I${LOCALBASE}/include LDFLAGS=-L${LOCALBASE}/lib
+CONFIGURE_ENV+=	CFLAGS="${CFLAGS} -I${LOCALBASE}/include" LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
 
 # override TMPDIR because /tmp often doesn't have enough space
 # to build some of the larger libraries.
@@ -154,6 +154,9 @@ post-patch:
 pre-configure:
 	@(cd ${BOOT_DIR} && ${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS} --prefix=${BOOT_DIR})
 	@(cd ${BOOT_DIR} && ${GMAKE} install)
+	# Bootstrapping is broken, build required pwd upfront
+	@(cd ${WRKSRC}/utils/pwd && ${BOOT_GHC} -o pwd pwd.hs)
+	@${MKDIR} ${TMPDIR}
 
 # Defining WITH_DOCS:
 # Defining "SLAVE" in devel/hs-haddock and
--- ghc-6.8.3_5.patch ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->haskell 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Fri Jun 19 14:40:12 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=135840 
State-Changed-From-To: open->closed 
State-Changed-By: pgj 
State-Changed-When: Sat Jun 20 07:57:51 UTC 2009 
State-Changed-Why:  
The problem has been fixed in another way.  Thank you for your 
submission, though. 

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