From 2a1794c5711190bb25ff93ac56ed277449a717a0 Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Sun, 4 Feb 2024 00:26:44 +0100 Subject: [PATCH] [qt5-webkit] fix arm64-osx --- ports/qt5-webkit/arm64-osx.patch | 19 +++++++++++++++++++ ports/qt5-webkit/portfile.cmake | 1 + ports/qt5-webkit/vcpkg.json | 1 + 3 files changed, 21 insertions(+) create mode 100644 ports/qt5-webkit/arm64-osx.patch diff --git a/ports/qt5-webkit/arm64-osx.patch b/ports/qt5-webkit/arm64-osx.patch new file mode 100644 index 0000000..38a0ad6 --- /dev/null +++ b/ports/qt5-webkit/arm64-osx.patch @@ -0,0 +1,19 @@ +--- ./Source/JavaScriptCore/assembler/ARM64Assembler.h.orig 2022-12-30 16:08:07.402011556 +1000 ++++ ./Source/JavaScriptCore/assembler/ARM64Assembler.h 2022-12-30 17:01:36.035938629 +1000 +@@ -34,6 +34,7 @@ + #include + #include + #include ++#include + + #define CHECK_DATASIZE_OF(datasize) ASSERT(datasize == 32 || datasize == 64) + #define DATASIZE_OF(datasize) ((datasize == 64) ? Datasize_64 : Datasize_32) +@@ -2664,7 +2665,7 @@ + + static void cacheFlush(void* code, size_t size) + { +-#if OS(IOS) ++#if OS(DARWIN) + sys_cache_control(kCacheFunctionPrepareForExecution, code, size); + #elif OS(LINUX) + size_t page = pageSize(); diff --git a/ports/qt5-webkit/portfile.cmake b/ports/qt5-webkit/portfile.cmake index aded562..d5ca741 100644 --- a/ports/qt5-webkit/portfile.cmake +++ b/ports/qt5-webkit/portfile.cmake @@ -10,6 +10,7 @@ vcpkg_from_github( icu_targets.patch osgeo4w.patch makevalues_gperf.patch + arm64-osx.patch ) file(REMOVE ${SOURCE_PATH}/Source/cmake/FindICU.cmake) diff --git a/ports/qt5-webkit/vcpkg.json b/ports/qt5-webkit/vcpkg.json index 2cfd9ee..256350a 100644 --- a/ports/qt5-webkit/vcpkg.json +++ b/ports/qt5-webkit/vcpkg.json @@ -1,6 +1,7 @@ { "name": "qt5-webkit", "version": "5.212.0-alpha4", + "port-version": 1, "description": "Qt5 port of webkit.", "homepage": "https://github.com/movableink/webkit", "dependencies": [