Conversation
Upstream's omarchy-settings PKGBUILD installs its user units from an explicit list, so a unit this fork adds under default/systemd/user/ lands in /usr/share/omarchy/default/ but never in /usr/lib/systemd/user/, where first-run and the migration enable it. 4.0.2-2 shipped the ambient keyboard backlight unit that way: on every updated Mac, `systemctl --user is-enabled omarchy-brightness-keyboard-auto.service` reports not-found and the wants symlink the migration wrote dangles, so the feature never runs. Patch the PKGBUILD the same way the limine and mkinitcpio deltas are applied, adding one install line per fork unit right after upstream's own, and stepping aside for any unit upstream has since adopted. The test drives the function against a stand-in package(), checks it adds the line once, and checks it refuses a PKGBUILD that no longer looks like upstream's. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015BSgNp56iTuhMy7XLHsRC2
|
The package fix is scoped well. ARM CI is failing because hyprtoolkit 0.5.4-6 was installed while 0.5.4-5.1 was expected; please align the companion recipes and rerun before merge. |
|
Reviewed + ran One gap this doesn't yet close — same class, same directory:
The (For completeness, the other units in |
Summary
Upstream's
omarchy-settingsPKGBUILD installs its user units from an explicit list, so a unit this fork adds underdefault/systemd/user/ships under/usr/share/omarchy/default/but never reaches/usr/lib/systemd/user/, whereenable-user-units.shand the migration enable it.4.0.2-2 shipped the ambient keyboard backlight unit from #303 that way. On an updated Mac:
build-packages.shalready patches that PKGBUILD for the limine and mkinitcpio deltas; this addsinstall_fork_user_units, which appends oneinstall -Dm644line per fork unit right after upstream's last user unit, insidepackage(), and steps aside for any unit upstream has since adopted. It fails loudly if the PKGBUILD stops looking like upstream's, since silently not matching would ship the package without the unit again.Testing
test/shell.d/install-mac-test.shdrives the function against a stand-inpackage(): the line is added once (a second pass does not duplicate it), directly after upstream's last unit, and apackage()with no unit installs is refused.omacom/omarchy-pkgspkgbuilds/omarchy-settings/PKGBUILD: exactly one line added afteromarchy-crash-watch.service, alongside the existing mkinitcpio patch../test/shell,./test/cli,omarchy commands --checkclean.🤖 Generated with Claude Code
https://claude.ai/code/session_015BSgNp56iTuhMy7XLHsRC2