diff options
| author | Andreas Müller <schnitzeltony@gmail.com> | 2019-04-14 13:59:30 +0200 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2019-05-30 12:21:03 +0000 |
| commit | 1520d5b2b2beec5e1c3209d3178219e93ef08bca (patch) | |
| tree | 03207eb1a44e71a1a6be54ebcf90af2c3302f323 | |
| parent | 0630018c0033c91fddda62a49f59a82ba6ec6850 (diff) | |
| download | meta-qt5-1520d5b2b2beec5e1c3209d3178219e93ef08bca.tar.gz | |
qtbase: Fix build with recent oe-core/pseudo on hosts with glibc >= 2.28
Recently pseudo changed to not support reanameeat2 as glibc wrapper [1]. This
causes massive failures at do_install [2] on qtbase.
To work around tell Qt build configuration not to use ranameat2 independent
of glibc version.
Target qtbase does not require this adjustment - there is no pseudo on target.
[1] https://git.openembedded.org/openembedded-core/commit/?id=0fb257121b68f38b40c078150db8f7d0979b7ea5
[2] https://github.com/meta-qt5/meta-qt5/issues/187
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
13 files changed, 103 insertions, 75 deletions
diff --git a/recipes-qt/qt5/nativesdk-qtbase_git.bb b/recipes-qt/qt5/nativesdk-qtbase_git.bb index bfce14f5..477417e0 100644 --- a/recipes-qt/qt5/nativesdk-qtbase_git.bb +++ b/recipes-qt/qt5/nativesdk-qtbase_git.bb | |||
| @@ -23,7 +23,7 @@ FILESEXTRAPATHS =. "${FILE_DIRNAME}/qtbase:" | |||
| 23 | 23 | ||
| 24 | # common for qtbase-native, qtbase-nativesdk and qtbase | 24 | # common for qtbase-native, qtbase-nativesdk and qtbase |
| 25 | # Patches from https://github.com/meta-qt5/qtbase/commits/b5.11-shared | 25 | # Patches from https://github.com/meta-qt5/qtbase/commits/b5.11-shared |
| 26 | # 5.11.meta-qt5-shared.13 | 26 | # 5.11.meta-qt5-shared.14 |
| 27 | SRC_URI += "\ | 27 | SRC_URI += "\ |
| 28 | file://0001-Add-linux-oe-g-platform.patch \ | 28 | file://0001-Add-linux-oe-g-platform.patch \ |
| 29 | file://0002-cmake-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS.patch \ | 29 | file://0002-cmake-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS.patch \ |
| @@ -38,20 +38,20 @@ SRC_URI += "\ | |||
| 38 | file://0011-tst_qlocale-Enable-QT_USE_FENV-only-on-glibc.patch \ | 38 | file://0011-tst_qlocale-Enable-QT_USE_FENV-only-on-glibc.patch \ |
| 39 | file://0012-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch \ | 39 | file://0012-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch \ |
| 40 | file://0013-Upgrade-double-conversion-to-v3.0.0.patch \ | 40 | file://0013-Upgrade-double-conversion-to-v3.0.0.patch \ |
| 41 | file://0014-Check-glibc-version-for-renameat2-statx-on-non-boots.patch \ | 41 | file://0014-double-conversion-support-AARCH64EB-and-arm-BE.patch \ |
| 42 | file://0015-double-conversion-support-AARCH64EB-and-arm-BE.patch \ | 42 | file://0015-Disable-ltcg-for-host_build.patch \ |
| 43 | file://0016-Disable-ltcg-for-host_build.patch \ | 43 | file://0016-Qt5GuiConfigExtras.cmake.in-cope-with-variable-path-.patch \ |
| 44 | file://0017-Qt5GuiConfigExtras.cmake.in-cope-with-variable-path-.patch \ | 44 | file://0017-corelib-Include-sys-types.h-for-uint32_t.patch \ |
| 45 | file://0018-corelib-Include-sys-types.h-for-uint32_t.patch \ | 45 | file://0018-Define-QMAKE_CXX.COMPILER_MACROS-for-clang-on-linux.patch \ |
| 46 | file://0019-Define-QMAKE_CXX.COMPILER_MACROS-for-clang-on-linux.patch \ | 46 | file://0019-Fix-compile-issue-with-gcc-9.patch \ |
| 47 | file://0020-Fix-compile-issue-with-gcc-9.patch \ | ||
| 48 | " | 47 | " |
| 49 | 48 | ||
| 50 | # common for qtbase-native and nativesdk-qtbase | 49 | # common for qtbase-native and nativesdk-qtbase |
| 51 | # Patches from https://github.com/meta-qt5/qtbase/commits/b5.11-native | 50 | # Patches from https://github.com/meta-qt5/qtbase/commits/b5.11-native |
| 52 | # 5.11.meta-qt5-native.13 | 51 | # 5.11.meta-qt5-native.14 |
| 53 | SRC_URI += " \ | 52 | SRC_URI += " \ |
| 54 | file://0021-Always-build-uic-and-qvkgen.patch \ | 53 | file://0020-Always-build-uic-and-qvkgen.patch \ |
| 54 | file://0021-Avoid-renameeat2-for-native-sdk-builds.patch \ | ||
| 55 | " | 55 | " |
| 56 | 56 | ||
| 57 | # CMake's toolchain configuration of nativesdk-qtbase | 57 | # CMake's toolchain configuration of nativesdk-qtbase |
diff --git a/recipes-qt/qt5/qtbase-native_git.bb b/recipes-qt/qt5/qtbase-native_git.bb index ed5226b9..cc537b5b 100644 --- a/recipes-qt/qt5/qtbase-native_git.bb +++ b/recipes-qt/qt5/qtbase-native_git.bb | |||
| @@ -18,7 +18,7 @@ require qt5-git.inc | |||
| 18 | 18 | ||
| 19 | # common for qtbase-native, qtbase-nativesdk and qtbase | 19 | # common for qtbase-native, qtbase-nativesdk and qtbase |
| 20 | # Patches from https://github.com/meta-qt5/qtbase/commits/b5.11-shared | 20 | # Patches from https://github.com/meta-qt5/qtbase/commits/b5.11-shared |
| 21 | # 5.11.meta-qt5-shared.13 | 21 | # 5.11.meta-qt5-shared.14 |
| 22 | SRC_URI += "\ | 22 | SRC_URI += "\ |
| 23 | file://0001-Add-linux-oe-g-platform.patch \ | 23 | file://0001-Add-linux-oe-g-platform.patch \ |
| 24 | file://0002-cmake-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS.patch \ | 24 | file://0002-cmake-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS.patch \ |
| @@ -33,20 +33,20 @@ SRC_URI += "\ | |||
| 33 | file://0011-tst_qlocale-Enable-QT_USE_FENV-only-on-glibc.patch \ | 33 | file://0011-tst_qlocale-Enable-QT_USE_FENV-only-on-glibc.patch \ |
| 34 | file://0012-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch \ | 34 | file://0012-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch \ |
| 35 | file://0013-Upgrade-double-conversion-to-v3.0.0.patch \ | 35 | file://0013-Upgrade-double-conversion-to-v3.0.0.patch \ |
| 36 | file://0014-Check-glibc-version-for-renameat2-statx-on-non-boots.patch \ | 36 | file://0014-double-conversion-support-AARCH64EB-and-arm-BE.patch \ |
| 37 | file://0015-double-conversion-support-AARCH64EB-and-arm-BE.patch \ | 37 | file://0015-Disable-ltcg-for-host_build.patch \ |
| 38 | file://0016-Disable-ltcg-for-host_build.patch \ | 38 | file://0016-Qt5GuiConfigExtras.cmake.in-cope-with-variable-path-.patch \ |
| 39 | file://0017-Qt5GuiConfigExtras.cmake.in-cope-with-variable-path-.patch \ | 39 | file://0017-corelib-Include-sys-types.h-for-uint32_t.patch \ |
| 40 | file://0018-corelib-Include-sys-types.h-for-uint32_t.patch \ | 40 | file://0018-Define-QMAKE_CXX.COMPILER_MACROS-for-clang-on-linux.patch \ |
| 41 | file://0019-Define-QMAKE_CXX.COMPILER_MACROS-for-clang-on-linux.patch \ | 41 | file://0019-Fix-compile-issue-with-gcc-9.patch \ |
| 42 | file://0020-Fix-compile-issue-with-gcc-9.patch \ | ||
| 43 | " | 42 | " |
| 44 | 43 | ||
| 45 | # common for qtbase-native and nativesdk-qtbase | 44 | # common for qtbase-native and nativesdk-qtbase |
| 46 | # Patches from https://github.com/meta-qt5/qtbase/commits/b5.11-native | 45 | # Patches from https://github.com/meta-qt5/qtbase/commits/b5.11-native |
| 47 | # 5.11.meta-qt5-native.13 | 46 | # 5.11.meta-qt5-native.14 |
| 48 | SRC_URI += " \ | 47 | SRC_URI += " \ |
| 49 | file://0021-Always-build-uic-and-qvkgen.patch \ | 48 | file://0020-Always-build-uic-and-qvkgen.patch \ |
| 49 | file://0021-Avoid-renameeat2-for-native-sdk-builds.patch \ | ||
| 50 | " | 50 | " |
| 51 | 51 | ||
| 52 | # only for qtbase-native | 52 | # only for qtbase-native |
diff --git a/recipes-qt/qt5/qtbase/0014-Check-glibc-version-for-renameat2-statx-on-non-boots.patch b/recipes-qt/qt5/qtbase/0014-Check-glibc-version-for-renameat2-statx-on-non-boots.patch deleted file mode 100644 index 09ec0fa9..00000000 --- a/recipes-qt/qt5/qtbase/0014-Check-glibc-version-for-renameat2-statx-on-non-boots.patch +++ /dev/null | |||
| @@ -1,38 +0,0 @@ | |||
| 1 | From fb6a20e6917cfa32e69791e0adb130140f4b5688 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com> | ||
| 3 | Date: Tue, 21 Aug 2018 00:29:06 +0200 | ||
| 4 | Subject: [PATCH] Check glibc version for renameat2/statx on non bootstrapped | ||
| 5 | build | ||
| 6 | MIME-Version: 1.0 | ||
| 7 | Content-Type: text/plain; charset=UTF-8 | ||
| 8 | Content-Transfer-Encoding: 8bit | ||
| 9 | |||
| 10 | Upstream-Status: Pending | ||
| 11 | |||
| 12 | Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> | ||
| 13 | --- | ||
| 14 | src/corelib/io/qfilesystemengine_unix.cpp | 11 +++++++++++ | ||
| 15 | 1 file changed, 11 insertions(+) | ||
| 16 | |||
| 17 | diff --git a/src/corelib/io/qfilesystemengine_unix.cpp b/src/corelib/io/qfilesystemengine_unix.cpp | ||
| 18 | index 964dcebeb2..c09eb0154b 100644 | ||
| 19 | --- a/src/corelib/io/qfilesystemengine_unix.cpp | ||
| 20 | +++ b/src/corelib/io/qfilesystemengine_unix.cpp | ||
| 21 | @@ -95,6 +95,17 @@ extern "C" NSString *NSTemporaryDirectory(); | ||
| 22 | #ifndef FICLONE | ||
| 23 | # define FICLONE _IOW(0x94, 9, int) | ||
| 24 | #endif | ||
| 25 | + | ||
| 26 | +// renameat2/statx features for non bootstrapped build | ||
| 27 | +#ifndef QT_BOOTSTRAPPED | ||
| 28 | +#ifdef __GLIBC_PREREQ | ||
| 29 | +# define QT_FEATURE_renameat2 (__GLIBC_PREREQ(2, 28) ? 1 : -1) | ||
| 30 | +# define QT_FEATURE_statx (__GLIBC_PREREQ(2, 28) ? 1 : -1) | ||
| 31 | +#else | ||
| 32 | +# define QT_FEATURE_renameat2 -1 | ||
| 33 | +# define QT_FEATURE_statx -1 | ||
| 34 | +#endif | ||
| 35 | +#endif | ||
| 36 | #endif | ||
| 37 | |||
| 38 | #if defined(Q_OS_ANDROID) | ||
diff --git a/recipes-qt/qt5/qtbase/0015-double-conversion-support-AARCH64EB-and-arm-BE.patch b/recipes-qt/qt5/qtbase/0014-double-conversion-support-AARCH64EB-and-arm-BE.patch index 5658b01a..5212f7dd 100644 --- a/recipes-qt/qt5/qtbase/0015-double-conversion-support-AARCH64EB-and-arm-BE.patch +++ b/recipes-qt/qt5/qtbase/0014-double-conversion-support-AARCH64EB-and-arm-BE.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 09b304966543753e445b90b904a9f558377a87f6 Mon Sep 17 00:00:00 2001 | 1 | From 7959088cb80f27202252f7080a4c334f3474cac7 Mon Sep 17 00:00:00 2001 |
| 2 | From: Lei Maohui <leimaohui@cn.fujitsu.com> | 2 | From: Lei Maohui <leimaohui@cn.fujitsu.com> |
| 3 | Date: Wed, 29 Aug 2018 18:20:14 +0900 | 3 | Date: Wed, 29 Aug 2018 18:20:14 +0900 |
| 4 | Subject: [PATCH] double-conversion: support AARCH64EB and arm BE | 4 | Subject: [PATCH] double-conversion: support AARCH64EB and arm BE |
diff --git a/recipes-qt/qt5/qtbase/0016-Disable-ltcg-for-host_build.patch b/recipes-qt/qt5/qtbase/0015-Disable-ltcg-for-host_build.patch index e6ba5a35..7248b878 100644 --- a/recipes-qt/qt5/qtbase/0016-Disable-ltcg-for-host_build.patch +++ b/recipes-qt/qt5/qtbase/0015-Disable-ltcg-for-host_build.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From e9ea14a04e74be6740b82d51340bb6218f35ab1f Mon Sep 17 00:00:00 2001 | 1 | From 8b71f94e010aa9ee0c1e577738e0a8af8365b39e Mon Sep 17 00:00:00 2001 |
| 2 | From: Samuli Piippo <samuli.piippo@qt.io> | 2 | From: Samuli Piippo <samuli.piippo@qt.io> |
| 3 | Date: Tue, 23 Oct 2018 09:54:57 +0300 | 3 | Date: Tue, 23 Oct 2018 09:54:57 +0300 |
| 4 | Subject: [PATCH] Disable ltcg for host_build | 4 | Subject: [PATCH] Disable ltcg for host_build |
diff --git a/recipes-qt/qt5/qtbase/0017-Qt5GuiConfigExtras.cmake.in-cope-with-variable-path-.patch b/recipes-qt/qt5/qtbase/0016-Qt5GuiConfigExtras.cmake.in-cope-with-variable-path-.patch index 54b0f640..921ca25f 100644 --- a/recipes-qt/qt5/qtbase/0017-Qt5GuiConfigExtras.cmake.in-cope-with-variable-path-.patch +++ b/recipes-qt/qt5/qtbase/0016-Qt5GuiConfigExtras.cmake.in-cope-with-variable-path-.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From f5b11bb3ab6299912491568f84185e0174cc6e5a Mon Sep 17 00:00:00 2001 | 1 | From bf8555d48d2402e7ed60f1f4232270d24623e088 Mon Sep 17 00:00:00 2001 |
| 2 | From: Max Krummenacher <max.krummenacher@toradex.com> | 2 | From: Max Krummenacher <max.krummenacher@toradex.com> |
| 3 | Date: Sat, 27 Oct 2018 12:29:31 +0000 | 3 | Date: Sat, 27 Oct 2018 12:29:31 +0000 |
| 4 | Subject: [PATCH] Qt5GuiConfigExtras.cmake.in: cope with variable path to | 4 | Subject: [PATCH] Qt5GuiConfigExtras.cmake.in: cope with variable path to |
diff --git a/recipes-qt/qt5/qtbase/0018-corelib-Include-sys-types.h-for-uint32_t.patch b/recipes-qt/qt5/qtbase/0017-corelib-Include-sys-types.h-for-uint32_t.patch index c07cd2b8..8ee4c30d 100644 --- a/recipes-qt/qt5/qtbase/0018-corelib-Include-sys-types.h-for-uint32_t.patch +++ b/recipes-qt/qt5/qtbase/0017-corelib-Include-sys-types.h-for-uint32_t.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From dd16d19bc6b4e8ee5d61fae94cd65b7f10d6e835 Mon Sep 17 00:00:00 2001 | 1 | From 206fb0ffdcbd2ae2278f37d8cfe5c16301312c58 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Thu, 6 Dec 2018 11:47:52 -0800 | 3 | Date: Thu, 6 Dec 2018 11:47:52 -0800 |
| 4 | Subject: [PATCH] corelib: Include sys/types.h for uint32_t | 4 | Subject: [PATCH] corelib: Include sys/types.h for uint32_t |
diff --git a/recipes-qt/qt5/qtbase/0019-Define-QMAKE_CXX.COMPILER_MACROS-for-clang-on-linux.patch b/recipes-qt/qt5/qtbase/0018-Define-QMAKE_CXX.COMPILER_MACROS-for-clang-on-linux.patch index 2ab04330..182f8b6f 100644 --- a/recipes-qt/qt5/qtbase/0019-Define-QMAKE_CXX.COMPILER_MACROS-for-clang-on-linux.patch +++ b/recipes-qt/qt5/qtbase/0018-Define-QMAKE_CXX.COMPILER_MACROS-for-clang-on-linux.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 61d8dd1cfdc6334a4d81c0f043a9515346872d0c Mon Sep 17 00:00:00 2001 | 1 | From c72e38a57ff13ded19fcc22c5abba1a69ba84040 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Thu, 6 Dec 2018 15:06:20 -0800 | 3 | Date: Thu, 6 Dec 2018 15:06:20 -0800 |
| 4 | Subject: [PATCH] Define QMAKE_CXX.COMPILER_MACROS for clang on linux | 4 | Subject: [PATCH] Define QMAKE_CXX.COMPILER_MACROS for clang on linux |
diff --git a/recipes-qt/qt5/qtbase/0020-Fix-compile-issue-with-gcc-9.patch b/recipes-qt/qt5/qtbase/0019-Fix-compile-issue-with-gcc-9.patch index 2eb35600..e0936244 100644 --- a/recipes-qt/qt5/qtbase/0020-Fix-compile-issue-with-gcc-9.patch +++ b/recipes-qt/qt5/qtbase/0019-Fix-compile-issue-with-gcc-9.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From eb68b9fa27d94bc90db5b0023b224ac0e60b8243 Mon Sep 17 00:00:00 2001 | 1 | From 4364a8fcbcc32e37b9ccbfa833e872098f038690 Mon Sep 17 00:00:00 2001 |
| 2 | From: Allan Sandfeld Jensen <allan.jensen@qt.io> | 2 | From: Allan Sandfeld Jensen <allan.jensen@qt.io> |
| 3 | Date: Tue, 13 Nov 2018 16:00:23 +0100 | 3 | Date: Tue, 13 Nov 2018 16:00:23 +0100 |
| 4 | Subject: [PATCH] Fix compile issue with gcc 9 | 4 | Subject: [PATCH] Fix compile issue with gcc 9 |
diff --git a/recipes-qt/qt5/qtbase/0021-Always-build-uic-and-qvkgen.patch b/recipes-qt/qt5/qtbase/0020-Always-build-uic-and-qvkgen.patch index 42d94190..e1555335 100644 --- a/recipes-qt/qt5/qtbase/0021-Always-build-uic-and-qvkgen.patch +++ b/recipes-qt/qt5/qtbase/0020-Always-build-uic-and-qvkgen.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 4ac36e3e40bd8a4940f211cf89155618149f1f68 Mon Sep 17 00:00:00 2001 | 1 | From f1564bbf2829cf1006e1d2af146c0ce27e6c1fdb Mon Sep 17 00:00:00 2001 |
| 2 | From: Martin Jansa <Martin.Jansa@gmail.com> | 2 | From: Martin Jansa <Martin.Jansa@gmail.com> |
| 3 | Date: Sat, 16 Nov 2013 00:32:30 +0100 | 3 | Date: Sat, 16 Nov 2013 00:32:30 +0100 |
| 4 | Subject: [PATCH] Always build uic and qvkgen | 4 | Subject: [PATCH] Always build uic and qvkgen |
diff --git a/recipes-qt/qt5/qtbase/0021-Avoid-renameeat2-for-native-sdk-builds.patch b/recipes-qt/qt5/qtbase/0021-Avoid-renameeat2-for-native-sdk-builds.patch new file mode 100644 index 00000000..546e23c9 --- /dev/null +++ b/recipes-qt/qt5/qtbase/0021-Avoid-renameeat2-for-native-sdk-builds.patch | |||
| @@ -0,0 +1,67 @@ | |||
| 1 | From d8b2572813019c7e196cc2a66d7993acbb2d4617 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com> | ||
| 3 | Date: Sun, 14 Apr 2019 13:27:58 +0200 | ||
| 4 | Subject: [PATCH] Avoid renameeat2 for native(sdk) builds | ||
| 5 | MIME-Version: 1.0 | ||
| 6 | Content-Type: text/plain; charset=UTF-8 | ||
| 7 | Content-Transfer-Encoding: 8bit | ||
| 8 | |||
| 9 | Recently pseudo changed to not support reanameeat2 as glibc wrapper [1]. This | ||
| 10 | causes massive failures at do_install [2] on qtbase. | ||
| 11 | |||
| 12 | To work around tell Qt build configuration not to use ranameet2 independent | ||
| 13 | of glibc version. | ||
| 14 | |||
| 15 | [1] https://git.openembedded.org/openembedded-core/commit/?id=0fb257121b68f38b40c078150db8f7d0979b7ea5 | ||
| 16 | [2] https://github.com/meta-qt5/meta-qt5/issues/187 | ||
| 17 | |||
| 18 | Upstream-Status: Inappropriate [OE-specific] | ||
| 19 | |||
| 20 | Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> | ||
| 21 | --- | ||
| 22 | src/corelib/global/qconfig-bootstrapped.h | 4 ++-- | ||
| 23 | src/corelib/io/qfilesystemengine_unix.cpp | 10 ---------- | ||
| 24 | 2 files changed, 2 insertions(+), 12 deletions(-) | ||
| 25 | |||
| 26 | diff --git a/src/corelib/global/qconfig-bootstrapped.h b/src/corelib/global/qconfig-bootstrapped.h | ||
| 27 | index 229b4d17a1..4e2d43ffc5 100644 | ||
| 28 | --- a/src/corelib/global/qconfig-bootstrapped.h | ||
| 29 | +++ b/src/corelib/global/qconfig-bootstrapped.h | ||
| 30 | @@ -100,14 +100,14 @@ | ||
| 31 | #define QT_FEATURE_process -1 | ||
| 32 | #define QT_FEATURE_regularexpression -1 | ||
| 33 | #ifdef __GLIBC_PREREQ | ||
| 34 | -# define QT_FEATURE_renameat2 (__GLIBC_PREREQ(2, 28) ? 1 : -1) | ||
| 35 | +# define QT_FEATURE_renameat2 -1 | ||
| 36 | #else | ||
| 37 | # define QT_FEATURE_renameat2 -1 | ||
| 38 | #endif | ||
| 39 | #define QT_FEATURE_sharedmemory -1 | ||
| 40 | #define QT_FEATURE_slog2 -1 | ||
| 41 | #ifdef __GLIBC_PREREQ | ||
| 42 | -# define QT_FEATURE_statx (__GLIBC_PREREQ(2, 28) ? 1 : -1) | ||
| 43 | +# define QT_FEATURE_statx -1 | ||
| 44 | #else | ||
| 45 | # define QT_FEATURE_statx -1 | ||
| 46 | #endif | ||
| 47 | diff --git a/src/corelib/io/qfilesystemengine_unix.cpp b/src/corelib/io/qfilesystemengine_unix.cpp | ||
| 48 | index 964dcebeb2..fea7f29c56 100644 | ||
| 49 | --- a/src/corelib/io/qfilesystemengine_unix.cpp | ||
| 50 | +++ b/src/corelib/io/qfilesystemengine_unix.cpp | ||
| 51 | @@ -1252,16 +1252,6 @@ bool QFileSystemEngine::renameFile(const QFileSystemEntry &source, const QFileSy | ||
| 52 | if (Q_UNLIKELY(srcPath.isEmpty() || tgtPath.isEmpty())) | ||
| 53 | return emptyFileEntryWarning(), false; | ||
| 54 | |||
| 55 | -#if defined(RENAME_NOREPLACE) && QT_CONFIG(renameat2) | ||
| 56 | - if (renameat2(AT_FDCWD, srcPath, AT_FDCWD, tgtPath, RENAME_NOREPLACE) == 0) | ||
| 57 | - return true; | ||
| 58 | - | ||
| 59 | - // We can also get EINVAL for some non-local filesystems. | ||
| 60 | - if (errno != EINVAL) { | ||
| 61 | - error = QSystemError(errno, QSystemError::StandardLibraryError); | ||
| 62 | - return false; | ||
| 63 | - } | ||
| 64 | -#endif | ||
| 65 | #if defined(Q_OS_DARWIN) && defined(RENAME_EXCL) | ||
| 66 | if (__builtin_available(macOS 10.12, iOS 10, tvOS 10, watchOS 3, *)) { | ||
| 67 | if (renameatx_np(AT_FDCWD, srcPath, AT_FDCWD, tgtPath, RENAME_EXCL) == 0) | ||
diff --git a/recipes-qt/qt5/qtbase/0022-Bootstrap-without-linkat-feature.patch b/recipes-qt/qt5/qtbase/0022-Bootstrap-without-linkat-feature.patch index ea79e392..2fbe1265 100644 --- a/recipes-qt/qt5/qtbase/0022-Bootstrap-without-linkat-feature.patch +++ b/recipes-qt/qt5/qtbase/0022-Bootstrap-without-linkat-feature.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 03c534e00991d08897541910226256e88f0f5efc Mon Sep 17 00:00:00 2001 | 1 | From 86c2a65a7bfbc8163c93ef0856bb4eda442b8e70 Mon Sep 17 00:00:00 2001 |
| 2 | From: Samuli Piippo <samuli.piippo@qt.io> | 2 | From: Samuli Piippo <samuli.piippo@qt.io> |
| 3 | Date: Fri, 24 Nov 2017 15:16:31 +0200 | 3 | Date: Fri, 24 Nov 2017 15:16:31 +0200 |
| 4 | Subject: [PATCH] Bootstrap without linkat feature | 4 | Subject: [PATCH] Bootstrap without linkat feature |
| @@ -13,7 +13,7 @@ Upstream-Status: Inappropriate [OE specific] | |||
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) | 13 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 14 | 14 | ||
| 15 | diff --git a/src/corelib/global/qconfig-bootstrapped.h b/src/corelib/global/qconfig-bootstrapped.h | 15 | diff --git a/src/corelib/global/qconfig-bootstrapped.h b/src/corelib/global/qconfig-bootstrapped.h |
| 16 | index 229b4d17a1..3dbb1ea65c 100644 | 16 | index 4e2d43ffc5..992a7d7443 100644 |
| 17 | --- a/src/corelib/global/qconfig-bootstrapped.h | 17 | --- a/src/corelib/global/qconfig-bootstrapped.h |
| 18 | +++ b/src/corelib/global/qconfig-bootstrapped.h | 18 | +++ b/src/corelib/global/qconfig-bootstrapped.h |
| 19 | @@ -91,7 +91,7 @@ | 19 | @@ -91,7 +91,7 @@ |
diff --git a/recipes-qt/qt5/qtbase_git.bb b/recipes-qt/qt5/qtbase_git.bb index 67aa4c3b..ca8de801 100644 --- a/recipes-qt/qt5/qtbase_git.bb +++ b/recipes-qt/qt5/qtbase_git.bb | |||
| @@ -14,7 +14,7 @@ LIC_FILES_CHKSUM = " \ | |||
| 14 | 14 | ||
| 15 | # common for qtbase-native, qtbase-nativesdk and qtbase | 15 | # common for qtbase-native, qtbase-nativesdk and qtbase |
| 16 | # Patches from https://github.com/meta-qt5/qtbase/commits/b5.11-shared | 16 | # Patches from https://github.com/meta-qt5/qtbase/commits/b5.11-shared |
| 17 | # 5.11.meta-qt5-shared.13 | 17 | # 5.11.meta-qt5-shared.14 |
| 18 | SRC_URI += "\ | 18 | SRC_URI += "\ |
| 19 | file://0001-Add-linux-oe-g-platform.patch \ | 19 | file://0001-Add-linux-oe-g-platform.patch \ |
| 20 | file://0002-cmake-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS.patch \ | 20 | file://0002-cmake-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS.patch \ |
| @@ -29,13 +29,12 @@ SRC_URI += "\ | |||
| 29 | file://0011-tst_qlocale-Enable-QT_USE_FENV-only-on-glibc.patch \ | 29 | file://0011-tst_qlocale-Enable-QT_USE_FENV-only-on-glibc.patch \ |
| 30 | file://0012-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch \ | 30 | file://0012-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch \ |
| 31 | file://0013-Upgrade-double-conversion-to-v3.0.0.patch \ | 31 | file://0013-Upgrade-double-conversion-to-v3.0.0.patch \ |
| 32 | file://0014-Check-glibc-version-for-renameat2-statx-on-non-boots.patch \ | 32 | file://0014-double-conversion-support-AARCH64EB-and-arm-BE.patch \ |
| 33 | file://0015-double-conversion-support-AARCH64EB-and-arm-BE.patch \ | 33 | file://0015-Disable-ltcg-for-host_build.patch \ |
| 34 | file://0016-Disable-ltcg-for-host_build.patch \ | 34 | file://0016-Qt5GuiConfigExtras.cmake.in-cope-with-variable-path-.patch \ |
| 35 | file://0017-Qt5GuiConfigExtras.cmake.in-cope-with-variable-path-.patch \ | 35 | file://0017-corelib-Include-sys-types.h-for-uint32_t.patch \ |
| 36 | file://0018-corelib-Include-sys-types.h-for-uint32_t.patch \ | 36 | file://0018-Define-QMAKE_CXX.COMPILER_MACROS-for-clang-on-linux.patch \ |
| 37 | file://0019-Define-QMAKE_CXX.COMPILER_MACROS-for-clang-on-linux.patch \ | 37 | file://0019-Fix-compile-issue-with-gcc-9.patch \ |
| 38 | file://0020-Fix-compile-issue-with-gcc-9.patch \ | ||
| 39 | " | 38 | " |
| 40 | 39 | ||
| 41 | 40 | ||
