[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Not depending on shlibs because of plugins?

On Fri, Jan 05, 2007 at 05:37:56PM +0100, Christoph Berg wrote:
> I'm packaging a database wrapper library (http://oss.devit.com/yada/).
> Its purpose is to provide one single API to a program and let the user
> configure if the database used is actually postgres/mysql/sqlite. The
> actual interfacing with the databases is done by .so plugins that are
> dlopened at run time.

> Currently my package will depend on all of the database libs:

> | Depends: [...], libmysqlclient15off (>= 5.0.24-2), libpq4 (>= 8.1.4), libsqlite3-0 (>= 3.3.8)

> This kind of defeats the purpose of the package, the program(mer) uses
> this library in order not to pull in any (or even all) specific
> databases.

> Is it in this case ok if I replace ',' by '|' there? This would allow
> the user to really choose what database backend he wants.

> The alternative solution would be to put the plugins into separate
> packages and then depend on libyada-mysql | libyada-postgres |
> libyada-sqlite. As these packages would merely contain a single file,
> that seems bloat to me.

The alternative alternative solution is to reimplement libyada as a shim
around ODBC.


Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
vorlon@debian.org                                   http://www.debian.org/

Reply to: