[Pkg-scicomp-devel] Bug#525023: libcv-dev: circular dependency with libcvaux-dev and libhighgui-dev

Nobuhiro Iwamatsu iwamatsu at nigauri.org
Thu Jan 7 08:12:10 UTC 2010


Hi, Filippo.

Thanks for your report.
I am agreeable in your opinion.

2009/12/28 Filippo Giunchedi <filippo at debian.org>:
> On Tue, Apr 21, 2009 at 05:28:06PM +0200, Bill Allombert wrote:
>> Package: libcv-dev
>> Version: 1.0.0-6.1+b1
>> Severity: important
>>
>> Hello Debian Scientific Computing Team,
>>
>> There is a circular dependency between libcv-dev, libcvaux-dev and libhighgui-dev:
>>
>> libcv-dev     :Depends: libcvaux-dev (= 1.0.0-6.1+b1), libhighgui-dev (= 1.0.0-6.1+b1)
>> libcvaux-dev  :Depends: libcv-dev (>= 1.0.0-6.1+b1)
>> libhighgui-dev        :Depends: libcv-dev (>= 1.0.0-6.1+b1)
>>
>> Circular dependencies are known to cause problems during upgrade, so we
>> should try to get rid of them.
>>
>> In this particular case I do not see the point to have three separated
>> packages if users are required to install them all anyway. A single
>> package would be sufficient.
>
> I'm not convinced by the fix (though I'm not reopening the bug).
> Both highgui and cvaux are marked by pkg-config as required for linking
> opencv:
>
> $ pkg-config --libs opencv
> -lcv -lhighgui -lcvaux -lml -lcxcore
>
> so I'm expecting that declaring build-depend: libcv-dev will drag in also the
> required libraries for linking.
> Moreover, an application is supposed to #include <cv.h> only and thus
> shouldn't need to know that libhighgui-dev and libcvaux-dev are required to do
> the actual link but only libcv-dev.
>

If user wants to use highgui, application does not need include cv.h.
user need include highgui.h only.

OK. For correspondence to be possible in Debian side, we provide all
library (libcvaux and libhighgui)
in one package (libcv and -dev package).
Or we return this problem.
As other methods, we prepare patch for pkg-config file of
highgui/cvaux to Upstream.

How do you think about this?
A library and a header file are divided into some, but I think that it
is a problem that there is only one pkg-config file.

Best regards,
  Nobuhiro

-- 
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6





More information about the Pkg-scicomp-devel mailing list