0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-06-01 23:52:13 +00:00
Files
termux-packages/x11-packages/qt6-qtbase/src-corelib-io-qstorageinfo_linux.cpp.patch.beforehostbuild
Biswapriyo Nath 0aca5dfa47 bump(x11/qt6-qtbase): 6.9.0
Disable the change from the following commit.
https://code.qt.io/cgit/qt/qtbase.git/commit/src/corelib/io/qstorageinfo_linux.cpp?h=v6.9.0&id=0db5b424cdaede8724886e8a1eda1380382d9aaf

It fixes the following compiler error.
qstorageinfo_linux.cpp:40:10: fatal error: 'private/qjnihelpers_p.h' file not found
2025-04-03 13:13:04 +05:30

26 lines
874 B
Diff

--- a/src/corelib/io/qstorageinfo_linux.cpp
+++ b/src/corelib/io/qstorageinfo_linux.cpp
@@ -32,12 +32,11 @@
# define ST_RDONLY 0x0001 /* mount read-only */
#endif
-#if defined(Q_OS_ANDROID)
+#if defined(Q_OS_ANDROID) || defined(__ANDROID__)
// statx() is disabled on Android because quite a few systems
// come with sandboxes that kill applications that make system calls outside a
// whitelist and several Android vendors can't be bothered to update the list.
# undef STATX_BASIC_STATS
-#include <private/qjnihelpers_p.h>
#endif
QT_BEGIN_NAMESPACE
@@ -432,7 +431,7 @@
void QStorageInfoPrivate::doStat()
{
-#ifdef Q_OS_ANDROID
+#if 0
if (QtAndroidPrivate::isUncompressedNativeLibs()) {
// We need to pass the actual file path on the file system to statfs64
QString possibleApk = QtAndroidPrivate::resolveApkPath(rootPath);