[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
143/169: gnu: elogind: Update to 246.10.
From: |
guix-commits |
Subject: |
143/169: gnu: elogind: Update to 246.10. |
Date: |
Thu, 28 Oct 2021 02:09:00 -0400 (EDT) |
apteryx pushed a commit to branch core-updates-frozen-batched-changes
in repository guix.
commit 93f7639291aa2c442b983c2d66b2af3ce19b8cc8
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Wed Oct 20 13:31:44 2021 -0400
gnu: elogind: Update to 246.10.
* gnu/packages/freedesktop.scm (elogind): Update to 246.10.
Remove trailing #t.
[configure-flags]: Address TODOs, removing conditionals and providing
the kexec command.
[phases]{adjust-tests}: Disable the test-user-util and test-event tests.
[inputs]: Add kexec-tools.
---
gnu/packages/freedesktop.scm | 42 +++++++++++++++++++++---------------------
1 file changed, 21 insertions(+), 21 deletions(-)
diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index d509e59..5c0c05f 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -26,6 +26,7 @@
;;; Copyright © 2021 Sarah Morgensen <iskarian@mgsn.dev>
;;; Copyright © 2021 Robby Zambito <contact@robbyzambito.me>
;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
+;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -579,7 +580,7 @@ the freedesktop.org XDG Base Directory specification.")
(define-public elogind
(package
(name "elogind")
- (version "243.7")
+ (version "246.10")
(source (origin
(method git-fetch)
(uri (git-reference
@@ -588,26 +589,19 @@ the freedesktop.org XDG Base Directory specification.")
(file-name (git-file-name name version))
(sha256
(base32
- "1ccj3cbs9nsfg497wg195in1a7b9csm1jdm7z6q7vvx1ynpjxlxz"))))
+ "16045bhpwjq2nqgswln67ipg1zrz2djxlgkfngqng3jqpwagmnzq"))))
(build-system meson-build-system)
(arguments
`(#:configure-flags
- ;; TODO(core-updates): Use #$output unconditionally.
- ,#~(let* ((out #$(if (%current-target-system)
- #~#$output
- #~(assoc-ref %outputs "out")))
+ ,#~(let* ((out #$output)
(sysconf (string-append out "/etc"))
(libexec (string-append out "/libexec/elogind"))
(dbuspolicy (string-append out "/etc/dbus-1/system.d"))
- ;; TODO(core-updates): use this-package-input unconditionally.
- (shadow #$(if (%current-target-system)
- (this-package-input "shadow")
- #~(assoc-ref %build-inputs "shadow")))
- (shepherd #$(if (%current-target-system)
- (this-package-input "shepherd")
- #~(assoc-ref %build-inputs "shepherd")))
+ (kexec-tools #$(this-package-input "kexec-tools"))
+ (shadow #$(this-package-input "shadow"))
+ (shepherd #$(this-package-input "shepherd"))
(halt-path (string-append shepherd "/sbin/halt"))
- (kexec-path "") ;not available in Guix yet
+ (kexec-path (string-append kexec-tools "/sbin/kexec"))
(nologin-path (string-append shadow "/sbin/nologin"))
(poweroff-path (string-append shepherd "/sbin/shutdown"))
(reboot-path (string-append shepherd "/sbin/reboot")))
@@ -633,10 +627,17 @@ the freedesktop.org XDG Base Directory specification.")
(lambda _
(substitute* "meson.build"
(("join_paths\\(bindir, 'pkttyagent'\\)")
- "'\"/run/current-system/profile/bin/pkttyagent\"'"))
- #t))
+ "'\"/run/current-system/profile/bin/pkttyagent\"'"))))
(add-after 'unpack 'adjust-tests
(lambda _
+ ;; Skip the following test, which depends on users such as 'root'
+ ;; existing in the build environment.
+ (invoke "sed" "/src\\/test\\/test-user-util.c/,+2s/^/#/g"
+ "-i" "src/test/meson.build")
+ ;; FIXME: This one times out for unknown reasons.
+ (invoke "sed"
+ "/src\\/libelogind\\/sd-event\\/test-event.c/,+2s/^/#/g"
+ "-i" "src/test/meson.build")
;; This test tries to copy some bytes from /usr/lib/os-release,
;; which does not exist in the build container. Choose something
;; more likely to be available.
@@ -673,13 +674,11 @@ the freedesktop.org XDG Base Directory specification.")
;; Just skip it until a more narrow selection can be made.
(substitute* "src/libelogind/sd-login/test-login.c"
(("test_login\\(\\);")
- "return 77;"))
- #t))
+ "return 77;"))))
(add-after 'unpack 'change-pid-file-path
(lambda _
(substitute* "src/login/elogind.c"
- (("\"/run/elogind.pid\"") "\"/run/systemd/elogind.pid\""))
- #t)))))
+ (("\"/run/elogind.pid\"") "\"/run/systemd/elogind.pid\"")))))))
(native-inputs
`(("docbook-xml" ,docbook-xml)
("docbook-xml-4.2" ,docbook-xml-4.2)
@@ -692,7 +691,8 @@ the freedesktop.org XDG Base Directory specification.")
("python" ,python)
("xsltproc" ,libxslt)))
(inputs
- `(("linux-pam" ,linux-pam)
+ `(("kexec-tools" ,kexec-tools)
+ ("linux-pam" ,linux-pam)
("libcap" ,libcap)
("shadow" ,shadow) ;for 'nologin'
("shepherd" ,shepherd) ;for 'halt' and 'reboot', invoked
- 131/169: gnu: pulseaudio: Add doxygen to fix build., (continued)
- 131/169: gnu: pulseaudio: Add doxygen to fix build., guix-commits, 2021/10/28
- 134/169: gnu: llvm: Add make-lld-wrapper, lld-wrapper and lld-as-ld-wrapper., guix-commits, 2021/10/28
- 135/169: gnu: ungoogled-chromium: Use the new lld-as-ld-wrapper., guix-commits, 2021/10/28
- 136/169: gnu: gtk: Add the generate-gdk-pixbuf-loaders-cache-file phase., guix-commits, 2021/10/28
- 137/169: build: glib-or-gtk: Generate the gdk-pixbuf-loaders cache file in a phase., guix-commits, 2021/10/28
- 139/169: gnu: gdk-pixbuf: Add a search path for the loaders cache file., guix-commits, 2021/10/28
- 142/169: gnu: gawk: Use regular bash to cope with test suite failures., guix-commits, 2021/10/28
- 113/169: gnu: gusb-minimal: Introduce minimal variant., guix-commits, 2021/10/28
- 146/169: gnu: nspr: Normalize inputs., guix-commits, 2021/10/28
- 138/169: profiles: Add a gdk-pixbuf-loaders-cache-file hook., guix-commits, 2021/10/28
- 143/169: gnu: elogind: Update to 246.10.,
guix-commits <=
- 153/169: gnu: python-dbus: Update to 1.2.18., guix-commits, 2021/10/28
- 158/169: gnu: python-dateutil: Update to 2.8.2., guix-commits, 2021/10/28
- 161/169: gnu: mesa: Replace obsolete vulkan-overlay-layer build option., guix-commits, 2021/10/28
- 159/169: gnu: gdk-pixbuf: Remove obsolete jasper support., guix-commits, 2021/10/28
- 132/169: gnu: webkitgtk: Add a debug output., guix-commits, 2021/10/28
- 145/169: gnu: mariadb: Only run the main test suite to avoid flaky tests., guix-commits, 2021/10/28
- 156/169: gnu: python-pytest: Update to 6.2.5., guix-commits, 2021/10/28
- 163/169: gnu: zxing-cpp: Update to 1.2.0-0.00783db., guix-commits, 2021/10/28
- 151/169: gnu: curl: Update to 7.79.1., guix-commits, 2021/10/28
- 157/169: gnu: python-six-bootstrap: Update to 1.16.0., guix-commits, 2021/10/28