From 60b257ae1a7e27bb6fe247025f56660e29d51017 Mon Sep 17 00:00:00 2001 From: Wildan M Date: Sun, 13 Sep 2026 19:58:13 +0200 Subject: [PATCH] Fix webkit and libldns compilation --- recipes/libs/gstreamer/recipe.toml | 37 +----------------------- recipes/wip/libs/net/libldns/recipe.toml | 9 +++++- recipes/wip/web/webkitgtk3/redox.patch | 13 +++++++++ 3 files changed, 22 insertions(+), 37 deletions(-) diff --git a/recipes/libs/gstreamer/recipe.toml b/recipes/libs/gstreamer/recipe.toml index e0b60cc8c..233affc20 100644 --- a/recipes/libs/gstreamer/recipe.toml +++ b/recipes/libs/gstreamer/recipe.toml @@ -7,54 +7,19 @@ patches = ["redox.patch"] template = "custom" dependencies = [ "bzip2", - "cairo", "curl", - "expat", #TODO: "ffmpeg6", - "fontconfig", - "freetype2", - "fribidi", "gdk-pixbuf", - "gettext", - "glib", - "harfbuzz", "libass", "libffi", - "libgmp", - "libiconv", - "libicu", - "libjpeg", "libmodplug1", "libnettle", - "libogg", - "libpng", - "libpsl", - "libpthread-stubs", "libsndfile", "libsoup", - "libvorbis", "libwebp", - "libx11", - "libxau", - "libxcb", - #TODO: "libxdamage", - "libxext", - "libxfixes", - "libxi", - "libxml2", - "libxxf86vm", - "mesa-x11", - "nghttp2", + "mesa", #TODO: "openal", - "openssl3", "pango", - "pcre2", - "pixman", - "sqlite3", - "x11proto", - "xextproto", - "xz", - "zlib", ] script = """ DYNAMIC_INIT diff --git a/recipes/wip/libs/net/libldns/recipe.toml b/recipes/wip/libs/net/libldns/recipe.toml index f46fd65e5..7e333c17c 100644 --- a/recipes/wip/libs/net/libldns/recipe.toml +++ b/recipes/wip/libs/net/libldns/recipe.toml @@ -8,7 +8,14 @@ cp drill/install-sh . """ [build] -template = "configure" +template = "custom" dependencies = [ "openssl3" ] +script = """ +DYNAMIC_INIT +COOKBOOK_CONFIGURE_FLAGS+=( + --with-ssl="$COOKBOOK_SYSROOT" +) +cookbook_configure +""" diff --git a/recipes/wip/web/webkitgtk3/redox.patch b/recipes/wip/web/webkitgtk3/redox.patch index eaf0570d0..3ed8e997c 100644 --- a/recipes/wip/web/webkitgtk3/redox.patch +++ b/recipes/wip/web/webkitgtk3/redox.patch @@ -142,6 +142,19 @@ diff -ruwN source/Source/bmalloc/libpas/src/libpas/pas_probabilistic_guard_mallo free_wasted_mem += value->mem_to_waste; free_virtual_mem += value->size_of_allocated_pages; +diff -ruwN source/Source/bmalloc/libpas/src/libpas/pas_thread_local_cache.c source-new/Source/bmalloc/libpas/src/libpas/pas_thread_local_cache.c +--- source/Source/bmalloc/libpas/src/libpas/pas_thread_local_cache.c 2025-01-27 12:56:15.198834200 +0000 ++++ source-new/Source/bmalloc/libpas/src/libpas/pas_thread_local_cache.c 2026-09-13 15:08:33.505794000 +0000 +@@ -214,6 +214,9 @@ + #endif + #if PAS_PLATFORM(PLAYSTATION) + getname_result = pthread_get_name_np(thread, thread_name); ++#elif PAS_OS(REDOX) ++ // no op ++ getname_result = -1; + #else + getname_result = pthread_getname_np(thread, thread_name, sizeof(thread_name)); + #endif diff -ruwN source/Source/JavaScriptCore/heap/BlockDirectory.cpp source-new/Source/JavaScriptCore/heap/BlockDirectory.cpp --- source/Source/JavaScriptCore/heap/BlockDirectory.cpp 2025-03-21 00:07:59.015023500 +0700 +++ source-new/Source/JavaScriptCore/heap/BlockDirectory.cpp 2025-09-09 09:08:03.419985553 +0700