mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 03:47:29 -03:00
build, qt: Fix compiling qt package in depends with GCC 11
This commit is contained in:
parent
e638acf697
commit
d1d1cc9831
2 changed files with 46 additions and 1 deletions
|
@ -10,7 +10,7 @@ $(package)_patches=fix_qt_pkgconfig.patch mac-qmake.conf fix_no_printer.patch no
|
||||||
$(package)_patches+= fix_android_qmake_conf.patch fix_android_jni_static.patch dont_hardcode_pwd.patch
|
$(package)_patches+= fix_android_qmake_conf.patch fix_android_jni_static.patch dont_hardcode_pwd.patch
|
||||||
$(package)_patches+= drop_lrelease_dependency.patch no_sdk_version_check.patch
|
$(package)_patches+= drop_lrelease_dependency.patch no_sdk_version_check.patch
|
||||||
$(package)_patches+= fix_lib_paths.patch fix_android_pch.patch
|
$(package)_patches+= fix_lib_paths.patch fix_android_pch.patch
|
||||||
$(package)_patches+= qtbase-moc-ignore-gcc-macro.patch
|
$(package)_patches+= qtbase-moc-ignore-gcc-macro.patch fix_limits_header.patch
|
||||||
|
|
||||||
$(package)_qttranslations_file_name=qttranslations-$($(package)_suffix)
|
$(package)_qttranslations_file_name=qttranslations-$($(package)_suffix)
|
||||||
$(package)_qttranslations_sha256_hash=577b0668a777eb2b451c61e8d026d79285371597ce9df06b6dee6c814164b7c3
|
$(package)_qttranslations_sha256_hash=577b0668a777eb2b451c61e8d026d79285371597ce9df06b6dee6c814164b7c3
|
||||||
|
@ -231,6 +231,7 @@ define $(package)_preprocess_cmds
|
||||||
patch -p1 -i $($(package)_patch_dir)/no_sdk_version_check.patch && \
|
patch -p1 -i $($(package)_patch_dir)/no_sdk_version_check.patch && \
|
||||||
patch -p1 -i $($(package)_patch_dir)/fix_lib_paths.patch && \
|
patch -p1 -i $($(package)_patch_dir)/fix_lib_paths.patch && \
|
||||||
patch -p1 -i $($(package)_patch_dir)/qtbase-moc-ignore-gcc-macro.patch && \
|
patch -p1 -i $($(package)_patch_dir)/qtbase-moc-ignore-gcc-macro.patch && \
|
||||||
|
patch -p1 -i $($(package)_patch_dir)/fix_limits_header.patch && \
|
||||||
sed -i.old "s|updateqm.commands = \$$$$\$$$$LRELEASE|updateqm.commands = $($(package)_extract_dir)/qttools/bin/lrelease|" qttranslations/translations/translations.pro && \
|
sed -i.old "s|updateqm.commands = \$$$$\$$$$LRELEASE|updateqm.commands = $($(package)_extract_dir)/qttools/bin/lrelease|" qttranslations/translations/translations.pro && \
|
||||||
mkdir -p qtbase/mkspecs/macx-clang-linux &&\
|
mkdir -p qtbase/mkspecs/macx-clang-linux &&\
|
||||||
cp -f qtbase/mkspecs/macx-clang/qplatformdefs.h qtbase/mkspecs/macx-clang-linux/ &&\
|
cp -f qtbase/mkspecs/macx-clang/qplatformdefs.h qtbase/mkspecs/macx-clang-linux/ &&\
|
||||||
|
|
44
depends/patches/qt/fix_limits_header.patch
Normal file
44
depends/patches/qt/fix_limits_header.patch
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
Fix compiling with GCC 11
|
||||||
|
|
||||||
|
See: https://bugreports.qt.io/browse/QTBUG-90395.
|
||||||
|
|
||||||
|
Upstream commits:
|
||||||
|
- Qt 5.15 -- unavailable as open source
|
||||||
|
- Qt 6.0: b2af6332ea37e45ab230a7a5d2d278f86d961b83
|
||||||
|
- Qt 6.1: 9c56d4da2ff631a8c1c30475bd792f6c86bda53c
|
||||||
|
|
||||||
|
--- old/qtbase/src/corelib/global/qendian.h
|
||||||
|
+++ new/qtbase/src/corelib/global/qendian.h
|
||||||
|
@@ -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>
|
||||||
|
|
||||||
|
--- old/qtbase/src/corelib/tools/qbytearraymatcher.h
|
||||||
|
+++ new/qtbase/src/corelib/tools/qbytearraymatcher.h
|
||||||
|
@@ -42,6 +42,8 @@
|
||||||
|
|
||||||
|
#include <QtCore/qbytearray.h>
|
||||||
|
|
||||||
|
+#include <limits>
|
||||||
|
+
|
||||||
|
QT_BEGIN_NAMESPACE
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
--- old/qtbase/src/tools/moc/generator.cpp
|
||||||
|
+++ new/qtbase/src/tools/moc/generator.cpp
|
||||||
|
@@ -40,6 +40,8 @@
|
||||||
|
#include <QtCore/qplugin.h>
|
||||||
|
#include <QtCore/qstringview.h>
|
||||||
|
|
||||||
|
+#include <limits>
|
||||||
|
+
|
||||||
|
#include <math.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
Loading…
Reference in a new issue