[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/12: gnu: mutter: Remove dependency on (guix build syscalls).
From: |
guix-commits |
Subject: |
01/12: gnu: mutter: Remove dependency on (guix build syscalls). |
Date: |
Mon, 23 Oct 2023 05:58:49 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 64e678bdbc4dd139955c34dcdd8432e17c5f08b2
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Fri Oct 13 16:50:28 2023 +0200
gnu: mutter: Remove dependency on (guix build syscalls).
* gnu/packages/gnome.scm (mutter)[arguments]: Remove #:imported-modules.
Remove (guix build syscalls) from #:modules.
Rewrite ‘check’ phase to reap processes from the build process.
[native-inputs]: Remove TINI.
---
gnu/packages/gnome.scm | 32 ++++++++++++++------------------
1 file changed, 14 insertions(+), 18 deletions(-)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 2ffe8dfef2..ac3035e07d 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -7831,10 +7831,7 @@ to display dialog boxes from the commandline and shell
scripts.")
(build-system meson-build-system)
(arguments
(list
- #:imported-modules `(,@%meson-build-system-modules
- (guix build syscalls))
#:modules '((guix build meson-build-system)
- (guix build syscalls)
(guix build utils)
(ice-9 match))
#:glib-or-gtk? #t
@@ -7928,22 +7925,22 @@ to display dialog boxes from the commandline and shell
scripts.")
"1"))
(match (primitive-fork)
(0 ;child process
- (set-child-subreaper!)
- ;; Use tini so that signals are properly handled and
- ;; doubly-forked processes get reaped; otherwise,
- ;; python-dbusmock would waste time polling for the dbus
- ;; processes it spawns to be reaped, in vain.
- (apply execlp "tini" "--"
- "dbus-run-session" "--"
+ (apply execlp "dbus-run-session" "dbus-run-session"
"xvfb-run" "-a" "-s" (getenv "XVFB_SERVER_ARGS")
"meson" "test" "-t" "0" "--print-errorlogs"
test-options))
- (pid
- (match (waitpid pid)
- ((_ . status)
- (unless (zero? status)
- (error "`meson test' exited with status"
- status))))))))))))
+ (dbus-pid
+ (let loop ()
+ ;; Reap child processes; otherwise, python-dbusmock would
+ ;; waste time polling for the dbus processes it spawns to
+ ;; be reaped, in vain.
+ (match (waitpid WAIT_ANY)
+ ((pid . status)
+ (if (= pid dbus-pid)
+ (unless (zero? status)
+ (error "`meson test' exited with status"
+ status))
+ (loop)))))))))))))
(native-inputs
(list desktop-file-utils ;for update-desktop-database
`(,glib "bin") ;for glib-compile-schemas, etc.
@@ -7964,8 +7961,7 @@ to display dialog boxes from the commandline and shell
scripts.")
pipewire
python
python-dbus
- python-dbusmock
- tini)) ;acting as init (zombie reaper)
+ python-dbusmock))
(propagated-inputs
(list gsettings-desktop-schemas-next ;required by libmutter.pc
gtk+ ;required by libmutter.pc
- branch master updated (25043e01b6 -> dae956e796), guix-commits, 2023/10/23
- 02/12: gnu: python-ipykernel: Remove dependency on (guix build syscalls)., guix-commits, 2023/10/23
- 01/12: gnu: mutter: Remove dependency on (guix build syscalls).,
guix-commits <=
- 04/12: gnu: python-dbusmock: Rewrite phases as a gexp., guix-commits, 2023/10/23
- 05/12: gnu: python-dbusmock: Use ‘search-input-file’., guix-commits, 2023/10/23
- 08/12: build-system/ant: Remove dependency on (guix build syscalls)., guix-commits, 2023/10/23
- 09/12: build-system/android-ndk: Remove dependency on (guix build syscalls)., guix-commits, 2023/10/23
- 07/12: gnu: public-inbox: Remove dependency on (guix build syscalls)., guix-commits, 2023/10/23
- 10/12: build-system/dub: Remove dependency on (guix build syscalls)., guix-commits, 2023/10/23
- 11/12: syscalls: Add support for musl libc., guix-commits, 2023/10/23
- 12/12: syscalls: Consistently use existing linux? definition., guix-commits, 2023/10/23
- 03/12: gnu: python-dbusmock: Remove dependency on (guix build syscalls)., guix-commits, 2023/10/23
- 06/12: gnu: polkit: Remove dependency on (guix build syscalls)., guix-commits, 2023/10/23