From 19949a57040520d875fc7b832eb0942dc2f8cd24 Mon Sep 17 00:00:00 2001 From: Yaksh Bariya Date: Tue, 22 Feb 2022 19:20:53 +0530 Subject: [PATCH] qt5-qtbase: fix builds --- x11-packages/qt5-qtbase/build.sh | 2 +- .../qt5-qtbase/src-corelib-global-qendian.h.patch | 11 +++++++++++ .../src-corelib-tools-qbytearraymatcher.h.patch | 11 +++++++++++ .../qt5-qtbase/src-tools-moc-generator.cpp.patch | 11 +++++++++++ 4 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 x11-packages/qt5-qtbase/src-corelib-global-qendian.h.patch create mode 100644 x11-packages/qt5-qtbase/src-corelib-tools-qbytearraymatcher.h.patch create mode 100644 x11-packages/qt5-qtbase/src-tools-moc-generator.cpp.patch diff --git a/x11-packages/qt5-qtbase/build.sh b/x11-packages/qt5-qtbase/build.sh index 9df0b540e..41b063b9f 100644 --- a/x11-packages/qt5-qtbase/build.sh +++ b/x11-packages/qt5-qtbase/build.sh @@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="A cross-platform application and UI framework" TERMUX_PKG_LICENSE="LGPL-3.0" TERMUX_PKG_MAINTAINER="Simeon Huang " TERMUX_PKG_VERSION=5.12.11 -TERMUX_PKG_REVISION=8 +TERMUX_PKG_REVISION=9 TERMUX_PKG_SRCURL="https://download.qt.io/official_releases/qt/5.12/${TERMUX_PKG_VERSION}/submodules/qtbase-everywhere-src-${TERMUX_PKG_VERSION}.tar.xz" TERMUX_PKG_SHA256=1c1b4e33137ca77881074c140d54c3c9747e845a31338cfe8680f171f0bc3a39 TERMUX_PKG_DEPENDS="dbus, double-conversion, harfbuzz, libandroid-shmem, libc++, libice, libicu, libjpeg-turbo, libpng, libsm, libuuid, libx11, libxcb, libxi, libxkbcommon, openssl, pcre2, ttf-dejavu, freetype, xcb-util-image, xcb-util-keysyms, xcb-util-renderutil, xcb-util-wm, zlib, glib" diff --git a/x11-packages/qt5-qtbase/src-corelib-global-qendian.h.patch b/x11-packages/qt5-qtbase/src-corelib-global-qendian.h.patch new file mode 100644 index 000000000..dbaa4aaac --- /dev/null +++ b/x11-packages/qt5-qtbase/src-corelib-global-qendian.h.patch @@ -0,0 +1,11 @@ +--- ./src/corelib/global/qendian.h.orig 2022-02-22 21:15:49.540478057 +0530 ++++ ./src/corelib/global/qendian.h 2022-02-22 21:17:02.547543130 +0530 +@@ -44,6 +44,8 @@ + #include + #include + ++#include ++ + // include stdlib.h and hope that it defines __GLIBC__ for glibc-based systems + #include + #include diff --git a/x11-packages/qt5-qtbase/src-corelib-tools-qbytearraymatcher.h.patch b/x11-packages/qt5-qtbase/src-corelib-tools-qbytearraymatcher.h.patch new file mode 100644 index 000000000..33be2d7b3 --- /dev/null +++ b/x11-packages/qt5-qtbase/src-corelib-tools-qbytearraymatcher.h.patch @@ -0,0 +1,11 @@ +--- ./src/corelib/tools/qbytearraymatcher.h.orig 2022-02-22 21:44:47.337704297 +0530 ++++ ./src/corelib/tools/qbytearraymatcher.h 2022-02-22 21:45:04.997704290 +0530 +@@ -42,6 +42,8 @@ + + #include + ++#include ++ + QT_BEGIN_NAMESPACE + + diff --git a/x11-packages/qt5-qtbase/src-tools-moc-generator.cpp.patch b/x11-packages/qt5-qtbase/src-tools-moc-generator.cpp.patch new file mode 100644 index 000000000..826b1d71c --- /dev/null +++ b/x11-packages/qt5-qtbase/src-tools-moc-generator.cpp.patch @@ -0,0 +1,11 @@ +--- ./src/tools/moc/generator.cpp.orig 2022-02-23 14:49:23.798263647 +0530 ++++ ./src/tools/moc/generator.cpp 2022-02-23 14:49:44.558263639 +0530 +@@ -43,6 +43,8 @@ + #include + #include + ++#include ++ + #include //for the flags. + #include //for the flags. +