Discussion:
[ocaml-platform] OPAM Install of ctypes-foreign fails silently
Robert Pickering
2015-12-04 15:13:23 UTC
Permalink
Hello,

I'm try to install the package ctypes-foreign using OPAM. It looks like
it works, but actually nothing gets installed.

This is the command I used:

$ opam install ctypes ctypes-foreign
The following actions will be performed:
∗ install ctypes-foreign 0.4.0
∗ install ctypes 0.4.1
===== ∗ 2 =====

=-=- Gathering sources
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[ctypes] Archive in cache

=-=- Processing actions
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
∗ installed ctypes-foreign.0.4.0
∗ installed ctypes.0.4.1
Done.

It looks like "ctypes" worked:

$ ocamlfind query ctypes
/home/robert/.opam/system/lib/ctypes


But ctypes-foreign wasn't installed:

$ ocamlfind query ctypes-foreign
ocamlfind: Package `ctypes-foreign' not found

I can see a directory /home/robert/.opam/system/lib/ctypes-foreign is
created, but it's empty.

I'm new to OPAM, so not sure how to begin debugging this. Any hints much
appreciated.

Many thanks,
Rob
Jeremy Yallop
2015-12-04 15:20:56 UTC
Permalink
On 4 December 2015 at 15:13, Robert Pickering
Post by Robert Pickering
I'm try to install the package ctypes-foreign using OPAM. It looks like
it works, but actually nothing gets installed.
That's the intended behaviour, since ctypes-foreign is just a virtual
package that determines whether the foreign subpackage should built as
part of ctypes.
Post by Robert Pickering
$ ocamlfind query ctypes-foreign
The opam package is called 'ctypes-foreign' (with a hyphen), but the
ocamlfind package is called 'ctypes.foreign' (with a dot), so the
command you need is

ocamlfind query ctypes.foreign
Anil Madhavapeddy
2015-12-04 15:37:10 UTC
Permalink
Post by Jeremy Yallop
On 4 December 2015 at 15:13, Robert Pickering
Post by Robert Pickering
I'm try to install the package ctypes-foreign using OPAM. It looks like
it works, but actually nothing gets installed.
That's the intended behaviour, since ctypes-foreign is just a virtual
package that determines whether the foreign subpackage should built as
part of ctypes.
Post by Robert Pickering
$ ocamlfind query ctypes-foreign
The opam package is called 'ctypes-foreign' (with a hyphen), but the
ocamlfind package is called 'ctypes.foreign' (with a dot), so the
command you need is
ocamlfind query ctypes.foreign
I've submitted an OPAM repository pull request to make this behaviour more obvious in the OPAM packages:

https://github.com/ocaml/opam-repository/pull/5247

-Anil
Robert Pickering
2015-12-04 15:50:25 UTC
Permalink
Great, many thanks. Working as expected now :)
Post by Anil Madhavapeddy
Post by Jeremy Yallop
On 4 December 2015 at 15:13, Robert Pickering
Post by Robert Pickering
I'm try to install the package ctypes-foreign using OPAM. It looks like
it works, but actually nothing gets installed.
That's the intended behaviour, since ctypes-foreign is just a virtual
package that determines whether the foreign subpackage should built as
part of ctypes.
Post by Robert Pickering
$ ocamlfind query ctypes-foreign
The opam package is called 'ctypes-foreign' (with a hyphen), but the
ocamlfind package is called 'ctypes.foreign' (with a dot), so the
command you need is
ocamlfind query ctypes.foreign
I've submitted an OPAM repository pull request to make this behaviour
https://github.com/ocaml/opam-repository/pull/5247
-Anil
Loading...