programming-cjr / sulci

XMPP bot
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Dbm changed it's default behaviour #3

Open balodja opened 8 years ago

balodja commented 8 years ago

While trying to install sulci on debian I get this error:

$ ocaml setup.ml -install
E: Failure("Wildcard '_build/tlds/tlds.db' doesn't match any files")

Contents of _build/tlds is as follows:

$ ls _build/tlds/*
_build/tlds/createtlds.annot
_build/tlds/createtlds.cmi
_build/tlds/createtlds.cmo
_build/tlds/createtlds.cmt
_build/tlds/createtlds.cmx
_build/tlds/createtlds.ml
_build/tlds/createtlds.ml.depends
_build/tlds/createtlds.native
_build/tlds/createtlds.o
_build/tlds/tlds.dir
_build/tlds/tlds.pag
_build/tlds/tlds.txt

It looks like install script expected tlds.db(database of gdbm format), but instead of it there are tlds.dir and tlds.pag(database of dbm/ndbm format). Moreover the database is generated by the executable createtld(sourcefile), which is invoked by the specialized build script myocamlbuild.ml(link).

So it looks like default database format has changed. This must be workarounded somehow.

As a bonus a link to the gdbm manual: www.gnu.org.ua/software/gdbm/manual/gdbm.html (singlepaged).

balodja commented 8 years ago

That's not changes in default behavior. That's GNU attempt to support historic Berkley DB in it's genuine look. CamlDBM should be patched to refer to GDBM in Linux systems.