unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#63485: Broken build of libfprint
@ 2023-05-13 13:16 Jiwei Yang via Bug reports for GNU Guix
  2023-05-22 18:27 ` bug#63485: Broken build libfprint Alex Devaure
  0 siblings, 1 reply; 4+ messages in thread
From: Jiwei Yang via Bug reports for GNU Guix @ 2023-05-13 13:16 UTC (permalink / raw)
  To: 63485

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

Hi Guix!

I was trying building libfprint but it seemed there were some problems with libnss3.so:

> ...
>
> starting phase `patch-shebangs'
> phase `patch-shebangs' succeeded after 0.0 seconds
> starting phase `strip'
> stripping binaries in "/gnu/store/2q2m4vnj7czm5f3jkkxamwa41ihgbs7a-libfprint-1.94.5/lib" with "strip" and flags ("--strip-unneeded" "--enable-deterministic-archives")
> phase `strip' succeeded after 0.0 seconds
> starting phase `shrink-runpath'
> /gnu/store/2q2m4vnj7czm5f3jkkxamwa41ihgbs7a-libfprint-1.94.5/lib/libfprint-2.so: stripping RUNPATH to ("/gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/lib" "/gnu/store/nb40pwd37v6i1g4b1fq4l6q4h9px3asr-glib-2.72.3/lib" "/gnu/store/36pq5lsji3ania8wk05hpq55lfpnh81w-gusb-0.3.5/lib" "/gnu/store/p6za1mhsrw7fxgngyjkkm6z9dkgdfnqf-pixman-0.40.0/lib" "/gnu/store/a5g7n5jkiqy3bp28mwk98pw3jzxfm4x6-libgudev-236/lib") (removed ("/gnu/store/2q2m4vnj7czm5f3jkkxamwa41ihgbs7a-libfprint-1.94.5/lib" "/gnu/store/930nwsiysdvy2x5zv1sf6v7ym75z8ayk-gcc-11.3.0-lib/lib" "/gnu/store/hgljcrwcgksxrcl77yybgmpl11d8xxx3-libusb-1.0.25/lib" "/gnu/store/jxkn98nnk2pv3fy7cx2baaynkr4c63wp-nspr-4.35/lib" "/gnu/store/930nwsiysdvy2x5zv1sf6v7ym75z8ayk-gcc-11.3.0-lib/lib/gcc/x86_64-unknown-linux-gnu/11.3.0/../../.."))
> phase `shrink-runpath' succeeded after 0.0 seconds
> starting phase `validate-runpath'
> validating RUNPATH of 1 binaries in "/gnu/store/2q2m4vnj7czm5f3jkkxamwa41ihgbs7a-libfprint-1.94.5/lib"...
> /gnu/store/2q2m4vnj7czm5f3jkkxamwa41ihgbs7a-libfprint-1.94.5/lib/libfprint-2.so: error: depends on 'libnss3.so', which cannot be found in RUNPATH ("/gnu/store/gsjczqir1wbz8p770zndrpw4rnppmxi3-glibc-2.35/lib" "/gnu/store/nb40pwd37v6i1g4b1fq4l6q4h9px3asr-glib-2.72.3/lib" "/gnu/store/36pq5lsji3ania8wk05hpq55lfpnh81w-gusb-0.3.5/lib" "/gnu/store/p6za1mhsrw7fxgngyjkkm6z9dkgdfnqf-pixman-0.40.0/lib" "/gnu/store/a5g7n5jkiqy3bp28mwk98pw3jzxfm4x6-libgudev-236/lib")
> error: in phase 'validate-runpath': uncaught exception:
> misc-error #f "RUNPATH validation failed" () #f
> phase `validate-runpath' failed after 0.0 seconds
> Backtrace:
> 8 (primitive-load "/gnu/store/8hf1rdz5c3k8rdn0akhii6b3r0m…")
> In guix/build/gnu-build-system.scm:
> 908:2 7 (gnu-build #:source _ #:outputs _ #:inputs _ #:phases . #)
> In ice-9/boot-9.scm:
> 1752:10 6 (with-exception-handler _ _ #:unwind? _ # _)
> In srfi/srfi-1.scm:
> 634:9 5 (for-each #<procedure 7fffeeef0160 at guix/build/gnu-b…> …)
> In ice-9/boot-9.scm:
> 1752:10 4 (with-exception-handler _ _ #:unwind? _ # _)
> In guix/build/gnu-build-system.scm:
> 929:23 3 (_)
> 570:10 2 (validate-runpath #:validate-runpath? _ # _ #:outputs _)
> In ice-9/boot-9.scm:
> 1685:16 1 (raise-exception _ #:continuable? _)
> 1685:16 0 (raise-exception _ #:continuable? _)
>
> ice-9/boot-9.scm:1685:16: In procedure raise-exception:
> RUNPATH validation failed

Kind regards,
Jiwei

[-- Attachment #2: Type: text/html, Size: 4650 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#63485: Broken build libfprint
  2023-05-13 13:16 bug#63485: Broken build of libfprint Jiwei Yang via Bug reports for GNU Guix
@ 2023-05-22 18:27 ` Alex Devaure
  2023-05-22 20:32   ` Alex Devaure
  0 siblings, 1 reply; 4+ messages in thread
From: Alex Devaure @ 2023-05-22 18:27 UTC (permalink / raw)
  To: 63485

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




^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#63485: Broken build libfprint
  2023-05-22 18:27 ` bug#63485: Broken build libfprint Alex Devaure
@ 2023-05-22 20:32   ` Alex Devaure
  2023-05-24  8:43     ` Efraim Flashner
  0 siblings, 1 reply; 4+ messages in thread
From: Alex Devaure @ 2023-05-22 20:32 UTC (permalink / raw)
  To: Alex Devaure; +Cc: 63485

[-- 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


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* bug#63485: Broken build libfprint
  2023-05-22 20:32   ` Alex Devaure
@ 2023-05-24  8:43     ` Efraim Flashner
  0 siblings, 0 replies; 4+ messages in thread
From: Efraim Flashner @ 2023-05-24  8:43 UTC (permalink / raw)
  To: Alex Devaure; +Cc: yangjiwei, 63485-done

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

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   <efraim@flashner.co.il>   רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-05-24  8:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2023-05-24  8:43     ` Efraim Flashner

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).