caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Gerd Stolpmann <info@gerd-stolpmann.de>
To: Jonathan Roewen <jonathan.roewen@gmail.com>
Cc: OCaml <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] findlib/ocamldbi
Date: Mon, 26 Jun 2006 21:18:15 +0200	[thread overview]
Message-ID: <1151349496.14210.2.camel@localhost.localdomain> (raw)
In-Reply-To: <ad8cfe7e0606260541g6c1dc878x825fb12f1dae0ed3@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1179 bytes --]

Am Dienstag, den 27.06.2006, 00:41 +1200 schrieb Jonathan Roewen:
> Hi,
> 
> Since I'm not sure whether this is an ocamldbi or a findlib problem, I
> thought it best to post my problem here.
> 
> I'm trying to use ocamldbi using the mysql bindings.
> 
> so I'm testing in the toplevel, and get something of the sort:
> 
> # #use "topfind";;
> ....
> # #require "dbi.mysql";;
> No such package: postgres - Required by package "dbi.postgres"
> # #require "dbi";;
> No such package: postgres - Required by package "dbi.postgres"
> 
> This dependency seems to be a phantom, as the dbi module itself
> doesn't depend on any of the client implementations...

Exactly.

The META file should include an exists_if directive to express that.
Example attached.

If you are using Godi, I recently updated the package.

Gerd
-- 
------------------------------------------------------------
Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany 
gerd@gerd-stolpmann.de          http://www.gerd-stolpmann.de
Phone: +49-6151-153855                  Fax: +49-6151-997714
   Currently in Montain View, California, till July, 21.
------------------------------------------------------------

[-- Attachment #2: Type: text/plain, Size: 934 bytes --]

name="ocamldbi"
version="0.9.11"
description="OCaml Database Independent Library"
archive(byte) = "dbi.cma"
archive(native) = "dbi.cmxa"
requires = "num"

package "mysql" (
  requires = "dbi,mysql"
  archive(byte) = "dbi_mysql.cmo"
  archive(native) = "dbi_mysql.cmx"
  exists_if = "dbi_mysql.cmo"
)

package "perl" (
  requires = "dbi,perl"
  archive(byte) = "dbi_perl.cmo"
  archive(native) = "dbi_perl.cmx"
  exists_if = "dbi_perl.cmo"
)

package "postgres" (
  requires = "dbi,postgres,pcre"
  archive(byte) = "dbi_postgres.cmo"
  archive(native) = "dbi_postgres.cmx"
  exists_if = "dbi_postgres.cmo"
)

package "postgresql" (
  requires = "dbi,postgresql,pcre"
  archive(byte) = "dbi_postgresql.cmo"
  archive(native) = "dbi_postgresql.cmx"
  exists_if = "dbi_postgresql.cmo"
)

package "sqlite" (
  requires = "dbi,sqlite"
  archive(byte) = "dbi_sqlite.cmo"
  archive(native) = "dbi_sqlite.cmx"
  exists_if = "dbi_sqlite.cmo"
)

      reply	other threads:[~2006-06-26 19:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-26 12:41 Jonathan Roewen
2006-06-26 19:18 ` Gerd Stolpmann [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1151349496.14210.2.camel@localhost.localdomain \
    --to=info@gerd-stolpmann.de \
    --cc=caml-list@yquem.inria.fr \
    --cc=jonathan.roewen@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).