Skip to content

omarchy-settings: ship the pacman platform guard - #636

Merged
maralcbr merged 5 commits into
masterfrom
mac/17-platform-guard
Sep 26, 2026
Merged

maralcbr merged 5 commits into
masterfrom
mac/17-platform-guard

Conversation

@maralcbr

@maralcbr maralcbr commented Sep 25, 2026 •

Copy link
Copy Markdown
Member

Warning

Do not merge on its own: this merge publishes omarchy-settings to aarch64 edge and can break pacman -Syu there. publish.yml builds every package directory a master push touches; bin/build-matrix for this diff gives omarchy-settings and omarchy-settings-dev on x86_64 and aarch64, edge channel, and this PR's CI plan against pkgs.omarchy.org/edge/aarch64 reports Packages that would build: omarchy-settings. A second review reports edge/aarch64 still carries omarchy-4.0.2-1 with depend = 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

  • omarchy-settings and omarchy-settings-dev install 00-omarchy-platform-guard.hook to /usr/share/libalpm/hooks/, its script to /usr/share/libalpm/scripts/, and a copy of omarchy-hw-platform beside the script. The block is conditional on the hook being in the source.
  • omarchy keeps /usr/bin/omarchy-hw-platform; no file changes owner, so the dev pair, which installs in separate transactions, cannot lose it.
  • omarchy-settings goes to 4.0.4-2: CI builds a changed recipe and 4.0.4-1 is already published. Its pinned source carries none of these files, so the package contents are unchanged; merging republishes it. omarchy-settings: keep the Limine and mkinitcpio drop-ins on aarch64 #380 also takes 4.0.4-2, so whichever lands second moves to -3. omarchy-settings-dev needs no bump.
  • These recipes build basecamp/omarchy, not quattro-upstream, so the guard only ships from them once it is upstreamed (ticket 46, the upstream PR for the detector, profiles and guard). Until then the lines are inert here, and quattro-upstream candidates get the guard only if their build points the recipe at a quattro-upstream source (OMARCHY_SRC or 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

  • Built omarchy-settings and omarchy for aarch64 with OMARCHY_SRC pointing at the omarchy-mac branch: the hook, guard and detector copy are in settings, and the two packages share no file.
  • Built omarchy-settings with a source without the guard: no new files.
  • omarchy-mac test/shell.d/config-test.sh passes against these recipes and fails against master.

Merge before omarchy-mac#539: its CI runs config-test.sh against omarchy-pkgs master, which fails until these lines are there. Second review: covered on omarchy-mac#539.

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.
@maralcbr
maralcbr merged commit 83f85a4 into master Sep 26, 2026
7 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Publish succeeded → live

Packages: omarchy-settings (x86_64, PR artifact); omarchy-settings (aarch64, PR artifact); omarchy-settings-dev (x86_64, PR artifact); omarchy-settings-dev (aarch64, PR artifact)

  • edge/x86_64: omarchy-settings-4.0.4-2-x86_64, omarchy-settings-dev-4.0.0.r2256.gc3e67f5-1-x86_64
  • edge/aarch64: omarchy-settings-4.0.4-2-aarch64, omarchy-settings-dev-4.0.0.r2256.gc3e67f5-1-aarch64

Some planned slots did not run because an earlier slot failed.

Commit 83f85a4 · run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant