diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index 5f46eb4d63..7c74b4a874 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -11294,7 +11294,8 @@ (define-public gitg "0npg4kqpwl992fgjd2cn3fh84aiwpdp9kd8z7rw2xaj2iazsm914")))) (build-system meson-build-system) (arguments - `(#:glib-or-gtk? #t + `(#:meson ,meson-0.59 + #:glib-or-gtk? #t #:phases (modify-phases %standard-phases (add-after 'unpack 'disable-post-install-partially @@ -11309,6 +11310,19 @@ (define-public gitg (substitute* "tests/libgitg/test-commit.vala" (("/bin/bash") (which "bash"))) #t)) + ;; XXX: Remove upon next version bump + (add-after 'unpack 'harden + (lambda _ + ;; See + (substitute* "libgitg/gitg-date.vala" + (("(val\|tzs) == null" all val) + (string-append val " == null || " val " == \"\"")) + (("(val\|tzs) != null" all val) + (string-append val " != null && " val " != \"\""))) + ;; See + (substitute* "gitg/gitg-action-support.vala" + (("stash_if_needed\\((.*), Gitg.Ref head" all other) + (string-append "stash_if_needed(" other ", Gitg.Ref? head"))))) (add-after 'glib-or-gtk-wrap 'wrap-typelib (lambda* (#:key outputs #:allow-other-keys) (let ((prog (string-append (assoc-ref outputs "out") @@ -11328,7 +11342,7 @@ (define-public gitg libgit2-glib libpeas libsecret - libsoup + libsoup-minimal-2 libxml2)) (native-inputs `(("glib:bin" ,glib "bin")