86a80b2f12
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.
47 lines
1.3 KiB
TOML
47 lines
1.3 KiB
TOML
#TODO: KF6Attica — minimal core library build for Red Bear OS.
|
|
# Provides KF6::Attica cmake target needed by kf6-knewstuff.
|
|
# QML, tests, and examples disabled.
|
|
[source]
|
|
tar = "https://download.kde.org/stable/frameworks/6.26/attica-6.26.0.tar.xz"
|
|
blake3 = "140fb7127ed56aa35e95eda96f6b933f727f418f9bc4c2d6e776aea457f29b6c"
|
|
|
|
[build]
|
|
template = "custom"
|
|
dependencies = [
|
|
"qtbase",
|
|
"kf6-extra-cmake-modules",
|
|
"kf6-kcoreaddons",
|
|
"kf6-ki18n",
|
|
"kf6-kconfig",
|
|
]
|
|
script = """
|
|
DYNAMIC_INIT
|
|
|
|
HOST_BUILD="${COOKBOOK_ROOT}/build/qt-host-build"
|
|
source "${COOKBOOK_ROOT}/local/scripts/lib/qt-sysroot.sh"
|
|
|
|
redbear_qt_link_sysroot_dirs "${COOKBOOK_SYSROOT}" plugins mkspecs metatypes modules
|
|
|
|
|
|
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 \
|
|
-Wno-dev
|
|
|
|
cmake --build . -j${COOKBOOK_MAKE_JOBS}
|
|
cmake --install . --prefix "${COOKBOOK_STAGE}/usr"
|
|
|
|
for lib in "${COOKBOOK_STAGE}/usr/lib/"libKF6Attica*.so.*; do
|
|
[ -f "${lib}" ] || continue
|
|
patchelf --remove-rpath "${lib}" 2>/dev/null || true
|
|
done
|
|
"""
|