Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ocamlfind is required by all packages that use ocamlbuild with 4.02.0 #2113

Closed
edwintorok opened this issue May 22, 2014 · 5 comments
Closed

Comments

@edwintorok
Copy link
Contributor

Try installing ocp-indent in an otherwise fresh 'opam switch 4.02.0+trunk':

===== ERROR while installing ocp-indent.0.6.1 =====
# opam-version 1.1.1
# os           linux
# command      ocamlbuild src/main.native
# path         /home/edwin/.opam/4.02.0+trunk/build/ocp-indent.0.6.1
# compiler     4.02.0+trunk
# exit-code    2
# env-file     /home/edwin/.opam/4.02.0+trunk/build/ocp-indent.0.6.1/ocp-indent-6610-d8a4ae.env
# stdout-file  /home/edwin/.opam/4.02.0+trunk/build/ocp-indent.0.6.1/ocp-indent-6610-d8a4ae.out
# stderr-file  /home/edwin/.opam/4.02.0+trunk/build/ocp-indent.0.6.1/ocp-indent-6610-d8a4ae.err
### stdout ###
# ...[truncated]
# checking for ocamlmktop... ocamlmktop
# checking for ocamlmklib... ocamlmklib
# checking for ocamldoc... ocamldoc
# checking for ocamlbuild... ocamlbuild
# configure: creating ./config.status
# config.status: creating Makefile.config
# config.status: creating src/globals.ml
# 
# Executables will be installed in /home/edwin/.opam/4.02.0+trunk/bin
# Failure: ocamlfind not found on path, but -no-ocamlfind not used.

Can ocamlfind be automatically installed when you create a 4.02.0+trunk switch?
Seems like you'd either have to update all packages that use ocamlbuild
to depend on ocamlfind, or make ocamlfind something that is an implicit dependency of all packages/automatically installed when you switch to 4.02.0.

@samoht
Copy link
Member

samoht commented May 22, 2014

Failure: ocamlfind not found on path, but -no-ocamlfind not used.

that's a pretty terrible failure case ... I though that change was reverted (see ocaml/ocaml#20)

@kit-ty-kate
Copy link
Member

Nope. I can be reverted by ocaml/ocaml#60 but some people don't want this feature reverted.
Maybe we can wait to do something on opam packages until the discussion on reverting or not is closed.

@samoht
Copy link
Member

samoht commented May 22, 2014

Well, as ocamlbuild is not distributed as a separate package, that means we have to install ocamlfind by default. I'm not sure to understand why this is a hard-error though, and not just displaying a warning and continuing to run ocamlbuild with -no-ocamlfind.

@gasche
Copy link
Member

gasche commented May 22, 2014

Your comments would be welcome on the mantis issue on -use-ocamlfind:
http://caml.inria.fr/mantis/view.php?id=5547

@kit-ty-kate
Copy link
Member

This issue should be closed now.

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

No branches or pull requests

4 participants