Skip to content

Commit

Permalink
dev-ml/ocaml-dns: backport upstream patch to build with latest ocaml-uri
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.6, Repoman-2.3.2
  • Loading branch information
aballier committed Jun 3, 2017
1 parent 54609b5 commit f0aefa8
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
21 changes: 21 additions & 0 deletions dev-ml/ocaml-dns/files/uri.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
commit 152097361dbe987af5de4efde78ed28c720900a8
Author: Anil Madhavapeddy <[email protected]>
Date: Tue May 30 20:45:06 2017 +0100

zone_parser: explictly depend on uri.services

This seems to have been pulled in implicitly before, but breaks
when compiled with jbuilder

diff --git a/_tags b/_tags
index b38be12..bb5d5c0 100644
--- a/_tags
+++ b/_tags
@@ -9,6 +9,7 @@ true : package(re re.str ipaddr uri base64 hashcons cstruct result)
"lwt": include
<lwt/*.{ml,mli}>: package(lwt mirage-profile)
<lwt/dig_unix.*>: package(cmdliner lwt.unix uri.services ipaddr.unix lwt)
+<lib/zone_parser.*>: package(uri.services)
<mirage/*.{ml,mli}>: package(lwt duration mirage-time-lwt)
<mirage/*.{ml,mli}>: package(mirage-stack-lwt mirage-kv-lwt)

5 changes: 5 additions & 0 deletions dev-ml/ocaml-dns/ocaml-dns-0.20.1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ DEPEND="
# Missing mirage deps
RESTRICT="test"

src_prepare() {
epatch "${FILESDIR}/uri.patch"
default
}

src_compile() {
ocaml pkg/pkg.ml build \
--tests $(usex test true false) \
Expand Down

0 comments on commit f0aefa8

Please sign in to comment.