Skip to content

Guard the Touch ID patch by its content, and check it - #812

Merged
maralcbr merged 1 commit into
omacom:masterfrom
scottjones:touchid/libfprint-review-fixes
Oct 5, 2026
Merged

maralcbr merged 1 commit into
omacom:masterfrom
scottjones:touchid/libfprint-review-fixes

Conversation

@scottjones

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #806, which merged just before these review fixes reached its branch: prepare() now skips the Touch ID patch only when every hunk is already applied, the patch gets a real b2sum, and the recipe notes that the driver accepts only /dev/sep-bio interface version 4.

-  if [[ $CARCH == "aarch64" && ! -f libfprint/drivers/aurora/aurora.c ]]; then
+  if [[ $CARCH == "aarch64" ]] &&
+    ! patch -p1 -R --dry-run --silent --force < "$srcdir/aurora-apple-sep.patch" >/dev/null 2>&1; then
     patch -p1 --forward < "$srcdir/aurora-apple-sep.patch"
-b2sums_aarch64=('SKIP')
+b2sums_aarch64=('<blake2b of the patch>')

No pkgrel bump: the package it builds is unchanged.

Evidence

The guard applies on a fresh tree, skips on a fully patched one, and fails prepare() on a half-patched one. makepkg -o validates the checksum and applies the patch; tests/pinned-sources.sh passes.

Merge Danger

Door: two-way

Blast Radius: recipe only

🤖 Generated with Claude Code

Marcelo's review: prepare() skipped the patch whenever aurora.c existed, a
file the patch itself creates, so a tree a failed run left half-patched
would build. It now skips only when every hunk is already in, and a
half-patched tree fails prepare(). The patch has a real b2sum, and the
recipe says the driver accepts only /dev/sep-bio interface version 4, so a
kernel bump and this patch move together.

Co-authored-by: Chris Kearney <303316+iconidentify@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@maralcbr
maralcbr merged commit bc55cc7 into omacom:master Oct 5, 2026
7 checks passed
@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Publish succeeded → live

Packages: libfprint-git (x86_64, already published, skipped); libfprint-git (aarch64, already published, skipped)

Nothing to publish: already at master's version everywhere.

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

Commit bc55cc7 · 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.

2 participants