Created
December 13, 2018 07:30
-
-
Save awesomebytes/856d1d1b0d267f90241451d933a17867 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From a8a73f59afa5da1f7b2669d7562e3871f0b24985 Mon Sep 17 00:00:00 2001 | |
From: Sammy Pfeiffer <Sammy.Pfeiffer@student.uts.edu.au> | |
Date: Thu, 13 Dec 2018 18:29:54 +1100 | |
Subject: [PATCH] Overcome statx libseccomp issue with running inside of a | |
container by disabling statx | |
--- | |
src/corelib/io/qfilesystemengine_unix.cpp | 5 +++++ | |
1 file changed, 5 insertions(+) | |
diff --git a/src/corelib/io/qfilesystemengine_unix.cpp b/src/corelib/io/qfilesystemengine_unix.cpp | |
index 5a5a3a8..b413828 100644 | |
--- a/src/corelib/io/qfilesystemengine_unix.cpp | |
+++ b/src/corelib/io/qfilesystemengine_unix.cpp | |
@@ -102,6 +102,11 @@ extern "C" NSString *NSTemporaryDirectory(); | |
# undef STATX_BASIC_STATS | |
#endif | |
+// If running inside of a container with the host having libseccomp < v2.3.3 | |
+// and a kernel > v4.13 and docker < 18.04 Qtcore fails to compile | |
+// As seen in https://bugs.gentoo.org/672602 | |
+# undef STATX_BASIC_STATS | |
+ | |
#ifndef STATX_ALL | |
struct statx { mode_t stx_mode; }; // dummy | |
#endif | |
-- | |
2.7.4 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment