SUMMARY The preview builds for Windows listed at https://kmymoney.org/download.html does not provide gpg2 support. STEPS TO REPRODUCE 1. download and unpack a portable package from the listed web page 2. start kmymoney 3. open settings menu 4. enter page "modules" and open setting for xml plugin OBSERVED RESULT gpg2 support is disabled EXPECTED RESULT gpg2 support should be available SOFTWARE/OS VERSIONS Windows: 10
Created attachment 167886 [details] Screenshots showing GPG configuration dialog I have checked this with an actual build of kmymoney from https://cdn.kde.org/ci-builds/office/kmymoney/master/windows/kmymoney-master-3157-windows-cl-msvc2019-x86_64.7z. GGP seems to be compiled in, but the executable file gpg2.exe is missing, which is needed to generate a private/public key pair. The other option of importing keys cannot be used either, as this also requires the gpg2 command line program.
After starting kmymoney from the command line by opening the gpg configuration dialog (Settings->Modules->xml...->Settings), the following appears on the console GpgME::checkEngine returns 150 Invalid crypto engine GPG search "/secring.gpg" GPG no secure keyring found. Failure while setting GPG home directory to "" "Invalid crypto engine" GPG Home directory located in GPG binary located in Failure while setting GPG home directory to "" "Invalid crypto engine"
It's not suprising that gpg2.exe is missing if you have the following in kmymoney's exclude list: > # strip most executables > bin/(?!(kmymoney|sqlcipher|kbuildsycoca5|update-mime-database|kioslave|ofxdump|kconf_update|QtWebEngineProcess)).*\.exe
(In reply to Ingo Klöcker from comment #3) > It's not suprising that gpg2.exe is missing if you have the following in > kmymoney's exclude list: > > # strip most executables > > bin/(?!(kmymoney|sqlcipher|kbuildsycoca5|update-mime-database|kioslave|ofxdump|kconf_update|QtWebEngineProcess)).*\.exe The added files have been corrected with https://invent.kde.org/packaging/craft-blueprints-kde/-/commit/766ecafaee502ad9fc9417402e176bb41d392111, but are not included in the current snapshot (kmymoney-master-3196-windows-cl-msvc2019-x86_64.7z) at https://cdn.kde.org/ci-builds/office/kmymoney/master/windows/.
(In reply to Ralf Habacker from comment #4) > The added files have been corrected with > https://invent.kde.org/packaging/craft-blueprints-kde/-/commit/ > 766ecafaee502ad9fc9417402e176bb41d392111, but are not included in the > current snapshot (kmymoney-master-3196-windows-cl-msvc2019-x86_64.7z) at > https://cdn.kde.org/ci-builds/office/kmymoney/master/windows/. gpg2 is still not included in the portable package.
(In reply to Ralf Habacker from comment #5) > gpg2 is still not included in the portable package. Try depending on libs/gpgme/gpgme and libs/gpgme/gpgmepp instead of on libs/gpgme in the blueprint.
Git commit a8488c6711148f6efeea006f426da2bcd74f9cf4 by Thomas Baumgart. Committed on 28/04/2024 at 07:18. Pushed by tbaumgart into branch 'master'. [kmymoney] Try to fix gpg support Add proposed fix M +2 -1 extragear/kmymoney/kmymoney.py https://invent.kde.org/packaging/craft-blueprints-kde/-/commit/a8488c6711148f6efeea006f426da2bcd74f9cf4
(In reply to Thomas Baumgart from comment #7) > Git commit a8488c6711148f6efeea006f426da2bcd74f9cf4 by Thomas Baumgart. > Committed on 28/04/2024 at 07:18. > Add proposed fix I have heard that every time the blueprint file is changed, self.patchLevel must also be updated.
Not sure if that applies here. Some gpgme*.exe files are now in ./bin without changing the patchlevel. Not sure if that is enough or not, though. No sign of gpg2.exe and honestly, I have no idea where it should come from.
Bumping the patchLevel is only needed for packages that are cached. libalkimia may be cached, but applications are never cached. Hence, bumping the patchLevel of an application isn't necessary. Regarding the missing gnupg, try if adding libs/gnupg as direct dependency of kmymoney helps.
A possibly relevant merge request was started @ https://invent.kde.org/packaging/craft-blueprints-kde/-/merge_requests/857
Git commit 203ad70e20af968d6ee76b67a87ad34a6ce93eee by Ingo Klöcker, on behalf of Thomas Baumgart. Committed on 01/05/2024 at 10:17. Pushed by kloecker into branch 'qt5-lts'. [kmymoney] Try to fix gpg support Add proposed fix (cherry picked from commit a8488c6711148f6efeea006f426da2bcd74f9cf4) M +2 -1 extragear/kmymoney/kmymoney.py https://invent.kde.org/packaging/craft-blueprints-kde/-/commit/203ad70e20af968d6ee76b67a87ad34a6ce93eee
I think we have found the cause for the missing gpg executable. See https://invent.kde.org/packaging/craft-blueprints-kde/-/merge_requests/858
Git commit ad644993902b8a35ff6cf5b7965f1cc3e338a28f by Hannah von Reth, on behalf of Ingo Klöcker. Committed on 04/05/2024 at 11:05. Pushed by vonreth into branch 'master'. Make the precompiled gnupg available in MSVC builds This makes the precompiled (with MinGW) binaries of gnupg and its dependencies (except sqlite) available in MSVC builds. We ignore sqlite for now because it's only needed for the off-by-default keyboxd and because unlike the other dependencies sqlite is actually compiled with MSVC. A +27 -0 libs/_msvc/gnupg/gnupg.py A +19 -0 libs/_msvc/libksba/libksba.py A +19 -0 libs/_msvc/npth/npth.py A +23 -0 libs/_msvc/ntbtls/ntbtls.py https://invent.kde.org/packaging/craft-blueprints-kde/-/commit/ad644993902b8a35ff6cf5b7965f1cc3e338a28f
Fixed in the meantime