Bug 341977 - circular dependency kwallet--gpgmepp--kio
Summary: circular dependency kwallet--gpgmepp--kio
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kwallet
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Valentin Rusu
URL: https://git.reviewboard.kde.org/r/121...
Keywords:
Depends on:
Blocks: 341903
  Show dependency treegraph
 
Reported: 2014-12-17 16:00 UTC by Unknown
Modified: 2015-01-06 17:20 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Unknown 2014-12-17 16:00:26 UTC
/home/guy-kde/src/5/frameworks/kwallet/src/runtime/kwalletd/CMakeLists.txt:17
  find_package(KF5Gpgmepp) # provided by kdepimlibs

/home/guy-kde/src/5/frameworks/gpgmepp/CMakeLists.txt:33
  find_package(KF5KIO ${KF5_VERSION} CONFIG REQUIRED)

/home/guy-kde/src/5/frameworks/kio/CMakeLists.txt:49
  find_package(KF5Wallet ${KF5_DEP_VERSION} REQUIRED)

Reproducible: Always
Comment 1 Unknown 2014-12-20 17:43:14 UTC
beginning with an empty directory /usr/local/{bin|include|lib...}
it is not possible to build KF5 because of this circular dependencies.
Trying to build gpgmepp:
cmake /home/guy-kde/src/5/frameworks/gpgmepp/
CMake Error at CMakeLists.txt:33 (find_package):
  Could not find a package configuration file provided by "KF5KIO" (requested
  version 5.5.0) with any of the following names:

    KF5KIOConfig.cmake
    kf5kio-config.cmake

Trying to build kio first:
cmake /home/guy-kde/src/5/frameworks/kio
CMake Error at CMakeLists.txt:49 (find_package):
  By not providing "FindKF5Wallet.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "KF5Wallet", but CMake did not find one.

  Could not find a package configuration file provided by "KF5Wallet"
  (requested version 5.5.0) with any of the following names:

    KF5WalletConfig.cmake
    kf5wallet-config.cmake

Trying to build kio kwallet first:
cmake /home/guy-kde/src/5/frameworks/kwallet/
CMake Warning at src/runtime/kwalletd/CMakeLists.txt:17 (find_package):
  By not providing "FindKF5Gpgmepp.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "KF5Gpgmepp", but CMake did not find one.

  Could not find a package configuration file provided by "KF5Gpgmepp" with
  any of the following names:

    KF5GpgmeppConfig.cmake
    kf5gpgmepp-config.cmake

Can anybody help? I cannot go on.
Comment 2 Valentin Rusu 2014-12-21 18:03:08 UTC
Well, the KF5Gpgmepp problem is also hitting me. On my system I have the problem where KF5Gpgmepp is not found. I know that kdepim splittings was ongoing and was waiting for it to be done before moving further. So, first question is: is KF5Gpgmepp available now? I need this as I'm using a GPG-encrypted wallet on my system and for the moment I'm unable to switch to kwalletd5 because of this.
Comment 3 Valentin Rusu 2014-12-21 18:57:58 UTC
(In reply to Valentin Rusu from comment #2)
> Well, the KF5Gpgmepp problem is also hitting me. On my system I have the
> problem where KF5Gpgmepp is not found. I know that kdepim splittings was
> ongoing and was waiting for it to be done before moving further. So, first
> question is: is KF5Gpgmepp available now? I need this as I'm using a
> GPG-encrypted wallet on my system and for the moment I'm unable to switch to
> kwalletd5 because of this.

Well, actually my "KF5Gpemepp not found" problem is gone after rebuilding. I'll also try a full rebuild to see if I get in your case or note.
Comment 4 Valentin Rusu 2014-12-21 19:54:20 UTC
Well, after removing all of my KF5 compiled binaries and build directories, I was able to rebuild all the relevant components using kdesrc-build, e.g. KF5Wallet and KIO where correctly configured and installed.
Comment 5 Unknown 2014-12-22 15:44:22 UTC
You are right.
Sorry, the mistake is by me.
I confused the two files
  /home/guy-kde/src/5/frameworks/kwallet/src/runtime/kwalletd/CMakeLists.txt
  /home/guy-kde/src/5/frameworks/kwallet/CMakeLists.txt

It is now running pretty well.
Thanks for helping.
Comment 6 Hrvoje Senjan 2014-12-22 23:41:03 UTC
this is still valid!
on first clean build you'll get kwalletd5 built w/o GPG support.
once you rebuild the same version, on 2nd run it will detect gpgmepp.

this definitely needs solving before gpgmepp gets a release
adding Laurent, per gpgmepp .reviewboardrc file
Comment 7 Hrvoje Senjan 2014-12-22 23:46:00 UTC
well, it is much easier than expected. gpgmepp has find_package(KF5KIO ${KF5_VERSION} CONFIG REQUIRED), but none of Frameworks are used, so it is enough to remove that call
Comment 8 Hrvoje Senjan 2015-01-06 17:20:18 UTC
Git commit 020b64c51db67726d22a49ea63ed6d5ccb6ad95a by Hrvoje Senjan.
Committed on 06/01/2015 at 17:20.
Pushed by hrvojes into branch 'master'.

Drop KIO requirement
REVIEW: 121884

M  +0    -1    CMakeLists.txt

http://commits.kde.org/gpgmepp/020b64c51db67726d22a49ea63ed6d5ccb6ad95a