From 055ae0a9e5cbee276eee43adf186c429fbde68ea Mon Sep 17 00:00:00 2001 From: David Scott Date: Sat, 24 Nov 2018 18:47:04 +0000 Subject: [PATCH 1/2] opam: use --disable-sandboxing In the CircleCI environment we see failures like + /Users/distiller/.opam/opam-init/hooks/sandbox.sh "build" "mkdir" "-p" "/Users/distiller/.opam/4.03.0/lib/ocaml/" (CWD=/Users/distiller/.opam/4.03.0/.opam-switch/build/ocaml-base-compiler.4.03.0) - mkdir: /Users/distiller/.opam/4.03.0/lib/ocaml/: Operation not permitted [ERROR] The compilation of ocaml-base-compiler failed at "/Users/distiller/.opam/opam-init/hooks/sandbox.sh build mkdir -p /Users/distiller/.opam/4.03.0/lib/ocaml/". This patch attempts to work around these by disabling the new sandboxing features of `opam`. Signed-off-by: David Scott --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 41b660e5..636c4c0b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -43,7 +43,7 @@ jobs: # until the base image is updated. - run: brew upgrade python - run: brew install opam - - run: opam init -v -n --comp="${OPAM_COMP}" --switch="${OPAM_COMP}" local "${OPAM_REPO}" + - run: opam init --disable-sandboxing -v -n --comp="${OPAM_COMP}" --switch="${OPAM_COMP}" local "${OPAM_REPO}" - run: opam config exec -- opam depext -i hyperkit - run: opam config exec -- make clean - run: opam config exec -- make all From 5d8541ce3409212fab2e7049ed5083a69e1b752d Mon Sep 17 00:00:00 2001 From: David Scott Date: Sat, 24 Nov 2018 19:11:44 +0000 Subject: [PATCH 2/2] opam: install depext With opam 1.2 this used to be automatic, but it's not with opam 2.0 Signed-off-by: David Scott --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 636c4c0b..787b6010 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -44,6 +44,7 @@ jobs: - run: brew upgrade python - run: brew install opam - run: opam init --disable-sandboxing -v -n --comp="${OPAM_COMP}" --switch="${OPAM_COMP}" local "${OPAM_REPO}" + - run: opam install depext -y - run: opam config exec -- opam depext -i hyperkit - run: opam config exec -- make clean - run: opam config exec -- make all