GNOME Bugzilla – Bug 683455
Missed implicit dependency on boost in .pc files
Last modified: 2018-05-04 12:24:14 UTC
Created attachment 223587 [details] [review] fixes for qt-gstreamer's .pc files to depend in boost Due a lack of @Boost_INCLUDE_DIR@ in all .pc.in files packages which are use qt-gstreamer will get implicit dependency on boost! even if they don't use it, they have to (re)detect it (just suppose that boost installed into /usr/include/boost_1.50 and there is no 'default' /usr/include/boost)... attached patch will fix that.
Right, unfortunately that's not really how it's supposed to work. Boost is supposed to provide a .pc file really.. I wonder how hard it would be to get rid of the boost dependency entirely (or at least in the public headers) and replace its use with modern C++ features?
Sure this way is far from how it should be... but I'm really in doubt that `boost` would ever provide *.pc files :( I hope some day it would have CMake config files at least (finally)...
Sorry, this can't be merged. pkg-config is not meant to work like that. You should detect boost's path and add it to the include directories from your project's build system. Boost dependency could be removed nowadays (it's there to support pre-C++11 compilers), but this code is unmaintained, so there is no good chance this is going to happen.