--- kwalletd/backend/kwalletbackend.orig.cc 2013-12-18 20:22:59.722880177 -0800 +++ kwalletd/backend/kwalletbackend.cc 2013-12-18 20:22:05.784881266 -0800 @@ -28,7 +28,9 @@ #include #include #include +#ifdef HAVE_QGPGME #include +#endif #include #include --- kwalletd/kwalletd.orig.cpp 2013-12-18 20:28:33.313873443 -0800 +++ kwalletd/kwalletd.cpp 2013-12-18 20:28:23.555873640 -0800 @@ -49,7 +49,9 @@ #include #include #include +#ifdef HAVE_QGPGME #include +#endif #include #include // Qt::escape --- kwalletd/kwalletwizard.orig.h 2013-12-18 20:32:16.403868940 -0800 +++ kwalletd/kwalletwizard.h 2013-12-18 20:32:54.993868161 -0800 @@ -20,7 +20,9 @@ #define KWALLETWIZARD_H #include +#ifdef HAVE_QGPGME #include +#endif class PageGpgKey; class PagePassword; --- kwalletd/kwalletd.orig.cpp 2013-12-18 20:34:21.072866424 -0800 +++ kwalletd/kwalletd.cpp 2013-12-18 20:39:30.801860172 -0800 @@ -835,11 +835,13 @@ assert(w); + #ifdef HAVE_QGPGME if (w->cipherType() == KWallet::BACKEND_CIPHER_GPG) { QString keyID = w->gpgKey().shortKeyID(); assert(!keyID.isNull()); KMessageBox::errorWId((WId)wId, i18n("The %1 wallet is encrypted using GPG key %2. Please use GPG tools (such as kleopatra) to change the passphrase associated to that key.", Qt::escape(wallet), keyID)); } else { + #endif QPointer kpd = new KNewPasswordDialog(); kpd->setPrompt(i18n("Please choose a new password for the wallet '%1'.", Qt::escape(wallet))); kpd->setCaption(i18n("KDE Wallet Service")); @@ -864,7 +866,9 @@ } delete kpd; + #ifdef HAVE_QGPGME } + #endif if (reclose) { internalClose(w, handle, true);