Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Jan 2004 13:36:33 +0100
From:      Holger Lamm <holger@e-gitt.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/61012: Fix: mldonkey fails to build with ocaml 3.07
Message-ID:  <E1AeCvJ-000OHM-00@obh.snafu.de>
Resent-Message-ID: <200401071240.i07CeACq031289@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         61012
>Category:       ports
>Synopsis:       Fix: mldonkey fails to build with ocaml 3.07
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 07 04:40:10 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Holger Lamm
>Release:        FreeBSD 4.9-RC i386
>Organization:
>Environment:
System: FreeBSD gruft.de 4.9-RC FreeBSD 4.9-RC #32: Fri Oct 3 09:40:50 CEST 2003 root@gruft.de:/usr/obj/usr/src/sys/EXPRESS i386


	
>Description:

Under the updated version of ocaml, mldonkey fails to build.

>How-To-Repeat:

Try to compile net/mldonkey with ocaml-3.07_1 installed

>Fix:

diff -Nur mldonkey.orig/Makefile mldonkey/Makefile
--- mldonkey.orig/Makefile	Wed Jan  7 13:30:17 2004
+++ mldonkey/Makefile	Wed Jan  7 13:28:50 2004
@@ -18,7 +18,7 @@
 BUILD_DEPENDS=	ocamlc:${PORTSDIR}/lang/ocaml
 
 GNU_CONFIGURE=	yes
-CONFIGURE_ARGS=	--enable-pthread
+CONFIGURE_ARGS=	--enable-pthread --enable-ocamlver=3
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION:C/\.(.)$/-\1/}
 USE_GMAKE=	yes
 ALL_TARGET=	depend opt
diff -Nur mldonkey.orig/files/patch-configure mldonkey/files/patch-configure
--- mldonkey.orig/files/patch-configure	Thu Jan  1 01:00:00 1970
+++ mldonkey/files/patch-configure	Wed Jan  7 13:24:45 2004
@@ -0,0 +1,11 @@
+--- config/configure.orig	Sun Oct 12 20:41:28 2003
++++ config/configure	Wed Jan  7 13:24:29 2004
+@@ -3651,7 +3651,7 @@
+ 
+ case "$OCAMLVERSION" in
+   3.06) TYPE_FORMAT="";;
+-  3.07) TYPE_FORMAT="";;
++  3.07*) TYPE_FORMAT="";;
+   *) TYPE_FORMAT="type ('a,'b,'c) ml_format = ('a,'b, 'c,'c) format  type ('a,'b,'c) format = ('a,'b, 'c) ml_format";;
+ esac		    
+ 
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1AeCvJ-000OHM-00>