corectl: fix the build
restrict the io-page OPAM dependency to < 2 Closes #14912. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
parent
4f1b66ce18
commit
08170eeff1
1 changed files with 5 additions and 5 deletions
|
@ -23,20 +23,20 @@ class Corectl < Formula
|
||||||
def install
|
def install
|
||||||
ENV["GOPATH"] = buildpath
|
ENV["GOPATH"] = buildpath
|
||||||
|
|
||||||
opamroot = buildpath/"opamroot"
|
path = buildpath/"src/github.com/TheNewNormal/#{name}"
|
||||||
|
path.install Dir["*"]
|
||||||
|
|
||||||
|
opamroot = path/"opamroot"
|
||||||
opamroot.mkpath
|
opamroot.mkpath
|
||||||
ENV["OPAMROOT"] = opamroot
|
ENV["OPAMROOT"] = opamroot
|
||||||
ENV["OPAMYES"] = "1"
|
ENV["OPAMYES"] = "1"
|
||||||
|
|
||||||
path = buildpath/"src/github.com/TheNewNormal/#{name}"
|
|
||||||
path.install Dir["*"]
|
|
||||||
|
|
||||||
args = []
|
args = []
|
||||||
args << "VERSION=#{version}" if build.stable?
|
args << "VERSION=#{version}" if build.stable?
|
||||||
|
|
||||||
cd path do
|
cd path do
|
||||||
system "opam", "init", "--no-setup"
|
system "opam", "init", "--no-setup"
|
||||||
system "opam", "install", "uri", "ocamlfind", "qcow-format", "conf-libev"
|
system "opam", "install", "uri", "ocamlfind", "qcow-format", "conf-libev", "io-page<2"
|
||||||
|
|
||||||
system "make", "tarball", *args
|
system "make", "tarball", *args
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue