qt5-qtbase: fix builds

This commit is contained in:
Yaksh Bariya 2022-02-22 19:20:53 +05:30
parent dd909fab2e
commit 19949a5704
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581
4 changed files with 34 additions and 1 deletions

View File

@ -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 <symeon@librehat.com>"
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"

View File

@ -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 <QtCore/qfloat16.h>
#include <QtCore/qglobal.h>
+#include <limits>
+
// include stdlib.h and hope that it defines __GLIBC__ for glibc-based systems
#include <stdlib.h>
#include <string.h>

View File

@ -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 <QtCore/qbytearray.h>
+#include <limits>
+
QT_BEGIN_NAMESPACE

View File

@ -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 <math.h>
#include <stdio.h>
+#include <limits>
+
#include <private/qmetaobject_p.h> //for the flags.
#include <private/qplugin_p.h> //for the flags.