Skip to content

omarchy-ane-dkms: modules only, at 0.5.6 - #1858

Merged
ryanrhughes merged 5 commits into
omacom:masterfrom
joshuaswarren:w73/omarchy-ane-dkms-modules-only
Oct 30, 2026
Merged

ryanrhughes merged 5 commits into
omacom:masterfrom
joshuaswarren:w73/omarchy-ane-dkms-modules-only

Conversation

@joshuaswarren

@joshuaswarren joshuaswarren commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

omarchy-ane-dkms becomes modules only, at 0.5.6, and depends on omarchy-ane>=0.5.6 (a floor, so a later dkms release does not stop resolving until the same omarchy-ane version is published) (omacom/omarchy-pkgs #1853). It is the same-name upgrade of the published 0.5.4, so omarchy-mac-ml keeps its dependency and nothing is removed. This merges in the same batch as #1853, as Marcelo asked in that review. The package list change in omacom/omarchy goes last.

What it installs

/usr/src/omarchy-ane-0.5.6/dkms.conf
/usr/src/omarchy-ane-0.5.6/ane/...   (the module source dkms builds)
/usr/share/licenses/omarchy-ane-dkms/LICENSE

Everything else it used to install (the tools, the libalpm hooks, the overlays, the fixtures) comes from omarchy-ane. It still provides omarchy-ane-abi=1. The .install file with the firmware post_remove is gone with the hook it belongs to; omarchy-ane carries it.

Tested

Built and checked with makepkg on an Apple M1 (13-inch) running Omarchy. check() builds the modules with dkms, or confirms the kernel ships the in-tree driver, and passed. The package is 126 KB.

The CI build of this package resolves omarchy-ane from edge, so it fails until #1853 is published. That is why the two go in together. The inventory is left alone: the owner moves both lines after 0.5.6 has qualified on edge.

The tools, the libalpm hooks and the device-tree overlays move to the new
omarchy-ane package (same version). This package keeps the DKMS source tree
and the license, depends on omarchy-ane=0.5.6, and still provides
omarchy-ane-abi=1. check() builds the modules with dkms, or confirms that
the kernel ships the in-tree driver. The firmware post_remove moves with the
hook to omarchy-ane. The mac inventory line goes to 0.5.6-1.

Ships together with omarchy-ane (same batch): the old 0.5.4 package owns the
same files, and omarchy-ane conflicts with omarchy-ane-dkms before 0.5.6.

Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com>
@greptile-apps

greptile-apps Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge with the planned companion-package publication.

Summary

Splits omarchy-ane-dkms into a module-only package at version 0.5.6.

  • The DKMS package now installs only ANE modules and depends on the shared tools package.
  • The DKMS package can now follow upstream releases automatically.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  D["omarchy-ane-dkms 0.5.6"] --> K["DKMS module source"]
  D --> A["omarchy-ane >= 0.5.6"]
  A --> T["Tools and fixtures"]
  A --> H["Hooks and overlays"]
Loading

Reviews (4) · Last reviewed commit: "omarchy-ane-dkms: lift the sync hold" · Reviewed by Greptile

@joshuaswarren

Copy link
Copy Markdown
Contributor Author

GREEN at 96d3b06

Checked:

  • File lists. The 0.5.4 recipe on master installed: six tools in /usr/bin, update-m1n1-dtbs, the two fixtures, the three libalpm hooks, the overlays and SoC JSON from build-dtbo, the license, and /usr/src/omarchy-ane-0.5.4. Every item except the module source and the license is installed by omarchy-ane 0.5.6 (PR 1853, same list, same build-dtbo call). The new dkms package installs only /usr/src/omarchy-ane-0.5.6 and its license. Nothing the old package installed is left without an owner.
  • The removed prepare() opt-in step, the tool tests and the opt-in assertions live in omarchy-ane (it runs them in check()). The dkms check() keeps only the dkms build. The removed conflicts=('omarchy-mac-boot<20261004-2'), dtc and python come back through depends=('dkms' "omarchy-ane=$pkgver"), because omarchy-ane carries them. The dkms source inputs the tarball must hold (dkms.conf, ane/Makefile, ane_stats_show.c, include/, src/, t6021/) are all in the v0.5.6 tarball. sha256sums equals that tarball.
  • The old .install equals the new one in PR 1853, so removing it here is right.
  • A package built from this exact PKGBUILD (same sha256 as the file in this PR) is 126,036 bytes on the 13-inch M1. Its .PKGINFO has provides = omarchy-ane-abi=1, depend = dkms and depend = omarchy-ane=0.5.6, and it contains only the license and /usr/src/omarchy-ane-0.5.6.
  • The upgrade path. I built stub packages with the metadata and file lists of the three recipes (old dkms 0.5.4, omarchy-ane 0.5.6, new dkms 0.5.6) and ran pacman on an empty root, with the old dkms installed. One transaction with both new packages (the shape of a -Syu) succeeds: dkms is upgraded, omarchy-ane is installed, and /usr/bin/omarchy-ane-check ends up owned by omarchy-ane. New omarchy-ane alone against the old dkms stops with "in conflict (omarchy-ane-dkms<0.5.6)". New dkms alone stops with an unsatisfiable omarchy-ane=0.5.6. Removing omarchy-ane while dkms is installed is refused. Removing dkms and then omarchy-ane works. On a fresh root both install. Old dkms 0.5.4 cannot be installed beside the new omarchy-ane.

Findings to act on, neither a defect in this diff:

  1. Merge conflict with PR 1853 in release/mac-inventory.txt (adjacent lines; see my comment there). The second PR to merge needs a rebase, and I re-read that delta.
  2. The strict omarchy-ane=$pkgver pin means a future bump only works when both recipes publish the same version together. If the dkms recipe publishes 0.5.7 first, -Syu on a machine with dkms gets the unsatisfiable-dependency stop I reproduced above, until omarchy-ane 0.5.7 is out. Both recipes watch the same upstream tags (same package.json), so the updater can open both bumps, but nothing makes them publish in one batch. If that matters, keep the bumps in one PR or accept the stop.

Not checked: the repository CI (the build resolves omarchy-ane from edge, so it fails until PR 1853 is published, as the body says), a real -Syu against a published repository, and the package-list change in the third PR.

The dependency is omarchy-ane>=0.5.6, not the same version, so a later dkms
release does not stop resolving until omarchy-ane of that version is
published. The ABI is carried by omarchy-ane-abi. The inventory line moves
with the omarchy-ane pull request.

Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com>
@joshuaswarren

Copy link
Copy Markdown
Contributor Author

GREEN at a815ab3 (delta from 96d3b06: one commit, two files).

Checked:

  • PKGBUILD: the only change is depends=('dkms' "omarchy-ane=$pkgver") to depends=('dkms' 'omarchy-ane>=0.5.6'). release/mac-inventory.txt goes back to the master content, so the file no longer conflicts with PR 1853, which now carries both inventory lines.
  • Upgrade path with the floor. I rebuilt my stub packages with depend = omarchy-ane>=0.5.6 and ran pacman on an empty root. With the old dkms 0.5.4 installed, one transaction with new omarchy-ane and new dkms succeeds; omarchy-ane owns /usr/bin/omarchy-ane-check afterwards and dkms owns only /usr/src/omarchy-ane-0.5.6 and its license. New omarchy-ane alone still stops on the omarchy-ane-dkms<0.5.6 conflict. New dkms alone stops on the unsatisfied omarchy-ane>=0.5.6. Removing omarchy-ane while dkms is installed is refused. On a fresh root both install, and removal works in the order dkms then omarchy-ane. Old dkms 0.5.4 cannot be installed beside the new omarchy-ane.
  • The floor fixes the bump race I raised: a later dkms version no longer needs the same omarchy-ane version to be published first. The cost is that a newer omarchy-ane can run with an older dkms module (and the reverse above the floor); the recipe no longer enforces a matching pair.

Not checked: the repository CI (the build resolves omarchy-ane from edge, so it fails until PR 1853 is published), and a real -Syu against a published repository.

@maralcbr maralcbr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The trim is sound. The module sources prepare() keeps cover both modules and their headers, and nothing still refers to the tools, hooks or overlays that moved out. The v0.5.6 tarball matches sha256sums. On a same-name upgrade the old post_remove doesn't run, so moving it to #1853 is right. The omarchy-mac-boot<20261004-2 conflict is still enforced through the omarchy-ane dependency. The >=0.5.6 floor is fine.

Two things before this can go in, both about timing:

  1. The sync race is live now. Master's six-hourly sync already auto-merged a monolithic omarchy-ane-dkms 0.5.5-1 (#1861), which is why this PR conflicts. v0.5.6 was released at 2026-10-29 13:14Z, so it clears min_release_age (24h) for the 18:20Z sync today (Oct 30). That run would auto-merge a monolithic 0.5.6-1. Sync PRs auto-merge, so closing the bot PR afterwards is too late. That monolith escapes #1853's <0.5.6 conflict and owns the same files as omarchy-ane.

    Please either land a temporary "sync": false in pkgbuilds/omarchy-ane-dkms/.omarchy/package.json on master now (a one-line PR, lifted in this one), or get this on master before that run. If a monolithic 0.5.6-1 ships anyway, this needs pkgrel=2, and #1853's conflict needs to become omarchy-ane-dkms<0.5.6-2.

  2. Rebase onto master's 0.5.5-1. Then the order is: omarchy-mac-pkgs#79 merged → #1853 built and published to edge → this PR's build approved and green (its CI resolves omarchy-ane from edge) → the omacom/omarchy packages-list PR.

One more check before edge: check() accepts dkms exit 77 when the kernel ships the in-tree driver. That proves the build was skipped, not that the modules compile. A build against a kernel without the in-tree ANE driver (linux-asahi) would cover the users this package now exists for.

Happy to approve once it's rebased and the sync hold is in.

The sync bot merged the monolithic 0.5.5-1 into master (omacom#1861). The conflict is
in the PKGBUILD and resolves to the modules-only 0.5.6 recipe of this branch.

Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com>
@joshuaswarren

Copy link
Copy Markdown
Contributor Author

Thank you. Answers in order:

  1. Sync race: #1863 adds "sync": false to pkgbuilds/omarchy-ane-dkms/.omarchy/package.json, one line, for the 18:20Z run. Once it is on master I add the commit that takes it off to this PR. If a monolithic 0.5.6-1 ships before then, this needs pkgrel=2 and the conflict in omarchy-ane: ship the Neural Engine tools without the kernel module #1853 becomes omarchy-ane-dkms<0.5.6-2. I will change both.
  2. Master is merged into this branch (head b6b67517), so the conflict with 0.5.5-1 is gone. The conflict was in the PKGBUILD only and resolves to the modules-only 0.5.6 recipe. I merged instead of rebasing because I do not force push. This PR still leaves the inventory alone. The order is as you wrote it: Intel lpmd power profile integration #79 merged, then omarchy-ane: ship the Neural Engine tools without the kernel module #1853 built and published to edge, then this PR built and published, then the omacom/omarchy package list.
  3. The exit 77 check: you are right that it only shows the build was skipped. I have not run dkms on a kernel without the in-tree driver. The same sources, built out of tree against the 16-inch's kernel (which has no in-tree ANE driver), compile without warnings, and the module loads and runs. That is not this package's check(). A dkms build against linux-asahi would cover it, and I do not have one here. Tell me if you want that as a CI step.

Build approval and a green build are still needed. I am not in the vouched list, so the build job needs build-approved on #1853, #1863 and this PR.

@joshuaswarren

Copy link
Copy Markdown
Contributor Author

GREEN at b6b6751 (merge of master into the branch; my reviewed heads were 96d3b06 and a815ab3).

Checked:

  • The net diff against master is two files: the dkms PKGBUILD (+6 -77) and the removed omarchy-ane-dkms.install. release/mac-inventory.txt and .omarchy/package.json equal master.
  • The PKGBUILD at this head has the same sha256 as the one at a815ab3 that I reviewed: pkgver=0.5.6, depends=('dkms' 'omarchy-ane>=0.5.6'), provides=('omarchy-ane-abi=1'), the 0.5.6 tarball hash 2368b4eb…, no install=. Master has the sync bot's monolithic 0.5.5-1 (depends on dkms, dtc, python, install=omarchy-ane-dkms.install); the merge resolution takes the modules-only recipe, so this is the same-name upgrade from 0.5.5 as well as from 0.5.4.
  • The upgrade test I ran earlier (old dkms installed, new omarchy-ane and new dkms in one transaction succeeds; the other cases stop as designed) covers 0.5.5 too, because the conflict is omarchy-ane-dkms<0.5.6 in PR 1853.

Not checked: the repository CI build (it resolves omarchy-ane from edge, so it fails until PR 1853 is published), and a real -Syu.

@maralcbr maralcbr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-reviewed at b6b6751. Merging master instead of rebasing is fine: the net diff against master is still just the modules-only PKGBUILD and the removed .install, and it merges cleanly over the sync bot's 0.5.5-1. Thanks for the out-of-tree build on a kernel without the in-tree driver. That covers the sources; the packaged dkms path still gets its first real run on edge.

Not approving yet, only because master has no sync hold: #1863 is still open. Once #1863 is on master, merge master into this branch again and add the commit that removes "sync": false explicitly. A branch that merely lacks the key doesn't undo master's addition. This PR merging then brings modules-only 0.5.6 and drops the hold together, so the next sync is a no-op. I'll approve at that head. The merge still waits on #1853 being published to edge and this PR's own build-approved build going green.

The hold in omacom#1863 kept the sync bot from merging a monolithic 0.5.6-1 before this
modules-only package landed. omarchy-ane 0.5.6 is on master (omacom#1853), so the bot may bump the dkms package again.

Checked: package.json parses; net diff against master is the PKGBUILD, the removed .install and this one-line key.
Signed-off-by: Joshua Warren <816217+joshuaswarren@users.noreply.github.com>
@joshuaswarren

Copy link
Copy Markdown
Contributor Author

[Joshua's agent] Thanks for the re-review, and for the approval and merge of #1853, #79 and #1863.

I merged master into this branch again and pushed one more commit (head f0e4fd40). It removes the "sync": false line that #1863 added, so the bot can bump the dkms package again once this lands. The net diff against master is still the modules-only PKGBUILD, the removed .install, and that one line.

What is missing for the merge: your approval (the review above is still marked as requested changes at the older head) and the build-approved label. Nothing else is open on my side.

@maralcbr

Copy link
Copy Markdown
Member

@joshuaswarren #1853 is merged (3bea938) and omarchy-ane 0.5.6-1 is on edge, and the "sync": false hold (#1863) is on master. Next here: merge master into this branch, then add the commit that removes "sync": false from pkgbuilds/omarchy-ane-dkms/.omarchy/package.json. I'll re-review that head and add build-approved.

@joshuaswarren

Copy link
Copy Markdown
Contributor Author

GREEN at f0e4fd4 (merge of master, which now holds PR 1853 and PR 1863, plus the commit that removes the sync hold).

Checked:

  • The net diff against master is three files: the dkms PKGBUILD (+6 -77), the removed omarchy-ane-dkms.install, and .omarchy/package.json with exactly one line removed, "sync": false,. The remaining JSON is valid and has no sync key, so the upstream watch is back on for this package when this merges.
  • The PKGBUILD has the same sha256 as the heads I reviewed (a815ab3a, b6b67517): pkgver=0.5.6, depends=('dkms' 'omarchy-ane>=0.5.6'), provides=('omarchy-ane-abi=1'), no install=.
  • Master has the pieces this depends on: PR 1853 is merged (omarchy-ane 0.5.6 with conflicts=(... 'omarchy-ane-dkms<0.5.6'), inventory line omarchy-ane none, the omarchy-ane-dkms 0.5.3-1 line unchanged) and PR 1863 is merged (the hold this commit now lifts). This PR does not touch the inventory.

CI: the build is skipped until the build-approved label is set. With PR 1853 merged and published, the build can now resolve omarchy-ane.

Not checked: the repository CI build, and a real -Syu against a published repository.

@maralcbr maralcbr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving at f0e4fd4. The master merge (999cfae) brings in only master, with no stray changes, and the PKGBUILD is byte-identical to b6b6751, which I reviewed. f0e4fd4 removes "sync": false explicitly, so merging this lands the modules-only 0.5.6 and lifts the hold together; the next sync against upstream v0.5.6 is then a no-op. omarchy-ane 0.5.6-1 is on edge (#1853), so the build can resolve omarchy-ane>=0.5.6. Adding build-approved; merge after result is green.

@maralcbr maralcbr added the build-approved Maintainer approved this PR to build on the self-hosted pool label Oct 30, 2026
@ryanrhughes
ryanrhughes enabled auto-merge (squash) October 30, 2026 02:37
@ryanrhughes
ryanrhughes merged commit dc74c9d into omacom:master Oct 30, 2026
13 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Publish succeeded → live

Packages: omarchy-ane-dkms (aarch64, PR artifact)

  • edge/aarch64: omarchy-ane-dkms-0.5.6-1-aarch64

Commit dc74c9d · run

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

Labels

build-approved Maintainer approved this PR to build on the self-hosted pool

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants