qt-6.7.patch 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. From 3a812de6e7e0b285eda21ebbb670ca809c4db2b5 Mon Sep 17 00:00:00 2001
  2. From: Matt Jolly <Matt.Jolly@footclan.ninja>
  3. Date: Thu, 11 Apr 2024 12:42:17 +1000
  4. Subject: [PATCH] Add QtGui to the list of Qt modules
  5. Re: https://bugreports.qt.io/browse/QTBUG-124135 - certain versions of QT
  6. (6.6.3, 6.7.0) produce pkg-config files that no longer emit dependencies.
  7. This causes Chromium builds to fail as due to not seeing QtGui as a dependency
  8. of QtWidgets:
  9. `gen/qt6/../../../../ui/qt/qt_shim.h:11:10: fatal error: 'QImage' file not found`
  10. While this has been resolved upstream, there will certainly be some users
  11. that are still using these versions of QT. This patch adds QtGui to the list of
  12. Qt modules that are required to build the Chromium UI.
  13. Bug: https://bugs.gentoo.org/928299
  14. Suggested-by: Chris Pritchard <chris@christopherpritchard.co.uk>
  15. Signed-off-by: Matt Jolly <kangie@gentoo.org>
  16. --- a/ui/qt/BUILD.gn
  17. +++ b/ui/qt/BUILD.gn
  18. @@ -60,6 +60,7 @@ template("qt_shim") {
  19. pkg_config("qt" + invoker.qt_version + "_config") {
  20. packages = [
  21. "Qt" + invoker.qt_version + "Core",
  22. + "Qt" + invoker.qt_version + "Gui",
  23. "Qt" + invoker.qt_version + "Widgets",
  24. ]
  25. }
  26. --
  27. 2.44.0