Files
RedBear-OS/local/recipes/kde/kf6-kxmlgui/recipe.toml
T
vasilito 86a80b2f12 C-7 cleanup: remove dead sed chains from 24 NO-OP KF6 recipes
24 KF6 recipes had inline `sed -i` chains in their [build].script
that targeted `ecm_install_po_files_as_qm(poqm)` in CMakeLists.txt.
Upstream KDE Frameworks 6.26.0 has dropped the call entirely for
packages that no longer ship translations — the sed chains were
no-ops. Per the v6.0 zero-tolerance policy for sed hacks and dead
code, this commit removes the chains rather than leaving them as
workaround cruft.

Recipes cleaned (24):
  kf6-attica, kf6-kcolorscheme, kf6-kconfigwidgets, kf6-kcrash,
  kf6-kguiaddons, kf6-ki18n, kf6-kiconthemes, kf6-kidletime,
  kf6-kimageformats, kf6-kio, kf6-kitemmodels, kf6-knewstuff,
  kf6-kpackage, kf6-kservice, kf6-ksvg, kf6-ktexteditor,
  kf6-ktextwidgets, kf6-kwallet, kf6-kxmlgui, kf6-parts,
  kf6-plasma-activities, kf6-prison, kf6-pty, plasma-framework

Each recipe lost 1-17 sed lines (5-line multi-line `sed -i ... \    file` continuations correctly consumed). All 24 recipes
still parse as valid TOML.

Helper: `local/scripts/cleanup-kf6-noop-seds.sh` (new). Walks
the NO-OP list, makes a timestamped backup, removes the sed
chain + any orphan `\\` continuation + any orphan `&& cd`
continuation, verifies zero sed lines remain. Idempotent.

The 15 HAS-LINE recipes (kf6-kauth, kf6-kbookmarks,
kf6-kcodecs, kf6-kcompletion, kf6-kconfig, kf6-kcoreaddons,
kf6-kdbusaddons, kf6-kglobalaccel, kf6-kitemviews,
kf6-kjobwidgets, kf6-knotifications, kf6-kwidgetsaddons,
kf6-solid, kf6-sonnet, kf6-syntaxhighlighting) still have
their sed chains in place and will be migrated to external
patches via `migrate-kf6-seds-to-patches.sh` in a
follow-up. The 2 git-sourced recipes (breeze, kirigami, …)
will be handled once their source is fetched and the
line-presence check can run.
2026-06-12 18:09:05 +03:00

58 lines
1.6 KiB
TOML

#TODO: KXmlGui — GUI framework for menu/toolbar actions from XML. Depends on kconfigwidgets, kiconthemes, ktextwidgets.
[source]
tar = "https://download.kde.org/stable/frameworks/6.26/kxmlgui-6.26.0.tar.xz"
blake3 = "c12a8552c90fa4068a6c75effc528272dbb9bcde2674d43aa12e2c8a7ecd82e2"
[build]
template = "custom"
dependencies = [
"qtbase",
"qtdeclarative",
"kf6-extra-cmake-modules",
"kf6-kcoreaddons",
"kf6-ki18n",
"kf6-kconfig",
"kf6-kconfigwidgets",
"kf6-kwidgetsaddons",
"kf6-kiconthemes",
"kf6-ktextwidgets",
"kf6-kglobalaccel",
"kf6-kitemviews",
]
script = """
DYNAMIC_INIT
HOST_BUILD="${COOKBOOK_ROOT}/build/qt-host-build"
for qtdir in plugins mkspecs metatypes modules; do
if [ -d "${COOKBOOK_SYSROOT}/usr/${qtdir}" ] && [ ! -e "${COOKBOOK_SYSROOT}/${qtdir}" ]; then
ln -s "usr/${qtdir}" "${COOKBOOK_SYSROOT}/${qtdir}"
fi
done
rm -f CMakeCache.txt
rm -rf CMakeFiles
cmake "${COOKBOOK_SOURCE}" \
-DCMAKE_TOOLCHAIN_FILE="${COOKBOOK_ROOT}/local/recipes/qt/redox-toolchain.cmake" \
-DQT_HOST_PATH="${HOST_BUILD}" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}" \
-DBUILD_TESTING=OFF \
-DBUILD_QCH=OFF \
-DBUILD_WITH_QML=OFF \
-DBUILD_PYTHON_BINDINGS=OFF \
-DUSE_DBUS=OFF \
-Wno-dev
cmake --build . -j${COOKBOOK_MAKE_JOBS}
cmake --install . --prefix "${COOKBOOK_STAGE}/usr"
for lib in "${COOKBOOK_STAGE}/usr/lib/"libKF6*.so.*; do
[ -f "${lib}" ] || continue
patchelf --remove-rpath "${lib}" 2>/dev/null || true
done
"""