ports/117235: [PATCH] lang/ghc: boot package for freebsd7

Matthieu GUEGAN matt.guegan at free.fr
Tue Oct 16 08:10:03 UTC 2007


>Number:         117235
>Category:       ports
>Synopsis:       [PATCH] lang/ghc: boot package for freebsd7
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 16 08:10:03 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     Matthieu GUEGAN
>Release:        FreeBSD 7.0-PRERELEASE i386
>Organization:
>Environment:
FreeBSD 7.0-PRERELEASE #1: Thu Oct 11 15:42:50 CEST 2007
>Description:
I have made a bootstrap tarball for freebsd7 in order to compile the port. It would be nice if someone @freebsd could mirror the file as fast as possible to avoid the rush into our website.

See the attached patch file.

NOTA :
The bootstrap was made with gcc34 because gcc42 needs some tweaks to successfully compile ghc. Maybe create a -devel port for latest versions of ghc which supports gcc 4.x.y

NOTA2:
The distfiles was modified but without the freebsd6 checksum
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruN --exclude=CVS /usr/ports/lang/ghc.orig/Makefile /usr/ports/lang/ghc/Makefile
--- /usr/ports/lang/ghc.orig/Makefile	2007-10-16 09:05:00.000000000 +0200
+++ /usr/ports/lang/ghc/Makefile	2007-10-16 09:42:55.000000000 +0200
@@ -10,7 +10,8 @@
 CATEGORIES=	lang haskell
 MASTER_SITES=	http://www.haskell.org/ghc/dist/${PORTVERSION}/:source \
 		http://www.haskell.org/ghc/dist/${PORTVERSION}/FreeBSD/:boot \
-		${MASTER_SITE_LOCAL:S/$/:boot/}
+		${MASTER_SITE_LOCAL:S/$/:boot/} \
+		http://team.gcu-squad.org/~lesaint/ghc-6.6.1/gcc34/:bootemp
 MASTER_SITE_SUBDIR=vs/ghcdist/${PORTVERSION}/:boot
 DISTFILES=	ghc-${PORTVERSION}-src${EXTRACT_SUFX}:source \
 		ghc-${PORTVERSION}-src-extralibs${EXTRACT_SUFX}:source
@@ -22,12 +23,14 @@
 
 BOOT_DIST4=	ghc-${PORTVERSION}-i386-unknown-freebsd4-boot${EXTRACT_SUFX}:boot
 BOOT_DIST5=	ghc-${PORTVERSION}-i386-unknown-freebsd5-boot${EXTRACT_SUFX}:boot
-BOOT_DIST=	ghc-${PORTVERSION}-i386-unknown-freebsd6-boot${EXTRACT_SUFX}:boot
+BOOT_DIST6=	ghc-${PORTVERSION}-i386-unknown-freebsd6-boot${EXTRACT_SUFX}:boot
+BOOT_DIST=	ghc-${PORTVERSION}-i386-unknown-freebsd7-boot${EXTRACT_SUFX}:bootemp
 
 USE_AUTOTOOLS=	autoconf:261:env
 USE_BZIP2=	yes
 LIB_DEPENDS+=	gmp.7:${PORTSDIR}/math/libgmp4
 
+USE_GCC=	3.4
 USE_PERL5=	yes
 USE_GMAKE=	yes
 GNU_CONFIGURE=	yes
@@ -37,9 +40,9 @@
 .include <bsd.port.pre.mk>
 
 .if ${OSVERSION} >= 700000
-IGNORE=		unsupported at the moment
-.elif ${OSVERSION} >= 600000
 DISTFILES+=	${BOOT_DIST}
+.elif ${OSVERSION} >= 600000
+DISTFILES+=	${BOOT_DIST6}
 .else
 IGNORE=		unsupported at the moment
 #DISTFILES+=	${BOOT_DIST5}
diff -ruN --exclude=CVS /usr/ports/lang/ghc.orig/distinfo /usr/ports/lang/ghc/distinfo
--- /usr/ports/lang/ghc.orig/distinfo	2007-10-16 09:05:00.000000000 +0200
+++ /usr/ports/lang/ghc/distinfo	2007-10-16 09:05:19.000000000 +0200
@@ -4,6 +4,6 @@
 MD5 (ghc-6.6.1-src-extralibs.tar.bz2) = 43a26b81608b206c056adc3032f7da2a
 SHA256 (ghc-6.6.1-src-extralibs.tar.bz2) = d162a82fc388fdd48c327b09bb6d778f2313d12d5282f3b120ac08a5d4e78902
 SIZE (ghc-6.6.1-src-extralibs.tar.bz2) = 1928527
-MD5 (ghc-6.6.1-i386-unknown-freebsd6-boot.tar.bz2) = 8d602900f847944a0af07689c8179fe3
-SHA256 (ghc-6.6.1-i386-unknown-freebsd6-boot.tar.bz2) = a59cfd772ab044146c6306bf9acf1f85dff8774f576926e0c6d075fd60973604
-SIZE (ghc-6.6.1-i386-unknown-freebsd6-boot.tar.bz2) = 20481192
+MD5 (ghc-6.6.1-i386-unknown-freebsd7-boot.tar.bz2) = a5c90497d839c9251fb2c44fea6caa11
+SHA256 (ghc-6.6.1-i386-unknown-freebsd7-boot.tar.bz2) = 3084cc041083b0530e551595497ac566497c4bc12c23dadc3382b8102e62a657
+SIZE (ghc-6.6.1-i386-unknown-freebsd7-boot.tar.bz2) = 22795287


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list