Cmake doesn't recognize polkit-qt
Bug #1251391 reported by
Mario Blättermann
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qapt (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
First, I don't use Ubuntu, but it is impossible to report a bug for Qapt in KDE bugzilla (only Muon), so I have no other choice to report it here.
I try to install Qapt in Fedora, in other words, I try to build a Fedora package. Fedora ships Polkit-Qt in version 0.103.0, which should be sufficient actually, but i get the following error message:
CMake Error at cmake/modules/
PolkitQt-1 version 0.103.0 was found, but it is too old. Please install
0.95.1 or newer.
What i have to do to let Cmake recognize the installed version correctly?
To post a comment you must log in.
For the time being I've patched cmake/modules/ FindPolkitQt- 1.cmake as follows:
--- cmake/modules/ FindPolkitQt- 1.cmake 2011-01-16 18:44:56.000000000 +0100 FindPolkitQt- 1.cmake 2013-11-14 20:20:23.077990046 +0100 1_INCLUDE_ DIR AND POLKITQT-1_LIB)
+++ cmake/modules/
@@ -19,7 +19,7 @@
endif (POLKITQT-
if (NOT POLKITQT- 1_MIN_VERSION) 1_MIN_VERSION "0.95.1") 1_MIN_VERSION "0.103.0") 1_MIN_VERSION)
- set(POLKITQT-
+ set(POLKITQT-
endif (NOT POLKITQT-
if (NOT WIN32)
But now I get new errors:
[ 60%] Built target pofiles rpmbuild/ BUILD/libqapt- 1.1.0/src/ backend. cpp: In constructor 'QApt:: BackendPrivate: :BackendPrivate ()': rpmbuild/ BUILD/libqapt- 1.1.0/src/ backend. cpp:90: 13: warning: 'QApt:: BackendPrivate: :config' will be initialized after [-Wreorder] rpmbuild/ BUILD/libqapt- 1.1.0/src/ backend. cpp:75: 17: warning: 'pkgRecords* QApt::BackendPr ivate:: records' [-Wreorder] rpmbuild/ BUILD/libqapt- 1.1.0/src/ backend. cpp:51: 5: warning: when initialized here [-Wreorder] vate() : cache(0), config(0), records(0), maxStackSize(20), state(InvalidEvent) {} rpmbuild/ BUILD/libqapt- 1.1.0/src/ backend. cpp:78: 9: warning: 'QApt:: BackendPrivate: :maxStackSize' will be initialized after [-Wreorder] rpmbuild/ BUILD/libqapt- 1.1.0/src/ backend. cpp:67: 17: warning: 'QApt::WorkerEvent QApt::BackendPr ivate:: state' [-Wreorder] rpmbuild/ BUILD/libqapt- 1.1.0/src/ backend. cpp:51: 5: warning: when initialized here [-Wreorder] vate() : cache(0), config(0), records(0), maxStackSize(20), state(InvalidEvent) {} rpmbuild/ BUILD/libqapt- 1.1.0/src/ backend. cpp: In member function 'qint64 QApt::Backend: :downloadSize( ) const': rpmbuild/ BUILD/libqapt- 1.1.0/src/ backend. cpp:363: 16: error: aggregate 'pkgAcquire fetcher' has incomplete type and cannot be defined rpmbuild/ BUILD/libqapt- 1.1.0/src/ backend. cpp: In member function 'QApt::CacheState QApt::Backend: :currentCacheSt ate() const': rpmbuild/ BUILD/libqapt- 1.1.0/src/ backend. cpp:585: 30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
^ rpmbuild/ BUILD/libqapt- 1.1.0/src/ backend. cpp: In member function 'void QApt::Backend: :restoreCacheSt ate(const CacheState&)': rpmbuild/ BUILD/libqapt- 1.1.0/src/ backend. cpp:616: 5: error: 'ActionGroup' is not a member of 'pkgDepCache' e::ActionGroup group(*deps); rpmbuild/ BUILD/libqapt- 1.1.0/src/ backend. cpp:616: 30: error: expected ';' before 'group' e::ActionGroup group(*deps);
^ rpmbuild/ BUILD/libqapt- 1.1.0/src/ backend. cpp:618: 47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
...
/home/mariobl/
/home/mariobl/
Config *config;
^
/home/mariobl/
pkgRecords *records;
^
/home/mariobl/
BackendPri
^
/home/mariobl/
int maxStackSize;
^
/home/mariobl/
WorkerEvent state;
^
/home/mariobl/
BackendPri
^
/home/mariobl/
/home/mariobl/
pkgAcquire fetcher;
^
/home/mariobl/
/home/mariobl/
for (unsigned i = 0; i < pkgSize; ++i) {
/home/mariobl/
/home/mariobl/
pkgDepCach
^
/home/mariobl/
pkgDepCach
/home/mariobl/
for (unsigned i = 0; i < d->packages.size(); ++i) {