From a6bb239919f879e0c0f038b11cee7e72df398e2f Mon Sep 17 00:00:00 2001 From: Mikko Nyman Date: Mon, 27 Apr 2026 15:58:27 +0300 Subject: [PATCH] omarchy-setup-fingerprint: pre-remove libfprint to avoid noninteractive abort (#5463) libfprint-git provides+conflicts libfprint, so pacman -S --noconfirm defaults the conflict prompt to N and the install aborts. Pre-remove libfprint with -Rdd; libfprint-git's provides=libfprint re-satisfies fprintd's dep immediately after install. replaces=(libfprint) on the OPR PKGBUILD was considered and rejected: it does not affect direct -S installs (only -Syu repo scans), and on a published package it would silently swap libfprint for libfprint-git on every -Syu including machines with no FocalTech sensor. Verified on B9406CAA non-interactively; fprintd-list and fprintd-verify continue to work against existing enrollments. Follow-up to #5454. Co-authored-by: Claude Opus 4.7 (1M context) --- bin/omarchy-setup-fingerprint | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bin/omarchy-setup-fingerprint b/bin/omarchy-setup-fingerprint index 12f6ee1a..1579b586 100755 --- a/bin/omarchy-setup-fingerprint +++ b/bin/omarchy-setup-fingerprint @@ -111,6 +111,14 @@ else [[ "$(cat "$v" 2>/dev/null)" == "2808" ]] || continue [[ "$(cat "${v%idVendor}idProduct" 2>/dev/null)" == "a97a" ]] || continue print_info "FocalTech FT9349 detected (B9406CAA) — using libfprint-git from OPR..." + # libfprint-git provides+conflicts libfprint; pacman -S --noconfirm + # defaults the conflict prompt to N and aborts. Pre-remove libfprint + # with -Rdd so the install goes silent. -Rdd (not omarchy-pkg-drop's + # -Rns) is required because fprintd requires libfprint; the dep is + # re-satisfied immediately by libfprint-git's provides=libfprint. + if omarchy-pkg-present libfprint; then + sudo pacman -Rdd --noconfirm libfprint + fi omarchy-pkg-add libfprint-git break done