Skip to content

jbuilder install --libdir does not follow its --help specification #250

Closed

Description

@pirbo

You can read on jbuilder install --help:

--libdir=PATH
           Directory where library files are copied, relative to prefix or
           absolute. If --prefix is specified the default is $prefix/lib,
           otherwise it is the output of ocamlfind printconf destdir

but the reality seems to be

--libdir=PATH
           Directory where library files are copied, relative to prefix or
           absolute. The default is the output of ocamlfind printconf destdir

I experimented with easy-format:

$ OCAMLFIND_DESTDIR=/tmp/anothertest jbuilder install --prefix /tmp/thisisatest
opam-installer easy-format.install
Creating directory /tmp/anothertest/easy-format
_build/install/default/lib/easy-format/META => /tmp/anothertest/easy-format/META
_build/install/default/lib/easy-format/opam => /tmp/anothertest/easy-format/opam
_build/install/default/lib/easy-format/easy_format.cmi => /tmp/anothertest/easy-format/easy_format.cmi
_build/install/default/lib/easy-format/easy_format.cmx => /tmp/anothertest/easy-format/easy_format.cmx
_build/install/default/lib/easy-format/easy_format.cmt => /tmp/anothertest/easy-format/easy_format.cmt
_build/install/default/lib/easy-format/easy_format.cmti => /tmp/anothertest/easy-format/easy_format.cmti
_build/install/default/lib/easy-format/easy_format.mli => /tmp/anothertest/easy-format/easy_format.mli
_build/install/default/lib/easy-format/easy_format.cma => /tmp/anothertest/easy-format/easy_format.cma
_build/install/default/lib/easy-format/easy_format.cmxa => /tmp/anothertest/easy-format/easy_format.cmxa
_build/install/default/lib/easy-format/easy_format.a => /tmp/anothertest/easy-format/easy_format.a
_build/install/default/lib/easy-format/easy_format.cmxs => /tmp/anothertest/easy-format/easy_format.cmxs
_build/install/default/doc/easy-format/README.md => /tmp/thisisatest/doc/easy-format/README.md
_build/install/default/doc/easy-format/LICENSE => /tmp/thisisatest/doc/easy-format/LICENSE

Activity

  1. dra27 commented on Sep 6, 2017

    @dra27
    Member

    cf. #202, b1e140e & cfd43d5

    It's not entirely clear to me from the thread which is at fault - the behaviour, or the docs. @diml?

  2. dra27 commented on Sep 6, 2017

    @dra27
    Member

    @diml - ta, it's on the list (for one or other of us!). It wasn't clear from the thread in #202 if lib was allowed to be an exception to that or not!

  3. rgrinberg commented on Nov 6, 2018

    @rgrinberg
    Member

    Now that dune doesn't use opam-installer, this is now fixed. I could not reproduce the bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions