Hello,

I'm trying to upgrade the internal gpgme library from 1.24.3 to 2.0.0 in [1]. However, in the new version of gpgme the cpp binding part of the code has been moved into another repository [2] so now we need to build gpgme first, which depends on libassuan and libgpg-error, and then gpgmepp ( the cpp binding part ), which depends on gpgme and libgpg-error.

So far, my patch makes the compilation of gpgme and gpgmepp towork, but it fails further down with

/home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/comphelper/source/misc/docpasswordhelper.cxx:673:23: error: incomplete type 'GpgME::Context' named in nested name specifier
    ctx.reset( GpgME::Context::createForProtocol(GpgME::OpenPGP) );
               ~~~~~~~^~~~~~~~~

and many other similar problems, See [3]. At comphelper/source/misc/docpasswordhelper.cxx:42 it does  # include <context.h> but now there are two context.h, one in ./workdir/UnpackedTarball/gpgme/src/context.h and the other in ./workdir/UnpackedTarball/gpgmepp/src/context.h

If I remove ./workdir/UnpackedTarball/gpgme/src/context.h manually then it compiles.

How can I make comphelper/source/misc/docpasswordhelper.cxx to include the right ./workdir/UnpackedTarball/gpgmepp/src/context.h ?

Thanks in advance

[1] https://gerrit.libreoffice.org/c/core/+/193394

[2] https://github.com/gpg/gpgme/commit/763d5f5d6a88ec938b8678ab597e1404af724553

[3] https://ci.libreoffice.org/job/gerrit_master_ml/51764/

--
Xisco Faulí
LibreOffice QA Team
IRC: x1sc0

Reply via email to