0002-qt-tests-Fix-build-in-source-directory-part-2.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. From 2d570b3f80b306ccdbc49b4a8e71c4945486fd1c Mon Sep 17 00:00:00 2001
  2. From: Christian Hesse <mail@eworm.de>
  3. Date: Mon, 21 Aug 2023 23:53:47 +0200
  4. Subject: [PATCH 1/1] qt,tests: Fix build in source directory, part 2
  5. * lang/qt/tests/Makefile.am (AM_CPPFLAGS): Include Qt binding sources
  6. before C++ binding sources and C sources.
  7. This fixes the problem that the debug.h in the C sources was found
  8. before the one in the Qt bindings.
  9. Commit d23528cadf4284f508bc4ba05e1b5c14b46bd354 fixed it for Qt5, we
  10. need Qt6 as well.
  11. ---
  12. lang/qt/tests/Makefile.am | 4 ++--
  13. 1 file changed, 2 insertions(+), 2 deletions(-)
  14. diff --git a/lang/qt/tests/Makefile.am b/lang/qt/tests/Makefile.am
  15. index aedd3264..615daf6d 100644
  16. --- a/lang/qt/tests/Makefile.am
  17. +++ b/lang/qt/tests/Makefile.am
  18. @@ -62,10 +62,10 @@ LDADD = ../../cpp/src/libgpgmepp.la ../src/libqgpgmeqt6.la \
  19. ../../../src/libgpgme.la @GPGME_QT6_LIBS@ @GPG_ERROR_LIBS@ \
  20. @GPGME_QT6TEST_LIBS@ @LDADD_FOR_TESTS_KLUDGE@ -lstdc++
  21. -AM_CPPFLAGS = -I$(top_srcdir)/lang/cpp/src -I$(top_builddir)/src \
  22. +AM_CPPFLAGS = -I$(top_srcdir)/lang/qt/src -I$(top_srcdir)/lang/cpp/src \
  23. + -I$(top_builddir)/src \
  24. @GPG_ERROR_CFLAGS@ @GPGME_QT6_CFLAGS@ @GPG_ERROR_CFLAGS@ \
  25. @LIBASSUAN_CFLAGS@ @GPGME_QT6TEST_CFLAGS@ -DBUILDING_QGPGME \
  26. - -I$(top_srcdir)/lang/qt/src \
  27. -DTOP_SRCDIR="$(top_srcdir)"
  28. endif
  29. --
  30. 2.42.0