unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#37918] gnu: meld: Fix startup
@ 2019-10-25  9:17 Leo Prikler
  2019-10-27  9:53 ` bug#37918: " Danny Milosavljevic
  0 siblings, 1 reply; 2+ messages in thread
From: Leo Prikler @ 2019-10-25  9:17 UTC (permalink / raw)
  To: 37918

[-- Attachment #1: Type: text/plain, Size: 329 bytes --]

It was reported in IRC, that Meld is having troubles starting up. After
some building on my own I've decided to fix it.

Caveat: Running `guix build meld` followed by `/gnu/store/.../bin/meld`
will lead to a crash -- it seems GSettings is having some trouble.
`guix environment --ad-hoc meld` should work, though.

Regards,

Leo

[-- Attachment #2: 0001-gnu-meld-Fix-startup.patch --]
[-- Type: text/x-patch, Size: 1710 bytes --]

From d0b647ac2b038e8bed5b99fa8dd4a70b4b4be357 Mon Sep 17 00:00:00 2001
From: Leo Prikler <leo.prikler@student.tugraz.at>
Date: Fri, 25 Oct 2019 11:01:50 +0200
Subject: [PATCH] gnu: meld: Fix startup.

* /gnu/packages/patchutils.scm: (meld)[inputs]: Use gtksourceview-3.
[arguments]<#:phases>: Add 'wrap-typelib'.
---
 gnu/packages/patchutils.scm | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/patchutils.scm b/gnu/packages/patchutils.scm
index a63d889cff..4cd6bbbf48 100644
--- a/gnu/packages/patchutils.scm
+++ b/gnu/packages/patchutils.scm
@@ -265,7 +265,7 @@ GiB).")
     (inputs
      `(("python-cairo" ,python-pycairo)
        ("python-gobject" ,python-pygobject)
-       ("gtksourceview" ,gtksourceview)))
+       ("gtksourceview" ,gtksourceview-3)))
     (propagated-inputs
      `(("dconf" ,dconf)))
     (arguments
@@ -292,7 +292,14 @@ GiB).")
              (setenv "HOME" "/tmp")
              (invoke "py.test" "-v" "-k"
                      ;; TODO: Those tests fail, why?
-                     "not test_classify_change_actions"))))))
+                     "not test_classify_change_actions")))
+         (add-after 'wrap 'wrap-typelib
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (let ((out (assoc-ref outputs "out")))
+               (wrap-program (string-append out "/bin/meld")
+                 `("GI_TYPELIB_PATH" prefix
+                   ,(search-path-as-string->list (getenv "GI_TYPELIB_PATH"))))
+               #t))))))
     (home-page "https://meldmerge.org/")
     (synopsis "Compare files, directories and working copies")
     (description "Meld is a visual diff and merge tool targeted at
-- 
2.23.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#37918: gnu: meld: Fix startup
  2019-10-25  9:17 [bug#37918] gnu: meld: Fix startup Leo Prikler
@ 2019-10-27  9:53 ` Danny Milosavljevic
  0 siblings, 0 replies; 2+ messages in thread
From: Danny Milosavljevic @ 2019-10-27  9:53 UTC (permalink / raw)
  To: Leo Prikler; +Cc: 37918-done

[-- Attachment #1: Type: text/plain, Size: 508 bytes --]

Hi,

On Fri, 25 Oct 2019 11:17:26 +0200
Leo Prikler <leo.prikler@student.tugraz.at> wrote:

> Caveat: Running `guix build meld` followed by `/gnu/store/.../bin/meld`
> will lead to a crash -- it seems GSettings is having some trouble.
> `guix environment --ad-hoc meld` should work, though.

Thanks!  I've pushed this fix since it's already improving things a lot!

It might make sense to investigate the other problem as well.
Could you open a bug about that by E-Mailing to bug-guix@gnu.org ?

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-10-27  9:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-25  9:17 [bug#37918] gnu: meld: Fix startup Leo Prikler
2019-10-27  9:53 ` bug#37918: " Danny Milosavljevic

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).