ports/176229: fix port: lang/mlton (build with new math/gmp in ports)
Timothy Beyer
beyert at cs.ucr.edu
Mon Feb 18 08:30:01 UTC 2013
>Number: 176229
>Category: ports
>Synopsis: fix port: lang/mlton (build with new math/gmp in ports)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Mon Feb 18 08:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Timothy Beyer
>Release: FreeBSD 9.0-RELEASE-p3 i386
>Organization:
no organization
>Environment:
System: FreeBSD aeonserv.aeonnet 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #12: Mon Jul 23 14:37:57 PDT 2012 root at aeonserv.aeonnet:/usr/obj/usr/src/sys/CUSTOM i386
>Description:
- Fix build with newer math/gmp in ports tree -- Newer versions of gmp do not define __gmp_const. This patch addresses the compile time errors with an ifndef.
This is needed as a prerequisite to complete the following PR for lang/urweb:
http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/176206
>How-To-Repeat:
Apply patch and build port
>Fix:
The included patch
--- mlton.diff begins here ---
diff -urN mlton.orig/Makefile mlton/Makefile
--- mlton.orig/Makefile 2012-11-16 21:58:52.000000000 -0800
+++ mlton/Makefile 2013-02-17 15:51:12.000000000 -0800
@@ -12,7 +12,7 @@
PORTNAME= mlton
PORTVERSION= 20070826
-PORTREVISION= 10
+PORTREVISION= 11
CATEGORIES= lang
MASTER_SITES= http://mlton.org/pages/Download/attachments/ \
http://mlton.org/pages/Experimental/attachments/ \
diff -urN mlton.orig/files/patch-runtime_gc_int-inf.c mlton/files/patch-runtime_gc_int-inf.c
--- mlton.orig/files/patch-runtime_gc_int-inf.c 1969-12-31 16:00:00.000000000 -0800
+++ mlton/files/patch-runtime_gc_int-inf.c 2013-02-17 15:48:45.000000000 -0800
@@ -0,0 +1,13 @@
+--- runtime/gc/int-inf.c.orig 2010-06-11 06:35:14.000000000 -0700
++++ runtime/gc/int-inf.c 2013-02-17 15:45:47.000000000 -0800
+@@ -6,6 +6,10 @@
+ * See the file MLton-LICENSE for details.
+ */
+
++#ifndef __gmp_const
++# define __gmp_const const
++#endif
++
+ /*
+ * Test if a intInf is a fixnum.
+ */
--- mlton.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list