Repository navigation
omarchy-settings: ship the pacman platform guard - #636
Merged
Merged
Conversation
The guard hook and the script it runs install together from omarchy-settings, so they are resident before the runtime and hardware packages. Conditional, so builds from sources without them are unchanged.
The settings package's platform guard runs omarchy-hw-platform before the omarchy runtime is installed. omarchy leaves the detector out of its bin/ loop and settings ships it, with the /usr/share/omarchy/bin link the Apple predicate and the CLI router use, whenever the source has it.
Moving omarchy-hw-platform from omarchy to omarchy-settings loses the file when the dev pair installs in separate transactions, since omarchy-dev does not pin omarchy-settings-dev's version. Settings now installs a copy beside the guard script and omarchy keeps its detector, so no file changes owner.
CI builds a changed recipe and needs a new package; 4.0.4-1 is already published. The pinned upstream source has no guard files, so 4.0.4-2 has the same contents.
Contributor
Publish succeeded → livePackages: omarchy-settings (x86_64, PR artifact); omarchy-settings (aarch64, PR artifact); omarchy-settings-dev (x86_64, PR artifact); omarchy-settings-dev (aarch64, PR artifact)
Some planned slots did not run because an earlier slot failed. |
maralcbr
added a commit
to maralcbr/omarchy-pkgs
that referenced
this pull request
Sep 26, 2026
…se runtime runs the platform guard step without the guard
This was referenced Sep 26, 2026
11 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Warning
Do not merge on its own: this merge publishes omarchy-settings to aarch64 edge and can break
pacman -Syuthere.publish.ymlbuilds every package directory a master push touches;bin/build-matrixfor this diff gives omarchy-settings and omarchy-settings-dev on x86_64 and aarch64, edge channel, and this PR's CI plan againstpkgs.omarchy.org/edge/aarch64reportsPackages that would build: omarchy-settings. A second review reports edge/aarch64 still carriesomarchy-4.0.2-1withdepend = omarchy-settings=4.0.2; publishing omarchy-settings 4.0.4 there leaves that dependency unsatisfiable on every aarch64 edge machine. Merge only together with an aarch64 publish of the matching omarchy (maintainer decision); nothing has been published from this branch.Companion to omacom/omarchy-mac#539 (ticket 17 of the Apple Silicon convergence plan): the pacman platform guard ships from omarchy-settings.
What changed
00-omarchy-platform-guard.hookto/usr/share/libalpm/hooks/, its script to/usr/share/libalpm/scripts/, and a copy ofomarchy-hw-platformbeside the script. The block is conditional on the hook being in the source./usr/bin/omarchy-hw-platform; no file changes owner, so the dev pair, which installs in separate transactions, cannot lose it.OMARCHY_SRCor the candidate commit).Why
The guard must be resident before the runtime and any hardware package installs, and must be able to tell the platform before omarchy is installed. The tagging contract and guard are documented in omarchy-mac
docs/platform-guard.md.Testing
OMARCHY_SRCpointing at the omarchy-mac branch: the hook, guard and detector copy are in settings, and the two packages share no file.test/shell.d/config-test.shpasses against these recipes and fails against master.Merge before omarchy-mac#539: its CI runs
config-test.shagainst omarchy-pkgs master, which fails until these lines are there. Second review: covered on omarchy-mac#539.