[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/06: gnu: gitg: Fix compilation.
From: |
guix-commits |
Subject: |
01/06: gnu: gitg: Fix compilation. |
Date: |
Wed, 15 Dec 2021 14:40:02 -0500 (EST) |
lilyp pushed a commit to branch master
in repository guix.
commit 6454884027084fa62d645b74ca835adfe6882f57
Author: Liliana Marie Prikler <liliana.prikler@gmail.com>
AuthorDate: Tue Dec 14 22:01:48 2021 +0100
gnu: gitg: Fix compilation.
* gnu/packages/gnome.scm (gitg)[#:meson]: Use meson-0.59.
[#:phases] Add ‘harden’ phase to fix test failures.
[inputs]: Use libsoup-minimal-2.
---
gnu/packages/gnome.scm | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 5f46eb4..7c74b4a 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -11294,7 +11294,8 @@ higher level porcelain stuff.")
"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 @@ higher level porcelain stuff.")
(substitute* "tests/libgitg/test-commit.vala"
(("/bin/bash") (which "bash")))
#t))
+ ;; XXX: Remove upon next version bump
+ (add-after 'unpack 'harden
+ (lambda _
+ ;; See <https://gitlab.gnome.org/GNOME/gitg/-/issues/337>
+ (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 <https://gitlab.gnome.org/GNOME/gitg/-/merge_requests/159>
+ (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 @@ higher level porcelain stuff.")
libgit2-glib
libpeas
libsecret
- libsoup
+ libsoup-minimal-2
libxml2))
(native-inputs
`(("glib:bin" ,glib "bin")
- branch master updated (3eadcdc -> b574ccc), guix-commits, 2021/12/15
- 02/06: gnu: polari: Update to 40.1., guix-commits, 2021/12/15
- 01/06: gnu: gitg: Fix compilation.,
guix-commits <=
- 04/06: gnu: gnome-shell-extension-dash-to-panel: Update to 45., guix-commits, 2021/12/15
- 03/06: gnu: gnome-shell-extension-dash-to-dock: Update to 71., guix-commits, 2021/12/15
- 05/06: gnu: gnome-shell-extensions: Update to 41.0., guix-commits, 2021/12/15
- 06/06: gnu: polari: Use polari command to launch Polari., guix-commits, 2021/12/15