bug#63485: Broken build libfprint

2023-05-24 Thread Efraim Flashner
On Mon, May 22, 2023 at 09:32:03PM +0100, Alex Devaure wrote:
> 
> Hi,
> Here is the patch to build libfprint.

I've adjusted the patch to remove all the styling changes so it's
clearer what changes were made. I've also added a copyright line for you
and pushed the patch. Thanks!


-- 
Efraim Flashner  רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted


signature.asc
Description: PGP signature


bug#63485: Broken build libfprint

2023-05-22 Thread Alex Devaure

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



bug#63485: Broken build libfprint

2023-05-22 Thread Alex Devaure
Hi Jiwei,
Doing some investigations, I found that the build configuration needs to
be updated due to some meson update.
I have a patch nearly ready and I will send it in the coming days.
Best regards,
Alex