guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 1568f206059962bb1033480cc3c5b095bcb9c404
Author: Maxim Cournoyer <[email protected]>
AuthorDate: Sun Mar 22 11:44:09 2026 +0900

    gnu: libpeas-2: Update to 2.2.1.
    
    * gnu/packages/gnome.scm (libpeas-2): Update to 2.2.1.
    [#:phases] {skip-problematic-tests}: New.
    {check}: New override.
    [inputs]: Remove gtk, glade3, and python-pygobject-3.50; add mozjs and
    python-pygobject.
    
    Change-Id: Ibc355107886922055f6f09d141f20c01402095e6
    Signed-off-by: NoĆ© Lopez <[email protected]>
---
 gnu/packages/gnome.scm | 39 +++++++++++++++++++++++++++++++--------
 1 file changed, 31 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 3d535ba6ab..9503528523 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -3150,7 +3150,7 @@ API.")
   (package
     (inherit libpeas)
     (name "libpeas")
-    (version "2.0.7")
+    (version "2.2.1")
     (source
      (origin
        (method url-fetch)
@@ -3159,19 +3159,42 @@ API.")
                            name "-" version ".tar.xz"))
        (sha256
         (base32
-         "1jcyfs912h29xpnj3fd2mk7pr1mljs61vhdpypphj88xfrlrv6hy"))))
+         "1214is15w2fnp8nj0pgs9jla4h676zq8sism6zgnw01pnj4wm7jq"))))
     (arguments
      (substitute-keyword-arguments arguments
        ((#:configure-flags flags #~(list))
-        #~(cons* "-Dlua51=false" #$flags))))
-    (inputs
-     (list gtk
-           gjs
-           glade3
+        #~(cons* "-Dlua51=false" #$flags))
+       ((#:phases phases '%standard-phases)
+        #~(modify-phases #$phases
+            (add-after 'unpack 'skip-problematic-tests
+              (lambda _
+                ;; XXX: Even with the workaround used in the check phase, it
+                ;; looks like the libraries are doubly loaded because of the
+                ;; LD_LIBRARY_PATH set up by 'meson test', which breaks the
+                ;; loading of the extensions ('cannot register existing type
+                ;; 'PeasExtensionBase', then it hangs).
+                (substitute* "tests/libpeas/meson.build"
+                  ((".*'extension-gjs', .*") "")
+                  ((".*'extension-py', .*") ""))))
+            (delete 'check)
+            (add-after 'install 'check
+              (lambda args
+                ;; This workaround is made necessary by a custom patch to our
+                ;; gobject-introspection package that causes it to always use
+                ;; absolute paths for the shared objects referenced by the
+                ;; typelibs.
+                (let ((src 
"tests/libpeas/introspection/libintrospection-2.so"))
+                  (install-file src (string-append #$output "/lib/"))
+                  (apply (assoc-ref %standard-phases 'check) args)
+                  (delete-file (string-append #$output "/lib/"
+                                              (basename src))))))))))
+    (inputs
+     (list gjs
            ;; lua-5.1
            ;; lua5.1-lgi
+           mozjs
            python
-           python-pygobject-3.50))))
+           python-pygobject))))
 
 (define-public gtkglext
   (package

Reply via email to