Cmake doesn't recognize polkit-qt

Bug #1251391 reported by Mario Blättermann
6
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/FindPolkitQt-1.cmake:53 (message):
  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?

Revision history for this message
Mario Blättermann (mario.blaettermann) wrote :
Download full text (5.1 KiB)

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
+++ cmake/modules/FindPolkitQt-1.cmake 2013-11-14 20:20:23.077990046 +0100
@@ -19,7 +19,7 @@
 endif (POLKITQT-1_INCLUDE_DIR AND POLKITQT-1_LIB)

 if (NOT POLKITQT-1_MIN_VERSION)
- set(POLKITQT-1_MIN_VERSION "0.95.1")
+ set(POLKITQT-1_MIN_VERSION "0.103.0")
 endif (NOT POLKITQT-1_MIN_VERSION)

 if (NOT WIN32)

But now I get new errors:

[ 60%] Built target pofiles
/home/mariobl/rpmbuild/BUILD/libqapt-1.1.0/src/backend.cpp: In constructor 'QApt::BackendPrivate::BackendPrivate()':
/home/mariobl/rpmbuild/BUILD/libqapt-1.1.0/src/backend.cpp:90:13: warning: 'QApt::BackendPrivate::config' will be initialized after [-Wreorder]
     Config *config;
             ^
/home/mariobl/rpmbuild/BUILD/libqapt-1.1.0/src/backend.cpp:75:17: warning: 'pkgRecords* QApt::BackendPrivate::records' [-Wreorder]
     pkgRecords *records;
                 ^
/home/mariobl/rpmbuild/BUILD/libqapt-1.1.0/src/backend.cpp:51:5: warning: when initialized here [-Wreorder]
     BackendPrivate() : cache(0), config(0), records(0), maxStackSize(20), state(InvalidEvent) {}
     ^
/home/mariobl/rpmbuild/BUILD/libqapt-1.1.0/src/backend.cpp:78:9: warning: 'QApt::BackendPrivate::maxStackSize' will be initialized after [-Wreorder]
     int maxStackSize;
         ^
/home/mariobl/rpmbuild/BUILD/libqapt-1.1.0/src/backend.cpp:67:17: warning: 'QApt::WorkerEvent QApt::BackendPrivate::state' [-Wreorder]
     WorkerEvent state;
                 ^
/home/mariobl/rpmbuild/BUILD/libqapt-1.1.0/src/backend.cpp:51:5: warning: when initialized here [-Wreorder]
     BackendPrivate() : cache(0), config(0), records(0), maxStackSize(20), state(InvalidEvent) {}
     ^
/home/mariobl/rpmbuild/BUILD/libqapt-1.1.0/src/backend.cpp: In member function 'qint64 QApt::Backend::downloadSize() const':
/home/mariobl/rpmbuild/BUILD/libqapt-1.1.0/src/backend.cpp:363:16: error: aggregate 'pkgAcquire fetcher' has incomplete type and cannot be defined
     pkgAcquire fetcher;
                ^
/home/mariobl/rpmbuild/BUILD/libqapt-1.1.0/src/backend.cpp: In member function 'QApt::CacheState QApt::Backend::currentCacheState() const':
/home/mariobl/rpmbuild/BUILD/libqapt-1.1.0/src/backend.cpp:585:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (unsigned i = 0; i < pkgSize; ++i) {
                              ^
/home/mariobl/rpmbuild/BUILD/libqapt-1.1.0/src/backend.cpp: In member function 'void QApt::Backend::restoreCacheState(const CacheState&)':
/home/mariobl/rpmbuild/BUILD/libqapt-1.1.0/src/backend.cpp:616:5: error: 'ActionGroup' is not a member of 'pkgDepCache'
     pkgDepCache::ActionGroup group(*deps);
     ^
/home/mariobl/rpmbuild/BUILD/libqapt-1.1.0/src/backend.cpp:616:30: error: expected ';' before 'group'
     pkgDepCache::ActionGroup group(*deps);
                              ^
/home/mariobl/rpmbuild/BUILD/libqapt-1.1.0/src/backend.cpp:618:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (unsigned i = 0; i < d->packages.size(); ++i) {
                       ...

Read more...

Revision history for this message
Mario Blättermann (mario.blaettermann) wrote :

The problem would be that my Apt version is Apt-rpm which is too old. That's why I'm not really willing to continue on working on libqapt for Fedora. Even if we could solve the current problems, I think some more will come up, and the apt-rpm project rests in peace for some years. You can safely close this request now (Sorry, I haven't found any way here to close it).

Revision history for this message
Harald Sitter (apachelogger) wrote :

FWIW, please report this kind of issue at bugs.kde.org. It takes considerably longer to get from launchpad to kde ;)

Changed in qapt (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.