fix: kf6-kio builds — stubbed HostInfo::lookupHost linker error

- 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)
This commit is contained in:
2026-04-30 02:28:21 +01:00
parent 267733794f
commit 297875a91e
2 changed files with 11 additions and 7 deletions
+9
View File
@@ -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