ocaml-opam / opam-depext

Attempt to automate the installation of system packages required by OPAM packages
Other
33 stars 28 forks source link

Build fails in sandbox because of attempted download #108

Closed lindig closed 4 years ago

lindig commented 5 years ago

opam-depext downloads a commandliner release and this makes the build fail when it is done in a sandbox as it is established by Opam 2. How can this be avoided?

#=== ERROR while compiling opam-depext.1.1.2 ==================================#
# context              2.0.0 | linux/x86_64 | ocaml-base-compiler.4.06.1 | git://github.com/xapi-project/xs-opam
# path                 ~/.opam/ocaml-base-compiler.4.06.1/.opam-switch/build/opam-depext.1.1.2
# command              ~/.opam/opam-init/hooks/sandbox.sh build make
# exit-code            2
# env-file             /tmp/opam-travis-12473/opam-depext-12473-a00279.env
# output-file          /tmp/opam-travis-12473/opam-depext-12473-a00279.out
### output ###
# [...]
# [ -e  cmdliner-0.9.8.tbz ] || \
#   curl -OL http://erratique.ch/software/cmdliner/releases/cmdliner-0.9.8.tbz && ocaml ../shell/md5check.ml cmdliner-0.9.8.tbz fc67c937447cc223722f1419fa2189da || \
#   { curl -OL https://opam.ocaml.org/2.0~dev/cache/md5/fc/fc67c937447cc223722f1419fa2189da && mv fc67c937447cc223722f1419fa2189da cmdliner-0.9.8.tbz && ocaml ../shell/md5check.ml cmdliner-0.9.8.tbz fc67c937447cc223722f1419fa2189da; }
#   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#                                  Dload  Upload   Total   Spent    Left  Speed
#   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (6) Could not resolve host: erratique.ch
#   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#                                  Dload  Upload   Total   Spent    Left  Speed
#   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (6) Could not resolve host: opam.ocaml.org
# make[1]: *** [cmdliner.download] Error 6
# make[1]: Leaving directory `/home/travis/.opam/ocaml-base-compiler.4.06.1/.opam-switch/build/opam-depext.1.1.2/src_ext'
# make: *** [all] Error 2
rjbou commented 5 years ago

related to PR #99

rjbou commented 4 years ago

External dependencies handling is integrated in opam (since 2.1.0-alpha). If this is still an issue, please open one in opam bugtracker. Thanks!