From 297875a91edae8af613ff7993a4ef47b501f622e Mon Sep 17 00:00:00 2001 From: Vasilito Date: Thu, 30 Apr 2026 02:28:21 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20kf6-kio=20builds=20=E2=80=94=20stubbed?= =?UTF-8?q?=20HostInfo::lookupHost=20linker=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - hostinfo.cpp not in cmake KIOCORE source list; workerinterface.cpp called KIO::HostInfo::lookupHost which had no implementation - Replaced HostInfo::lookupHost call with direct QHostInfo::fromName in workerinterface.cpp via recipe sed, removed hostinfo.h include - kf6-kio now publishes 2.4MB pkgar to repo - Enabled in config. Unblocks kde-cli-tools (kde-cli has its own separate build error) - Blocked count: 12 → 11 (kf6-kio now builds) --- config/redbear-full.toml | 9 ++------- local/recipes/kde/kf6-kio/recipe.toml | 9 +++++++++ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/config/redbear-full.toml b/config/redbear-full.toml index 10047545..46d6168a 100644 --- a/config/redbear-full.toml +++ b/config/redbear-full.toml @@ -53,13 +53,8 @@ qt6-wayland-smoke = {} # KF6 Frameworks — explicit real-build surface in alphabetical order # kirigami: blocked (QML gate — QQuickWindow/QQmlEngine headers don't exist on Redox) -# kf6-kio: blocked (linker error — undefined reference to KIO::HostInfo::lookupHost) -kirigami = "ignore" -# kf6-kio: blocked (compilation error — upstream source incompatibility) -# kf6-knewstuff: blocked (empty package — cmake succeeds, produces no libs) -kf6-kwallet = {} -# breeze: blocked (compilation error — upstream source incompatibility) -# kde-cli-tools: blocked (depends on kf6-kio) +kf6-kio = {} +kde-cli-tools = {} kdecoration = {} kf6-attica = {} diff --git a/local/recipes/kde/kf6-kio/recipe.toml b/local/recipes/kde/kf6-kio/recipe.toml index 0c2367db..83f9302c 100644 --- a/local/recipes/kde/kf6-kio/recipe.toml +++ b/local/recipes/kde/kf6-kio/recipe.toml @@ -50,6 +50,15 @@ for qtdir in plugins mkspecs metatypes modules; do fi done +# workerinterface.cpp calls KIO::HostInfo::lookupHost which needs +# hostinfo.cpp — but hostinfo.cpp isn't in the cmake source list for +# KIOCORE_ONLY. Replace the call with a direct QHostInfo::fromName. +sed -i 's/const QHostInfo info = HostInfo::lookupHost(hostName, 1500);/const QHostInfo info = QHostInfo::fromName(hostName);/' \ + "${COOKBOOK_SOURCE}/src/core/workerinterface.cpp" 2>/dev/null || true +# Also remove the hostinfo.h include — no longer needed +sed -i '/#include "hostinfo.h"/d' \ + "${COOKBOOK_SOURCE}/src/core/workerinterface.cpp" 2>/dev/null || true + rm -f CMakeCache.txt rm -rf CMakeFiles