Skip to content

opam: use --disable-sandboxing - #235

Closed
djs55 wants to merge 2 commits into
moby:masterfrom
djs55:fix-opam
Closed

djs55 wants to merge 2 commits into
moby:masterfrom
djs55:fix-opam

Conversation

@djs55

@djs55 djs55 commented Nov 24, 2018

Copy link
Copy Markdown
Collaborator

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 dave.scott@docker.com

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 <dave.scott@docker.com>
With opam 1.2 this used to be automatic, but it's not with opam 2.0

Signed-off-by: David Scott <dave.scott@docker.com>
@djs55

djs55 commented Nov 24, 2018

Copy link
Copy Markdown
Collaborator Author

I think I need to upgrade the opam package metadata to version 2.0 format.

@ijc

ijc commented Nov 26, 2018

Copy link
Copy Markdown
Collaborator

ok ;-)

@ijc ijc mentioned this pull request Nov 26, 2018
@ijc

ijc commented Jan 7, 2019

Copy link
Copy Markdown
Collaborator

@djs55 Is this still relevant/needed after #240?

@djs55

djs55 commented Jan 7, 2019

Copy link
Copy Markdown
Collaborator Author

At some point we should probably upgrade from opam 1 to opam 2 (or use another solution like a vendoring tool). For now I think we can close this one.

@djs55 djs55 closed this Jan 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants