Skip to content

Keep a libfprint fork when setting up the fingerprint reader - #15533

Closed
hjemmel wants to merge 1 commit into
omacom:quattrofrom
hjemmel:keep-libfprint-fork
Closed

hjemmel wants to merge 1 commit into
omacom:quattrofrom
hjemmel:keep-libfprint-fork

Conversation

@hjemmel

@hjemmel hjemmel commented Oct 15, 2026

Copy link
Copy Markdown

Problem

omarchy-setup-security-fingerprint decides whether to install packages with omarchy-pkg-missing libfprint-git fprintd usbutils. A reader-specific libfprint fork provides libfprint, not libfprint-git, so the check always reports it missing. The setup then runs pacman -S --ask 4 -- libfprint-git …, which replaces the fork. The reader is left with a libfprint that has no driver for it.

I hit this on a Huawei MateBook D 14 with a Goodix 27c6:5110. That sensor is only supported by libfprint-goodixtls511-git (AUR, buxel's fork), which provides=('libfprint'). Running the setup, or accepting the first-run invitation, would break a reader that already works.

Change

Before choosing the package list, ask pacman which package provides libfprint (pacman -Qq libfprint prints the provider's real name):

  • None or stock libfprint: install libfprint-git fprintd usbutils, exactly as before. Stock is still swapped for libfprint-git in one --ask 4 transaction.
  • Any other provider: install only fprintd usbutils and keep the driver. This includes libfprint-git itself, where behavior is unchanged because everything is already present.

Raw pacman -Qq is used because omarchy-pkg-missing/-present can only answer yes or no, not name the provider.

Tests

test/shell.d/fingerprint-package-test.sh:

  • Stub: the pacman stub now resolves provides for -Q/-Qq through a PROVIDER variable, like real pacman does.
  • New cases: a fork with fprintd already installed doesn't touch pacman. A fork without fprintd installs only fprintd usbutils.
  • Proof the cases catch the bug: against the unchanged script, the first new case fails (not ok - a libfprint fork with fprintd installed does not touch pacman).
  • Suites: all fingerprint-* tests, security-fingerprint-remove-test.sh and ./test/cli pass.
  • On real hardware: on the MateBook (provider libfprint-goodixtls511-huawei), the new selection resolves to fprintd usbutils, with nothing to install.

The repair migration 1785090473 doesn't have this problem: it checks omarchy-pkg-missing libfprint, and pacman's -Q resolves provides, so a fork already counts as installed.

Related

Getting this reader working took fixes in the fork itself too. Linking them for anyone with the same hardware:

🤖 Generated with Claude Code

The setup installed libfprint-git whenever no package was named
libfprint-git, so a reader-specific fork that provides libfprint (such as
libfprint-goodixtls511-git for the Goodix 27c6:5110) was swapped out by
--ask 4, leaving the reader with no working driver. Only stock libfprint, or
no libfprint at all, is replaced now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

Fingerprint setup now keeps an installed libfprint fork instead of replacing it with libfprint-git.

  • Fingerprint setup keeps reader-specific libfprint providers in place.

Reviews (1) · Last reviewed commit: "Keep a libfprint fork when setting up th..." · Reviewed by Greptile

@omarchybot

Copy link
Copy Markdown
Collaborator

Thanks for this, and for linking the fork fixes for anyone with the same reader.

This pull request has been read but not verified yet. Every item here is classified by two models separately: Claude Opus 5.5 read it as a bug fix. The second reviewer, Codex Medium, was reachable but did not run, because the reviews budgeted for today were already used up. With only one answer the classification stays open, so this has no label yet, and nothing has run on a test machine.

What was checked, by reading only: the diff at bfc285a, set against bin/omarchy-setup-security-fingerprint and test/shell.d/fingerprint-package-test.sh on quattro, which neither has changed since this branched. Also omarchy-pkg-missing, omarchy-pkg-drop, omarchy-remove-security-fingerprint and migration 1785090473, to see how each one handles a package that provides libfprint. Reading it turned up nothing blocking. That is one model's reading and does not count as a review.

Next, the maintainer has to settle the classification. After that, the change gets reproduced on a worker (fails on quattro, passes here) and reviewed by both models.

@mantelsolutions

Copy link
Copy Markdown

Additional affected hardware: ThinkPad E490, Synaptics 06cb:00a2. A patched libfprint-00a2 provider now enrolls and verifies this reader; the owner confirmed fingerprint unlocking works. The stock Omarchy setup explicitly installs libfprint-git and would remove that required provider, so preserving custom providers matters here too.

I applied this PR's patch to the current Omarchy checkout and ran test/shell.d/fingerprint-package-test.sh. The fingerprint package test passed. The tested device patch, package recipe and hardware results are in #17949 and https://gist.github.com/mantelsolutions/7146565ab78e22d3ef4dbee848afeadc. This does not claim testing every part of this PR or automatic E490 driver installation.

@omarchybot

Copy link
Copy Markdown
Collaborator

Thanks @hjemmel. #12833 merged today as 1bcb85e and fixes this: fingerprint setup now asks which package owns /usr/lib/libfprint-2.so.2 and leaves libfprint-git out when a fork owns it. That reaches the same machines this reaches through the pacman -Qq libfprint provider, and its tests cover the fork cases this adds, so nothing here is left to land. This was closed at the maintainer's request after a review of every open fingerprint pull request. Fable 5 in Claude Code read it against today's quattro; no second model checked the closure, so reopen it if this reads your change wrong.

@omarchybot omarchybot closed this Nov 21, 2026
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.

3 participants