Hi,
Here is the patch to build libfprint.
>From 6366bd6755da6b151756a117d59da5f6cd735cf1 Mon Sep 17 00:00:00 2001
Message-Id: <6366bd6755da6b151756a117d59da5f6cd735cf1.1684787335.git.ajadeva...@gmail.com>
From: Alex Devaure
Date: Mon, 22 May 2023 21:25:29 +0100
Subject: [PATCH] gnu package libfprint: fix meson configuration
---
gnu/packages/freedesktop.scm | 60 +++-
1 file changed, 32 insertions(+), 28 deletions(-)
diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index 78b459443a..b4b26379cd 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -2072,36 +2072,40 @@ (define-public libfprint
(package
(name "libfprint")
(version "1.94.5")
-(source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://gitlab.freedesktop.org/libfprint/libfprint;)
- (commit (string-append "v" version
- (file-name (git-file-name name version))
- (sha256
-(base32 "1l1ak7y2kz0nrdkfj41n7h34dyykgzdg50y752ayk3ginp6szr7r"
+(source (origin
+ (method git-fetch)
+ (uri (git-reference
+(url "https://gitlab.freedesktop.org/libfprint/libfprint;)
+(commit (string-append "v" version
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+"1l1ak7y2kz0nrdkfj41n7h34dyykgzdg50y752ayk3ginp6szr7r"
(build-system meson-build-system)
(arguments
- (list #:configure-flags
- #~(list (string-append "-Dudev_hwdb_dir=" #$output
- "/lib/udev/hwdb.d")
- (string-append "-Dudev_rules_dir=" #$output
- "/lib/udev/rules.d"
-(native-inputs
- (list `(,glib "bin") ; for {glib-,}mkenums
- gobject-introspection
- gtk-doc/stable ; for 88 KiB of API documentation
- pkg-config
- ;; For tests
- python-minimal))
-(inputs
- (list gusb
- libgudev
- nss ; for the URU4x00 driver
- ;; Replacing this with cairo works but just results in a reference
- ;; (only) to pixman in the end.
- pixman))
+ (list #:configure-flags #~(list (string-append
+ "-Dc_link_args=-Wl,-rpath="
+ (search-input-directory %build-inputs
+ "lib/nss"))
+ (string-append "-Dudev_hwdb_dir="
+#$output
+"/lib/udev/hwdb.d")
+ (string-append "-Dudev_rules_dir="
+#$output
+"/lib/udev/rules.d"
+
+(native-inputs (list `(,glib "bin") ;for {glib-,}mkenums
+ gobject-introspection
+ gtk-doc/stable ;for 88 KiB of API documentation
+ pkg-config
+ ;; For tests
+ python-minimal))
+(inputs (list gusb
+ libgudev
+ nss ;for the URU4x00 driver
+ ;; Replacing this with cairo works but just results in a reference
+ ;; (only) to pixman in the end.
+ pixman))
(home-page "https://fprint.freedesktop.org/;)
(synopsis "Library to access fingerprint readers")
(description
base-commit: 1638d1f0cecb52a7392d78534e9a0136878759e4
--
2.40.1
Alex