[pkg-gnupg-maint] libqgpgme15 and Qt6

Ron Murray rjmx at rjmx.net
Fri Nov 24 06:29:53 GMT 2023


Thanks for the reply.
I'm not trying to get you to help debug my code; I thought this was a good place to start, making sure that libqgpgme15 was compatible with Qt6 before I started looking further. I do note that the source code doesn't seem to mention Qt6 (except in the changelog), although it mentions Qt5 many times. That's why I felt it necessary to ask.
Thanbks,
-- 
Ron Murray <rjmx at rjmx.net <mailto:rjmx at rjmx.net> >
PGP Fingerprint: 4D99 70E3 2317 334B 141E 7B63 12F7 E865 B5E2 E761
Andre Heinecke wrote:
Hi Ron,
On Friday, 24 November 2023 03:34:36 CET Ron Murray wrote:
I've written an app using Qt5, and I'm in the process of converting it to 
Qt6. It involves some crypto work, and I've been using QGpgME to do that. 
I'm using Debian trixie, so that involved libqgpgme15.
I've discovered that the crypto functions are not working. Using the code 
that worked fine with Qt5, I get a segfault when it gets to the exec() 
function. Typical code:
QGpgME::KeyListJob *keylistjob = QGpgME::openpgp()->keyListJob(false, 
false, false);
GpgME::KeyListResult listresult = keylistjob->exec(QStringList() <<
ID,
true, recipient); // Only secret keys
(segfaults on the second line).
That can happen if there is no support found for OpenPGP on your system. If 
you have not checked EngineInfo for gpg engine beforehand.. But please do not 
respond here this is the wrong place for it. Please take this over to https://
dev.gnupg.org/
Is libqgpgme15 compatible with Qt6? Have there been any changes in the 
calling procedure for exec()?
Yes. We are compatible. Since QGpgME is deeply rooted in KDE we are following 
along with the transition there. As mentioned your problem does not have 
anything to do with exec but this is the wrong channel to debug your code.
Best Regards,
Andre
-- 
GnuPG.com - a brand of g10 Code, the GnuPG experts.
g10 Code GmbH, Erkrath/Germany, AG Wuppertal HRB14459
GF Werner Koch, USt-Id DE215605608, www.g10code.com.
GnuPG e.V., Rochusstr. 44, D-40479 Düsseldorf. VR 11482 Düsseldorf
Vorstand: W.Koch, B.Reiter, A.Heinecke Mail: board at gnupg.org
Finanzamt D-Altstadt, St-Nr: 103/5923/1779. Tel: +49-211-28010702
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-gnupg-maint/attachments/20231124/89632038/attachment-0001.htm>


More information about the pkg-gnupg-maint mailing list