Red Hat Bugzilla – Bug 828087
Unnecessary or even wrong dependencies of opencv
Last modified: 2012-06-04 18:10:16 EDT
Description of problem:
It seems opencv contains some BuildRequires, that are not needed. These bring unnecessary dependencies, which we should generally avoid if possible.
For example I haven't found a reason why imlib2, f2c and libucil should be in BuildRequires.
Other three prerequisites (eigen2, openni and openni-primesense) are optional, what about making them optional even in build? Users could build with them using "--with" options (--with=eigen2, --with=eigen3, --with=openni).
If I miss some point why some of these are really needed in default build, give me some explanation, please.
Created attachment 589072 [details]
proposed changes in opencv.spec
I will have a look tonight, but opencv have been made modular, so it's possible to solve things by spliting the package instead (which can be built using --with rpm conditionals also).
This might be better handled with 2.4.x version (to be updated in Rawhide only because ABI changes).
Patch committed on master.