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: ports/135840: [PATCH] lang/ghc: Unbreak build Message-ID: <200906191429.n5JETfdT029307@roadrunner.spoerlein.net> Resent-Message-ID: <200906191440.n5JEe3OY051283@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 135840 >Category: ports >Synopsis: [PATCH] lang/ghc: Unbreak build >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jun 19 14:40:02 UTC 2009 >Closed-Date: >Last-Modified: >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: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906191429.n5JETfdT029307>