gnu: libfprint, fprintd: Update to 1.90.1.
* gnu/packages/freedesktop.scm (libfprint): Update to 1.90.1. [source]: Use GIT-FETCH and GIT-FILE-NAME. [build-system]: Use Meson. [arguments]: Adapt #:configure-flags. [native-inputs]: Add eudev, glib:bin, gobject-introspection, and gtk-doc. [inputs]: Replace libusb with gusb. (fprintd): Update to 1.90.1. [source]: Use GIT-FETCH and GIT-FILE-NAME. [build-system]: Use Meson. [arguments]: Add directory #:configure-flags. Work around many exciting new Meson features. [native-inputs]: Replace intltool with gettext-minimal. Add glib:bin, libxslt, and perl. [inputs]: Add elogind and polkit, as well as gusb, nss, and pixman.
This commit is contained in:
parent
50f02ced92
commit
239d3e9cef
|
@ -11,7 +11,7 @@
|
||||||
;;; Copyright © 2017, 2018, 2019 Marius Bakke <mbakke@fastmail.com>
|
;;; Copyright © 2017, 2018, 2019 Marius Bakke <mbakke@fastmail.com>
|
||||||
;;; Copyright © 2017, 2018, 2019 Rutger Helling <rhelling@mykolab.com>
|
;;; Copyright © 2017, 2018, 2019 Rutger Helling <rhelling@mykolab.com>
|
||||||
;;; Copyright © 2017 Brendan Tildesley <mail@brendan.scot>
|
;;; Copyright © 2017 Brendan Tildesley <mail@brendan.scot>
|
||||||
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
|
;;; Copyright © 2018, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||||
;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz>
|
;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz>
|
||||||
;;; Copyright © 2018 Stefan Stefanović <stefanx2ovic@gmail.com>
|
;;; Copyright © 2018 Stefan Stefanović <stefanx2ovic@gmail.com>
|
||||||
;;; Copyright © 2019 Reza Alizadeh Majd <r.majd@pantherx.org>
|
;;; Copyright © 2019 Reza Alizadeh Majd <r.majd@pantherx.org>
|
||||||
|
@ -1211,26 +1211,34 @@ (define-public colord-gtk
|
||||||
(define-public libfprint
|
(define-public libfprint
|
||||||
(package
|
(package
|
||||||
(name "libfprint")
|
(name "libfprint")
|
||||||
(version "0.6.0")
|
(version "1.90.1")
|
||||||
(source (origin
|
(source
|
||||||
(method url-fetch)
|
(origin
|
||||||
(uri (string-append "https://people.freedesktop.org/~hadess/"
|
(method git-fetch)
|
||||||
name "-" version ".tar.xz"))
|
(uri (git-reference
|
||||||
(sha256
|
(url "https://gitlab.freedesktop.org/libfprint/libfprint")
|
||||||
(base32
|
(commit (string-append "v" version))))
|
||||||
"1giwh2z63mn45galsjb59rhyrvgwcy01hvvp4g01iaa2snvzr0r5"))))
|
(file-name (git-file-name name version))
|
||||||
(build-system gnu-build-system)
|
(sha256
|
||||||
|
(base32 "0fdaak7qjr9b4482g7fhhqpyfdqpxq5kpmyzkp7f5i7qq2ynb78a"))))
|
||||||
|
(build-system meson-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:configure-flags (list (string-append "--with-udev-rules-dir="
|
'(#:configure-flags
|
||||||
(assoc-ref %outputs "out")
|
(list (string-append "-Dudev_rules_dir=" (assoc-ref %outputs "out")
|
||||||
"/lib/udev/rules.d"))))
|
"/lib/udev/rules.d"))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("pkg-config" ,pkg-config)))
|
`(("eudev" ,eudev)
|
||||||
|
("glib:bin" ,glib "bin") ; for {glib-,}mkenums
|
||||||
|
("gobject-introspection" ,gobject-introspection)
|
||||||
|
("gtk-doc" ,gtk-doc) ; for 88 KiB of API documentation
|
||||||
|
("pkg-config" ,pkg-config)))
|
||||||
(inputs
|
(inputs
|
||||||
`(("libusb" ,libusb)
|
`(("glib" ,glib)
|
||||||
("nss" ,nss)
|
("gusb" ,gusb)
|
||||||
("glib" ,glib)
|
("nss" ,nss) ; for the URU4x00 driver
|
||||||
("eudev" ,eudev)
|
|
||||||
|
;; Replacing this with cairo works but just results in a reference
|
||||||
|
;; (only) to pixman in the end.
|
||||||
("pixman" ,pixman)))
|
("pixman" ,pixman)))
|
||||||
(home-page "https://fprint.freedesktop.org/")
|
(home-page "https://fprint.freedesktop.org/")
|
||||||
(synopsis "Library to access fingerprint readers")
|
(synopsis "Library to access fingerprint readers")
|
||||||
|
@ -1243,36 +1251,89 @@ (define-public libfprint
|
||||||
(define-public fprintd
|
(define-public fprintd
|
||||||
(package
|
(package
|
||||||
(name "fprintd")
|
(name "fprintd")
|
||||||
(version "0.7.0")
|
(version "1.90.1")
|
||||||
(source (origin
|
(source
|
||||||
(method url-fetch)
|
(origin
|
||||||
(uri (string-append
|
(method git-fetch)
|
||||||
"https://people.freedesktop.org/~hadess/fprintd-"
|
(uri (git-reference
|
||||||
version ".tar.xz"))
|
(url "https://gitlab.freedesktop.org/libfprint/fprintd")
|
||||||
(sha256
|
(commit version)))
|
||||||
(base32
|
(file-name (git-file-name name version))
|
||||||
"05915i0bv7q62fqrs5diqwr8dz3pwqa1c1ivcgggkjyw0xk4ldp5"))))
|
(sha256
|
||||||
(build-system gnu-build-system)
|
(base32 "0mbzk263x7f58i9cxhs44mrngs7zw5wkm62j5r6xlcidhmfn03cg"))))
|
||||||
|
(build-system meson-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:phases (modify-phases %standard-phases
|
`(#:configure-flags
|
||||||
(add-before 'build 'set-sysconfdir
|
(list "-Dsystemd_system_unit_dir=/tmp"
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(string-append "-Ddbus_service_dir=" (assoc-ref %outputs "out")
|
||||||
;; Work around a bug whereby the 'SYSCONFDIR' macro
|
"/share/dbus-1/system-services")
|
||||||
;; expands literally to '${prefix}/etc'.
|
(string-append "-Dpam_modules_dir=" (assoc-ref %outputs "out")
|
||||||
(let ((out (assoc-ref outputs "out")))
|
"/lib/security"))
|
||||||
(substitute* "src/main.c"
|
#:phases
|
||||||
(("SYSCONFDIR, \"fprintd.conf\"")
|
(modify-phases %standard-phases
|
||||||
(string-append "\"" out "/etc\", "
|
(add-before 'configure 'patch-output-directories
|
||||||
"\"fprintd.conf\"")))
|
;; Install files to our output, not that of the ‘owner’ package.
|
||||||
#t))))))
|
;; These are not exposed as Meson options and must be patched.
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(let ((out (assoc-ref outputs "out")))
|
||||||
|
(substitute* "meson.build"
|
||||||
|
(("(dbus_interfaces_dir = ).*" _ set)
|
||||||
|
(string-append set "'" out "/share/dbus-1/interfaces'\n"))
|
||||||
|
(("(polkit_policy_directory = ).*" _ set)
|
||||||
|
(string-append set "'" out "/share/polkit-1/actions/'\n"))
|
||||||
|
(("(dbus_data_dir = ).*" _ set)
|
||||||
|
(string-append set "get_option('prefix')"
|
||||||
|
" / get_option('datadir')\n")))
|
||||||
|
#t)))
|
||||||
|
(add-before 'configure 'patch-mistake
|
||||||
|
(lambda _
|
||||||
|
(substitute* "meson.build"
|
||||||
|
(("(storage_path = )(get_option\\('prefix'\\))(.*)"
|
||||||
|
_ set mistake value)
|
||||||
|
(string-append set "''" value "\n")))
|
||||||
|
#t))
|
||||||
|
(add-before 'configure 'patch-systemd-dependencies
|
||||||
|
(lambda _
|
||||||
|
(substitute* "meson.build"
|
||||||
|
(("'(libsystemd|systemd)'") "'libelogind'"))
|
||||||
|
#t))
|
||||||
|
(add-before 'configure 'ignore-test-dependencies
|
||||||
|
(lambda _
|
||||||
|
(substitute* "meson.build"
|
||||||
|
(("pam_wrapper_dep .*") "")
|
||||||
|
((".*'(cairo|dbus|dbusmock|gi|pypamtest)': .*,.*") ""))
|
||||||
|
#t))
|
||||||
|
(add-before 'install 'no-polkit-magic
|
||||||
|
;; Meson ‘magically’ invokes pkexec, which fails (not setuid).
|
||||||
|
(lambda _
|
||||||
|
(setenv "PKEXEC_UID" "something")
|
||||||
|
#t)))
|
||||||
|
#:tests? #f)) ; XXX depend on unpackaged packages
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("pkg-config" ,pkg-config)
|
`(("gettext" ,gettext-minimal)
|
||||||
("intltool" ,intltool)))
|
("glib:bin" ,glib "bin") ; for glib-genmarshal
|
||||||
|
("libxslt" ,libxslt) ; for xsltproc
|
||||||
|
("perl" ,perl) ; for pod2man
|
||||||
|
("pkg-config" ,pkg-config)))
|
||||||
|
;; For tests.
|
||||||
|
;;("pam_wrapper" ,pam_wrapper)
|
||||||
|
;;("python-pycairo" ,python-pycairo)
|
||||||
|
;;("python-dbus" ,python-dbus)
|
||||||
|
;;("python-dbusmock" ,python-dbusmock)
|
||||||
|
;;("python-pygobject" ,python-pygobject)
|
||||||
|
;;("python-pypamtest" ,python-pypamtest)
|
||||||
(inputs
|
(inputs
|
||||||
`(("libfprint" ,libfprint)
|
`(("dbus-glib" ,dbus-glib)
|
||||||
("dbus-glib" ,dbus-glib)
|
("elogind" ,elogind)
|
||||||
|
("libfprint" ,libfprint)
|
||||||
|
("linux-pam" ,linux-pam)
|
||||||
("polkit" ,polkit)
|
("polkit" ,polkit)
|
||||||
("linux-pam" ,linux-pam))) ;for pam_fprintd
|
|
||||||
|
;; XXX These are in libfprint's Requires.private. Meson refuses to grant
|
||||||
|
;; the ‘libfprint-2’ dependency if they are not provided here.
|
||||||
|
("gusb" ,gusb)
|
||||||
|
("nss" ,nss)
|
||||||
|
("pixman" ,pixman)))
|
||||||
(home-page "https://fprint.freedesktop.org/")
|
(home-page "https://fprint.freedesktop.org/")
|
||||||
(synopsis "D-Bus daemon that exposes fingerprint reader functionality")
|
(synopsis "D-Bus daemon that exposes fingerprint reader functionality")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Reference in a new issue