Repository navigation
Conversation
…iders Refactor the package installation logic to respect virtual capabilities and preserve foreign drivers like libfprint-tod.
[Medium impact] The reviewed changes appear safe to merge. SummaryThe PR adds a package-selection branch intended to preserve foreign fingerprint drivers while keeping the stock-to-
Reviews (3) · Last reviewed commit: "updated tests" · Reviewed by Greptile |
|
I read the package-selection change, its regression tests, and the PR discussion at I classified this as a compatibility fix because it aims to preserve the fingerprint driver required by particular sensors. The second classifier, |
|
Thanks @FourGL. #12833 merged today as 1bcb85e and fixes this: fingerprint setup now asks which package owns |
fix(security): support foreign libfprint providers
Refactor the package installation logic to respect virtual capabilities and preserve foreign drivers like libfprint-tod.
What changes
The
omarchy-setup-security-fingerprintscript previously hardcoded the installation oflibfprint-git. This caused critical transaction failures for users with proprietary or vendor-specific fingerprint sensors (such as Goodix or Synaptics chips commonly found in Dell and Lenovo laptops).These sensors require custom drivers from the AUR that depend on
libfprint-tod(Touch OEM Driver). Forcinglibfprint-gitviapacmanbreaks the dependency tree by trying to strip outlibfprint-tod, which downstream hardware wrappers require. The--ask 4flag fails to mitigate this path since it only resolves standardlibfprintvslibfprint-gitupdates.This PR transitions the installation step to evaluate
libfprintas an abstract virtual capability rather than a strict package name:pacman -Qqm libfprintto dynamically check if a foreign (AUR/custom) driver provider is already handling the fingerprint layer.libfprint-gitand only provisions the framework orchestration tools (fprintdandusbutils), leaving the underlying hardware driver untouched.libfprint-gitand resolving stock conflicts via--ask 4.Verification
libfprint-gitis missing, the script correctly triggers the installation flow. If stocklibfprintis present, it accurately falls back to the--ask 4replacement path, satisfying mainline readers (like Touch ID).libfprint-tod+libfprint-goodix-53xcstack. Thepacman -Qqmvalidator screens the environment, safely isolates the transaction parameters strictly to framework binaries (fprintd usbutils), and keeps vendor-specific downstream drivers intact.test/shell.d/fingerprint-package-test.shto implement comprehensive mock assertions for-Qqmqueries. Added a distinctMOCK_FOREIGN_LIBFPRINTpipeline ensuring complete coverage for foreign package preservation behaviors. All shell test assertions pass locally.Screenshots
No visible change: Refactors package constraint validation during the fingerprint setup phase; the command-line setup flow and end-user interactive prompt structure remain exactly the same.