[Polkit-Qt-1] e4ba5fe: Set the correct version requirement

David Faure faure at kde.org
Thu Oct 28 23:05:38 CEST 2010


On Tuesday 26 October 2010, Dario Freddi wrote:
> commit e4ba5fe56a14678ec42dcaae70f5a08987ede7c4
> branch master
> Author: Dario Freddi <drf at kde.org>
> Date:   Tue Oct 26 21:34:04 2010 +0200
> 
>     Set the correct version requirement
> 
> diff --git a/cmake/modules/FindPolkit.cmake
> b/cmake/modules/FindPolkit.cmake index 35fc86e..0ad9f8f 100644
> --- a/cmake/modules/FindPolkit.cmake
> +++ b/cmake/modules/FindPolkit.cmake
> @@ -21,8 +21,8 @@ if (NOT WIN32)
>     # use pkg-config to get the directories and then use these values
>     # in the FIND_PATH() and FIND_LIBRARY() calls
>     find_package(PkgConfig)
> -   pkg_check_modules(PC_POLKIT polkit-gobject-1)
> -   pkg_check_modules(PC_POLKIT_AGENT polkit-agent-1)
> +   pkg_check_modules(PC_POLKIT polkit-gobject-1>=0.98)
> +   pkg_check_modules(PC_POLKIT_AGENT polkit-agent-1>=0.98)
>     set(POLKIT_DEFINITIONS ${PC_POLKIT_CFLAGS_OTHER})
>  endif (NOT WIN32)

Hello,
this version check doesn't seem to fully work.

I have
ii  libpolkit-agent-1-dev                    0.96-2  
(so it's too old)

and compiling polkit-qt-1 (git master) says
/d/kde/src/t/polkit-qt-1/core/polkitqt1-authority.cpp:182: error: 
‘polkit_authority_get_sync’ was not declared in this scope

cmake says:
-- checking for module 'polkit-gobject-1>=0.98'
--   package 'polkit-gobject-1>=0.98' not found
-- checking for module 'polkit-agent-1>=0.98'
--   package 'polkit-agent-1>=0.98' not found

CMakeCache.txt:POLKIT_AGENT_INCLUDE_DIR:PATH=/usr/include/polkit-1
CMakeCache.txt:POLKIT_AGENT_LIBRARY:FILEPATH=/usr/lib/libpolkit-agent-1.so


-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Sponsored by Nokia to work on KDE, incl. Konqueror (http://www.konqueror.org).


More information about the Kde-buildsystem mailing list