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

Re: conditional dependency?

On Mon, Feb 25, 2008 at 10:56:09PM +0300, Nikita V. Youshchenko wrote:
> Hi
> I maintain libetpan package, which build-depends on libcurl4-gnutls-dev.
> Resulting library package dependency is calculated using ${shlib:Depends}, 
> however libdev package dependency on libcurl4-gnutls-dev is manually 
> written in debian/control file. The build package dependency is valuable 
> since -lcurl is among 'libetpan-config --ldflags' output.
> I've got a wishlist report (#467297), where reporter asks to add 
> alternative dependency libcurl3-gnutls-dev for better backporting support.
> While it is easy for build-dependency (just use libcurl4-gnutls-dev | 
> libcurl3-gnutls-dev), I see a problem here with libdev package dependency. 
> It should depend not on libcurl4-gnutls-dev | libcurl3-gnutls-dev, but on 
> exact one that was actually used when building package.
> How to handle this properly?

Just trim -lcurl from libetpan-config's output and remove the dependency

Obviously, don't do this if libetpan's reverse deps *need* to build with
-lcurl (which is unlikely)


Reply to: