qt5: have QFileSystemEngine::createDirectory() handle EROFS.

This commit is contained in:
Jerome Duval
2017-03-07 23:31:44 +01:00
parent db98a1d369
commit b41709802f
2 changed files with 26 additions and 1 deletions

View File

@@ -5293,3 +5293,28 @@ index 0b9235a..bfc2a0c 100644
--
2.10.2
From ec1a9d55080a646c4b70d48baad80355c7737b47 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Tue, 7 Mar 2017 22:11:02 +0100
Subject: createDirectory should handle EROFS on Haiku.
diff --git a/qtbase/src/corelib/io/qfilesystemengine_unix.cpp b/qtbase/src/corelib/io/qfilesystemengine_unix.cpp
index 1b908ea..92249d3 100644
--- a/qtbase/src/corelib/io/qfilesystemengine_unix.cpp
+++ b/qtbase/src/corelib/io/qfilesystemengine_unix.cpp
@@ -579,6 +579,10 @@ bool QFileSystemEngine::createDirectory(const QFileSystemEntry &entry, bool crea
// on the QNet mountpoint returns successfully and reports S_IFDIR.
|| errno == ENOENT
#endif
+#if defined(Q_OS_HAIKU)
+ // On Haiku some shine-through directories (ie "non-packaged") returns EROFS.
+ || errno == EROFS
+#endif
) {
QT_STATBUF st;
if (QT_STAT(chunk.constData(), &st) == 0 && (st.st_mode & S_IFMT) == S_IFDIR)
--
2.10.2

View File

@@ -7,7 +7,7 @@ HOMEPAGE="https://qt.io/"
COPYRIGHT="2015-2017 The Qt Company Ltd."
LICENSE="GNU LGPL v2.1
GNU LGPL v3"
REVISION="1"
REVISION="2"
SOURCE_URI="https://download.qt.io/official_releases/qt/5.8/$portVersion/single/qt-everywhere-opensource-src-$portVersion.tar.xz"
SOURCE_URI_2="https://download.qt.io/community_releases/5.8/$portVersion-final/qtwebkit-opensource-src-$portVersion.tar.xz"
CHECKSUM_SHA256="0f4c54386d3dbac0606a936a7145cebb7b94b0ca2d29bc001ea49642984824b6"