Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jul 2013 13:44:57 +0800 (CST)
From:      Jyun-Yan You <jyyou@cs.nctu.edu.tw>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        joris.gio@gmail.com
Subject:   ports/180753: [PATCH] devel/ocaml-opam: fix build error of util.ml
Message-ID:  <201307230544.r6N5iv6P098227@alumni.cs.nctu.edu.tw>
Resent-Message-ID: <201307230600.r6N600WD094008@freefall.freebsd.org>

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

>Number:         180753
>Category:       ports
>Synopsis:       [PATCH] devel/ocaml-opam: fix build error of util.ml
>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:   Tue Jul 23 06:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Jyun-Yan You
>Release:        FreeBSD 9.1-RELEASE-p4 amd64
>Organization:
>Environment:
System: FreeBSD alumni.cs.nctu.edu.tw 9.1-RELEASE-p4 FreeBSD 9.1-RELEASE-p4 #0: Mon Jun 17 11:42:37 UTC 2013
>Description:
This patch fixes the build error of util.ml when we use system-optimized ocaml binaries by default.

Port maintainer (joris.gio@gmail.com) is cc'd.

Generated with FreeBSD Port Tools 0.99_8 (mode: change, diff: ports)
>How-To-Repeat:
>Fix:

--- ocaml-opam-1.0.0.patch begins here ---
diff -ruN /usr/ports/devel/ocaml-opam/Makefile ./Makefile
--- /usr/ports/devel/ocaml-opam/Makefile	2013-07-02 04:07:20.000000000 +0800
+++ ./Makefile	2013-07-23 13:41:12.961006000 +0800
@@ -41,4 +41,13 @@
 	opam.1 \
 	opam-reinstall.1
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if exists(${LOCALBASE}/bin/camlp4o.byte)
+post-patch:
+	${REINPLACE_CMD} \
+	    -e 's/camlp4o/camlp4o.byte/' \
+	    ${WRKSRC}/src_ext/depends.ocp.boot
+.endif
+
+.include <bsd.port.post.mk>
--- ocaml-opam-1.0.0.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?201307230544.r6N5iv6P098227>