[PATCH] Eliminating confusion after pkgconfig fails to find packages

David Jarvie djarvie at kde.org
Wed Mar 11 20:24:54 CET 2009


On Wednesday 11 Mar 2009 10:50:17 Allen Winter wrote:
> On Tuesday 10 March 2009 9:38:48 pm David Jarvie wrote:
> > On Wednesday 11 Mar 2009 00:53:28 David Jarvie wrote:
> > > On Tuesday 10 Mar 2009 19:58:39 Alexander Neundorf wrote:
> > > > On Tuesday 10 March 2009, David Jarvie wrote:
> > > > > On Mon 9 March 2009 23:32:48 Alexander Neundorf wrote:
> > > >
> > > > ...
> > > >
> > > > > > It's no (real) problem to add a copy of FindPkgConfig.cmake again
> > > > > > to kdelibs/cmake/modules/.
> > > > >
> > > > > OK, here's a patch to FindPkgConfig.cmake (from cmake 2.6.2) to
> > > > > provide a QUIET option for pkg_check_modules(). For example,
> > > > >
> > > > > pkg_check_modules(PC_QIMAGEBLITZ QUIET qimageblitz)
> > > > >
> > > > > OK to commit to kdelibs/cmake/modules? If so, I'll do a patch to
> > > > > convert the relevant FindXXXX.cmake files.
> > > >
> > > > I didn't test it, but in general it looks good.
> > > > You may want to add a sentence what the new option does to the
> > > > documentation at the top.
> > > > So, from my side, go ahead and commit if it works for you.
> > >
> > > Now committed, including documentation.
> >
> > I now attach patches for kdelibs, kdebase and kdepim to use the QUIET
> > option described above to suppress duplicate 'not found' messages from
> > pkgconfig. I have tried to ensure that this option is only used in cmake
> > scripts in which the pkgconfig messages would not add any information
> > compared to the messages output once the patches have been applied.
> >
> > OK to commit?
>
> Will these changes be backwards compatible against a 4.2 installation?
> i.e. if I try to build kdepim trunk against an installed kdelibs 4.2?

The only effect will be that for cmake modules which are patched in kdepim, 
there will be an extra error message saying that the package QUIET has not 
been found. The only cmake module being patched in kdepim is 
FindOpenChange.cmake. Building against KDE 4.2 will produce the following 
output for OpenChange:

-- checking for modules 'QUIET;libmapi'                                                             
--   package 'QUIET' not found                                                                      
(plus a message about libmapi not being found, if appropriate).

The success or failure of the build is not affected - the only difference is 
the extra error messages.

-- 
David Jarvie.
KAlarm author and maintainer.
http://www.astrojar.org.uk/kalarm


More information about the Kde-buildsystem mailing list