guix_mirror_bot pushed a commit to branch gnome-team
in repository guix.
commit 6563a4d00cdba0e766425266ac4e6ab65e0dd583
Author: Maxim Cournoyer <[email protected]>
AuthorDate: Mon Jul 28 16:25:46 2025 +0900
gnu: upower: Fix test suite.
* gnu/packages/gnome.scm (upower) [phases] {set-gi-typelib-path}: New phase.
{check}: Reorder after phase new phase.
Change-Id: Id7a4edc9ae7d30ad67130d908be410abe04186ff
---
gnu/packages/gnome.scm | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 1586f62db1..780c51656d 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -5846,7 +5846,16 @@ faster results and to avoid unnecessary server load.")
(("assertEqual(.*)40\\.0" _ middle)
(string-append
"assertAlmostEqual" middle "40.0"))))
- '()))))))
+ '())))
+ (delete 'check) ;moved after install
+ (add-after 'install 'set-gi-typelib-path
+ (lambda* (#:key outputs #:allow-other-keys)
+ (setenv "GI_TYPELIB_PATH"
+ (string-append
+ (search-input-directory outputs "lib/girepository-1.0")
+ ":" (getenv "GI_TYPELIB_PATH")))))
+ (add-after 'set-gi-typelib-path 'check
+ (assoc-ref %standard-phases 'check)))))
(native-inputs
(list `(,glib "bin") ; for gdbus-codegen
gobject-introspection