diff --git a/fix-missing-includes-with-qt-5.15.patch b/fix-missing-includes-with-qt-5.15.patch new file mode 100644 index 0000000..138930c --- /dev/null +++ b/fix-missing-includes-with-qt-5.15.patch @@ -0,0 +1,68 @@ +Index: VirtualBox-6.1.4/src/VBox/Frontends/VirtualBox/src/globals/UIImageTools.cpp +=================================================================== +--- VirtualBox-6.1.4.orig/src/VBox/Frontends/VirtualBox/src/globals/UIImageTools.cpp ++++ VirtualBox-6.1.4/src/VBox/Frontends/VirtualBox/src/globals/UIImageTools.cpp +@@ -17,6 +17,7 @@ + + /* Qt includes: */ + #include ++#include + + /* GUI include */ + #include "UIImageTools.h" +Index: VirtualBox-6.1.4/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupBox.cpp +=================================================================== +--- VirtualBox-6.1.4.orig/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupBox.cpp ++++ VirtualBox-6.1.4/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupBox.cpp +@@ -19,6 +19,7 @@ + #include + #include + #include ++#include + #include + #include + #include +Index: VirtualBox-6.1.4/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupBox.h +=================================================================== +--- VirtualBox-6.1.4.orig/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupBox.h ++++ VirtualBox-6.1.4/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupBox.h +@@ -24,6 +24,7 @@ + /* Qt includes: */ + #include + #include ++#include + + /* GUI includes: */ + #include "UILibraryDefs.h" +@@ -34,7 +35,6 @@ class QIcon; + class QLabel; + class QMouseEvent; + class QObject; +-class QPainterPath; + class QPaintEvent; + class QResizeEvent; + class QString; +Index: VirtualBox-6.1.4/src/VBox/Frontends/VirtualBox/src/widgets/UIMiniToolBar.cpp +=================================================================== +--- VirtualBox-6.1.4.orig/src/VBox/Frontends/VirtualBox/src/widgets/UIMiniToolBar.cpp ++++ VirtualBox-6.1.4/src/VBox/Frontends/VirtualBox/src/widgets/UIMiniToolBar.cpp +@@ -21,6 +21,7 @@ + #include + #include + #include ++#include + #include + #include + #include +Index: VirtualBox-6.1.4/src/VBox/Frontends/VirtualBox/src/widgets/UIMenuToolBar.cpp +=================================================================== +--- VirtualBox-6.1.4.orig/src/VBox/Frontends/VirtualBox/src/widgets/UIMenuToolBar.cpp ++++ VirtualBox-6.1.4/src/VBox/Frontends/VirtualBox/src/widgets/UIMenuToolBar.cpp +@@ -19,6 +19,7 @@ + #include + #include + #include ++#include + #include + #include + diff --git a/virtualbox.changes b/virtualbox.changes index 07ca330..b1724ea 100644 --- a/virtualbox.changes +++ b/virtualbox.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Mar 27 09:32:21 UTC 2020 - Antonio Larrosa + +- Add patch to fix missing include with Qt 5.15: + * fix-missing-includes-with-qt-5.15.patch + ------------------------------------------------------------------- Tue Mar 24 01:51:36 UTC 2020 - Larry Finger diff --git a/virtualbox.spec b/virtualbox.spec index 9217de9..6702814 100644 --- a/virtualbox.spec +++ b/virtualbox.spec @@ -154,6 +154,8 @@ Patch134: fixes_for_5.5.patch Patch135: fixes_for_5.6.patch # Fis VBoxClient Crashes Patch136: VirtualBox-6.1.4-VBoxClient-vmsvga-x11-crash.patch +# Fix build for Qt 5.15 +Patch137: fix-missing-includes-with-qt-5.15.patch Patch999: virtualbox-fix-ui-background-color.patch # BuildRequires: LibVNCServer-devel @@ -460,6 +462,7 @@ as an "extpack" for VirtualBox. The implementation is licensed under GPL. %patch135 -p1 %endif %patch136 -p1 +%patch137 -p1 # make VB UI background colors look sane again %patch999 -p1