[prev in list] [next in list] [prev in thread] [next in thread] 

List:       debian-devel
Subject:    Re: Not depending on shlibs because of plugins?
From:       Christoph Berg <myon () debian ! org>
Date:       2007-01-05 18:53:35
Message-ID: 20070105185335.GH6180 () df7cb ! de
[Download RAW message or body]

Re: Andreas Metzler 2007-01-05 <k9i274-cf4.ln1@argenau.downhill.at.eu.org>
> Which does not seem to be properly translateable into a valid single 
> fasel|(foo | bar, blah) Depends relation[1].

It won't work if a plugin needs more than one dependency, right.

> You could move the plugin's additional dependencies into Recommends,
> using "dpkg-shlibdeps -vRecommends" but as the program would not work
> without any plugin packaging them separately indeed seems to be the
> sanest way.

-p is actually more interesting here:

$dpkg-shlibdeps -pmysql -edebian/libyada4/usr/lib/libyada_mysql.so.4
$dpkg-shlibdeps -ppostgres -edebian/libyada4/usr/lib/libyada_pgsql.so.4
$dpkg-shlibdeps -psqlite -edebian/libyada4/usr/lib/libyada_sqlite3.so.4
$cat debian/substvars
mysql:Depends=libc6 (>= 2.3.5-1), libmysqlclient15off (>= 5.0.24-2)
postgres:Depends=libc6 (>= 2.3.5-1), libpq4 (>= 8.1.4)
sqlite:Depends=libc6 (>= 2.3.5-1), libsqlite3-0 (>= 3.3.8)

Then remove the libc6 parts and use
Depends: ${shlibs:Depends}, ${mysql:Depends} | ${postgres:Depends} | ${sqlite:Depends}

Christoph
-- 
cb@df7cb.de | http://www.df7cb.de/

["signature.asc" (application/pgp-signature)]
-- 
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic