Archived
1
0
Fork 0

gnu: lightdm: Update to 1.32.0.

* gnu/packages/display-managers.scm (lightdm): Update to 1.32.0.
This commit is contained in:
Maxim Cournoyer 2022-08-03 21:50:32 -04:00
parent e1375a9b64
commit a8f53d544b
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -255,89 +255,83 @@ experience for your users, your family and yourself")
(license license:gpl3+))) (license license:gpl3+)))
(define-public lightdm (define-public lightdm
;; Use the latest commit, as the current official release doesn't build with (package
;; glib >= 2.33. (name "lightdm")
(let ((revision "0") (version "1.32.0")
(commit "b7fc3214cbaed09c73e963847443a0d648dfd896")) (source (origin
(package (method git-fetch)
(name "lightdm") (uri (git-reference
(version (git-version "1.30.0" revision commit)) (url "https://github.com/canonical/lightdm")
(source (origin (commit version)))
(method git-fetch) (file-name (git-file-name name version))
(uri (git-reference (sha256
(url "https://github.com/canonical/lightdm") (base32
(commit commit))) "1wr60c946p8jz9kb8zi4cd8d4mkcy7infbvlfzwajiglc22nblxn"))))
(file-name (git-file-name name version)) (build-system gnu-build-system)
(sha256 (arguments
(base32 '(#:parallel-tests? #f ; fails when run in parallel
"0378jacazpmdgdjkiilk3mbikz3iysb4s9q40hg9zv4yngwsix1m")))) #:configure-flags
(build-system gnu-build-system) (list "--localstatedir=/var"
(arguments "--enable-gtk-doc"
'(#:parallel-tests? #f ; fails when run in parallel ;; Otherwise the test suite fails on such a warning.
#:configure-flags "CFLAGS=-Wno-error=missing-prototypes")
(list "--localstatedir=/var" #:phases
"--enable-gtk-doc" (modify-phases %standard-phases
;; Otherwise the test suite fails on such a warning. (add-after 'unpack 'fix-paths
"CFLAGS=-Wno-error=missing-prototypes") (lambda* (#:key inputs #:allow-other-keys)
#:phases (substitute* "src/shared-data-manager.c"
(modify-phases %standard-phases (("/bin/rm")
(add-after 'unpack 'fix-paths (search-input-file inputs "bin/rm")))
(lambda* (#:key inputs #:allow-other-keys) (substitute* '("data/users.conf"
(substitute* "src/shared-data-manager.c" "common/user-list.c")
(("/bin/rm") (("/bin/false")
(search-input-file inputs "bin/rm"))) (search-input-file inputs "bin/false"))
(substitute* '("data/users.conf" (("/usr/sbin/nologin")
"common/user-list.c") (search-input-file inputs "sbin/nologin")))
(("/bin/false") (substitute* "src/seat.c"
(search-input-file inputs "bin/false")) (("/bin/sh")
(("/usr/sbin/nologin") (search-input-file inputs "bin/sh")))))
(search-input-file inputs "sbin/nologin"))) (add-before 'check 'pre-check
(substitute* "src/seat.c" (lambda _
(("/bin/sh") (wrap-program "tests/src/test-python-greeter"
(search-input-file inputs "bin/sh"))))) `("GUIX_PYTHONPATH" ":" prefix (,(getenv "GUIX_PYTHONPATH")))
(add-before 'check 'pre-check `("GI_TYPELIB_PATH" ":" prefix (,(getenv "GI_TYPELIB_PATH"))))
;; Run test-suite under a dbus session. ;; Avoid printing locale warnings, which trip up the text
(lambda _ ;; matching tests.
(wrap-program "tests/src/test-python-greeter" (unsetenv "LC_ALL"))))))
`("GUIX_PYTHONPATH" ":" prefix (,(getenv "GUIX_PYTHONPATH"))) (inputs
`("GI_TYPELIB_PATH" ":" prefix (,(getenv "GI_TYPELIB_PATH")))) (list audit
coreutils ;for cross-compilation
;; Avoid printing locale warnings, which trip up the text linux-pam
;; matching tests. shadow ;for sbin/nologin
(unsetenv "LC_ALL")))))) libgcrypt
(inputs libxcb
(list audit libxdmcp))
coreutils ;for cross-compilation (native-inputs
linux-pam (list accountsservice
shadow ;for sbin/nologin autoconf
libgcrypt automake
libxcb gobject-introspection
libxdmcp)) gtk-doc
(native-inputs pkg-config
(list accountsservice itstool
autoconf intltool
automake libtool
gobject-introspection vala ;for Vala bindings
gtk-doc ;; For tests
pkg-config dbus
itstool python-wrapper
intltool python-pygobject
libtool which
vala ;for Vala bindings yelp-tools))
;; For tests ;; Required by liblightdm-gobject-1.pc.
dbus (propagated-inputs
python-wrapper (list glib libx11 libxklavier))
python-pygobject (home-page "https://www.freedesktop.org/wiki/Software/LightDM/")
which (synopsis "Lightweight display manager")
yelp-tools)) (description "The Light Display Manager (LightDM) is a cross-desktop
;; Required by liblightdm-gobject-1.pc.
(propagated-inputs
(list glib libx11 libxklavier))
(home-page "https://www.freedesktop.org/wiki/Software/LightDM/")
(synopsis "Lightweight display manager")
(description "The Light Display Manager (LightDM) is a cross-desktop
display manager which supports different greeters.") display manager which supports different greeters.")
(license license:gpl3+)))) (license license:gpl3+)))
(define-public lightdm-gtk-greeter (define-public lightdm-gtk-greeter
(package (package