Skip to content

Commit

Permalink
Merge pull request #4076 from opengisch/backport-4029-to-release-2_7
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Mar 25, 2023
2 parents 8080d54 + 32daccf commit 58ac8cb
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions vcpkg/overlay/qgis/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ vcpkg_from_github(
bigobj.patch
poly2tri.patch
mesh.patch
sharedmem_ios.patch
)

file(REMOVE ${SOURCE_PATH}/cmake/FindQtKeychain.cmake)
Expand Down
22 changes: 22 additions & 0 deletions vcpkg/overlay/qgis/sharedmem_ios.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
diff --git a/src/providers/wfs/qgscachedirectorymanager.cpp b/src/providers/wfs/qgscachedirectorymanager.cpp
index 2b4cd1739c..cb5fc5d28d 100644
--- a/src/providers/wfs/qgscachedirectorymanager.cpp
+++ b/src/providers/wfs/qgscachedirectorymanager.cpp
@@ -157,6 +157,9 @@ bool QgsCacheDirectoryManager::removeDir( const QString &dirName )
std::unique_ptr<QSharedMemory> QgsCacheDirectoryManager::createAndAttachSHM()
{
std::unique_ptr<QSharedMemory> sharedMemory;
+// See https://wiki.qt.io/Qt_for_iOS_known_issues:
+// Crashes: Program received signal SIGSYS, Bad system call. 0x3b23bbe4 in semget ()
+#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) || !defined(Q_OS_IOS)
// For debug purpose. To test in the case where shared memory mechanism doesn't work
if ( !getenv( "QGIS_USE_SHARED_MEMORY_KEEP_ALIVE" ) )
{
@@ -177,6 +180,7 @@ std::unique_ptr<QSharedMemory> QgsCacheDirectoryManager::createAndAttachSHM()
}
}
}
+#endif
return nullptr;
}

1 comment on commit 58ac8cb

@qfield-fairy
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.