unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Alex Devaure <ajadevaure@gmail.com>
To: Alex Devaure <ajadevaure@gmail.com>
Cc: 63485@debbugs.gnu.org
Subject: bug#63485: Broken build libfprint
Date: Mon, 22 May 2023 21:32:03 +0100	[thread overview]
Message-ID: <87zg5w85kp.fsf@gmail.com> (raw)
In-Reply-To: <874jo49pzq.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 43 bytes --]


Hi,
Here is the patch to build libfprint.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-package-libfprint-fix-meson-configuration.patch --]
[-- Type: text/x-patch, Size: 3789 bytes --]

From 6366bd6755da6b151756a117d59da5f6cd735cf1 Mon Sep 17 00:00:00 2001
Message-Id: <6366bd6755da6b151756a117d59da5f6cd735cf1.1684787335.git.ajadevaure@gmail.com>
From: Alex Devaure <ajadevaure@gmail.com>
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


[-- Attachment #3: Type: text/plain, Size: 7 bytes --]


Alex


  reply	other threads:[~2023-05-22 20:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-13 13:16 bug#63485: Broken build of libfprint Jiwei Yang via Bug reports for GNU Guix
2023-05-22 18:27 ` bug#63485: Broken build libfprint Alex Devaure
2023-05-22 20:32   ` Alex Devaure [this message]
2023-05-24  8:43     ` Efraim Flashner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zg5w85kp.fsf@gmail.com \
    --to=ajadevaure@gmail.com \
    --cc=63485@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).