Bug 491889

Summary: Building kmymoney5 from stable branch fails with gpgme 1.23.2
Product: [Applications] kmymoney Reporter: Ralf Habacker <ralf.habacker>
Component: packagingAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 5.1.3   
Target Milestone: ---   
Platform: Other   
OS: Microsoft Windows   
Latest Commit: Version Fixed In: 5.2
Sentry Crash Report:
Bug Depends on:    
Bug Blocks: 488491    
Attachments: Build log

Description Ralf Habacker 2024-08-19 07:59:21 UTC
Created attachment 172744 [details]
Build log

STEPS TO REPRODUCE
1. see attached log generated by https://build.opensuse.org/package/show/windows:mingw:win32:snapshots/mingw32-kmymoney5

OBSERVED RESULT
The build fails with 
[   88s] /home/abuild/rpmbuild/BUILD/kmymoney-5.1+20240819+git.ec9d0d67/kmymoney/plugins/xml/libkgpgfile/kgpgfile.cpp:282:(.text+0x94c): undefined reference to `GpgME::Data::seek(long, int)'

EXPECTED RESULT
The build should not fail
Comment 1 Ralf Habacker 2024-08-19 18:18:13 UTC
The master branch is also affected by this issue.
Comment 2 Ralf Habacker 2024-08-20 12:47:07 UTC
The solution is to replace the call to seek() with rewind(), which was added with qgpgme 1.12 in May 2018 (see https://github.com/gpg/gpgme/commit/618aa7f08db41911f25632d9fba23bca80908ebe).
Comment 3 Thomas Baumgart 2024-08-24 06:49:04 UTC
Git commit 8e173074110368e0a944ec46b95f179989d6cbdb by Thomas Baumgart.
Committed on 24/08/2024 at 06:48.
Pushed by tbaumgart into branch 'master'.

Fix building with gpgme 1.23.2
FIXED-IN: 5.2

M  +2    -2    kmymoney/misc/kgpgfile.cpp

https://invent.kde.org/office/kmymoney/-/commit/8e173074110368e0a944ec46b95f179989d6cbdb