Files
RedBear-OS/local/scripts
vasilito a123bf1c5d sddm: C-7 migration of 19 sed chains to external patch + cookbook_apply_patches
Migrated sddm (the last lint-recipe erroring
recipe) to use the cookbook_apply_patches helper.
The 19 inline `sed -i` chains in sddm's
[build].script have been captured in
`local/patches/sddm/01-initial-migration.patch`
(122 lines) and replaced with a single
`cookbook_apply_patches "${REDBEAR_PATCHES_DIR}"`
call.

sddm is git-sourced (not tar-sourced), so the
migration script had to:
  1. Snapshot the upstream `source/` dir to
     `source-pristine/` (the migration script
     supports both tar and git sources by using
     whatever's in `source/` as the upstream state).
  2. Apply all 19 sed chains directly to `source/`.
  3. Diff pristine vs post-sed.
  4. Save the diff as the migration patch.

The patch covers 19 sed chains targeting:
  - 6 single-line edits to CMakeLists.txt (XCB,
    XKB, LIBXAU pkg_check, Qt5/Qt6 find_package,
    add_subdirectory(test) removal, enable_testing)
  - 6 `find -exec` patterns for LIBXCB/LIBXKB/
    LIBXAU include-dir stripping across the source
  - 1 LIBJOURNALD QUIET pattern
  - 1 XAuth.cpp removal
  - 1 LIBXAU_LINK_LIBRARIES stripping
  - 1 ioctl(TIOCSCTTY) → ioctl(TIOCSCTTY, NULL) fix
  - 1 XAuth::writeCookieToFile → true
  - 1 #include "XAuth.h" removal
  - 1 LibJournald QUIET

End-to-end verified:
  `make lint-recipe`: 173/173 recipes clean (was
  1 error before this commit). 0 errors.
  `make lint-build-system-all`: passes.

Recipe edit script `edit-kf6-recipes-for-patches.sh`
and migration script `migrate-kf6-seds-direct.sh`
both got a one-line addition for sddm.

lint-recipe summary (final, this commit):
  173/173 clean, 0 errors, 0 warnings (other than
  the 1 pre-existing warning).
2026-06-12 23:45:19 +03:00
..
2026-05-29 21:59:47 +03:00