"error occurred in prepare()" for fprintd-clients with python-validity, installed with Pacman and Yet Another Yoghurt (yay)

Hey, I’m new to Linux and Arch based systems in general. I wanted to set up my PC to accept finger print login with fprintd, but my fingerprint sensor is not supported. I looked for workarounds and found this GitHub repository that apparently fixes it. However, every time I go through the intallation process I get the error message

HEAD ist jetzt bei 54e56d6 Make building the daemon optional
/home/paulg/.cache/yay/fprintd-clients/PKGBUILD: Zeile 26: patch: Kommando nicht gefunden.
==> FEHLER: Ein Fehler geschah in prepare().
    Breche ab...
Command not found
error occurred in prepare ( ) aborting...

I don’t know what I might be missing for this to work or how to even approach fixing it.

An explanation for a complete beginner would be appreciated. Thanks in advance guys and gals!

Why are you installing fprintd-clients? It’s not up to date with upstream and does not include the daemon. Install fprintd from the official repos instead:

sudo pacman -Syu fprintd
1 Like

As far as I know i did not install fprintd-clients, but apparently it’s being installed by python-validity. I installed the current version of fprintd as far as I remember.

The same error happens when I try to install fprintd-clients from the app store btw. the error log then is

Vorbereitung...
Abhängigkeiten werden überprüft...
Entferne fprintd (1.94.2-1)...
Starte Post-Transaction-Hooks...
Reloading system manager configuration...
Arming ConditionNeedsUpdate...
Refreshing PackageKit...
Reloading system bus configuration...
Vorgang erfolgreich abgeschlossen.

Vorbereitung...
Klone fprintd-clients Build-Dateien...
Generiere fprintd-clients Informationen...
Überprüfe fprintd-clients Abhängigkeiten...
Abhängigkeiten werden aufgelöst...
Interne Konflikte werden überprüft...

Erstelle fprintd-clients...
==> Erstelle Paket: fprintd-clients 1.90.1.r2.g54e56d6-4 (Mo 27 Feb 2023 02:05:02 CET)
==> Prüfe Laufzeit-Abhängigkeiten...
==> Prüfe Buildtime-Abhängigkeiten...
==> Empfange Quellen...
  -> Aktualisiere das fprintd-clients git Repo...
  -> 0001-disable-systemd-reactivated.diff gefunden
  -> 0002-Remove-ignored-positional-arguments.patch gefunden
==> Überprüfe source Dateien mit sha256sums...
    fprintd-clients ... Übersprungen
    0001-disable-systemd-reactivated.diff ... Erfolg
    0002-Remove-ignored-positional-arguments.patch ... Erfolg
==> Entferne existierendes $srcdir/ Verzeichnis...
==> Entpacke Quellen...
  -> Erstelle Arbeitskopie des fprintd-clients git Repos...
Klone nach 'fprintd-clients'...
Fertig.
Zu neuem Branch 'makepkg' gewechselt
==> Beginne prepare()...
Hinweis: Wechsle zu '54e56d660bf9730f8abc8f2c6a358ef2fec675f2'.

Sie befinden sich im Zustand eines 'losgelösten HEAD'. Sie können sich
umschauen, experimentelle Änderungen vornehmen und diese committen, und
Sie können alle möglichen Commits, die Sie in diesem Zustand machen,
ohne Auswirkungen auf irgendeinen Branch verwerfen, indem Sie zu einem
anderen Branch wechseln.

Wenn Sie einen neuen Branch erstellen möchten, um Ihre erstellten Commits
zu behalten, können Sie das (jetzt oder später) durch Nutzung von
'switch' mit der Option -c tun. Beispiel:

  git switch -c <neuer-Branchname>

Oder um diese Operation rückgängig zu machen:
  git switch -

Sie können diesen Hinweis ausschalten, indem Sie die Konfigurationsvariable
'advice.detachedHead' auf 'false' setzen.

HEAD ist jetzt bei 54e56d6 Make building the daemon optional
/var/tmp/pamac-build-paulg/fprintd-clients/PKGBUILD: Zeile 26: patch: Kommando nicht gefunden.
==> FEHLER: Ein Fehler geschah in prepare().
    Breche ab...

Here is the entire thing in english:

Preparing...
Cloning fprintd-clients build files...
Generating fprintd-clients information...
Checking fprintd-clients dependencies...
Resolving dependencies...
Checking inter-conflicts...

Building fprintd-clients...
==> Making package: fprintd-clients 1.90.1.r2.g54e56d6-4 (Mo 27 Feb 2023 02:11:36 CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating fprintd-clients git repo...
  -> Found 0001-disable-systemd-reactivated.diff
  -> Found 0002-Remove-ignored-positional-arguments.patch
==> Validating source files with sha256sums...
    fprintd-clients ... Skipped
    0001-disable-systemd-reactivated.diff ... Passed
    0002-Remove-ignored-positional-arguments.patch ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of fprintd-clients git repo...
Cloning into 'fprintd-clients'...
done.
Switched to a new branch 'makepkg'
==> Starting prepare()...
Note: switching to '54e56d660bf9730f8abc8f2c6a358ef2fec675f2'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 54e56d6 Make building the daemon optional
/var/tmp/pamac-build-paulg/fprintd-clients/PKGBUILD: line 26: patch: command not found
==> ERROR: A failure occurred in prepare().
    Aborting...

Moderator edit: In the future, please use proper formatting: [HowTo] Post command output and file content as formatted text

Your missing the prerequisites to build AUR packages.

Please see:

1 Like

Thanks that was the problem!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.