Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Virtual packages in findlib
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-07-07 (18:07)
From: Dario Teixeira <darioteixeira@y...>
Subject: Virtual packages in findlib


(This is somewhat related to my previous question; having an order-preserving
Ocamlbuild would be moot if findlib supported some sort of virtual packages).

Suppose that for successful linking you need a package B to appear after
package A1.  However, A1 is only one particular instantiation of A-ness.
You could replace A1 with A2 or A3, and the program would also link and run.

Is there a way of expressing this sort of dependency with findlib?  Something
like "requires = A1 | A2 | A3".  Or even better, allowing packages A1, A2,
and A3 to provide a virtual package "A", and make B depend on that.  (The
Debian folks will recognise this pattern).

Best regards,
Dario Teixeira