From e2b17f74841ae14ac96782539ec8bfc1c639ed34 Mon Sep 17 00:00:00 2001 From: Leo Prikler
Date: Thu, 10 Oct 2019 10:16:47 +0200 Subject: [PATCH] gnu: seahorse: Fix build * /gnu/packages/gnome.scm: (seahorse): Use meson-build-system. Update inputs. Add patches to fix compile errors. * /gnu/packages/patches/seahorse-fix-libsecret-breakage.patch: New file. * /gnu/packages/patches/seahorse-fix-type-mismatches.patch: New file. --- gnu/packages/gnome.scm | 12 +- .../seahorse-fix-libsecret-breakage.patch | 29 ++++ .../seahorse-fix-type-mismatches.patch | 154 ++++++++++++++++++ 3 files changed, 192 insertions(+), 3 deletions(-) create mode 100644 gnu/packages/patches/seahorse-fix-libsecret-breakage.patch create mode 100644 gnu/packages/patches/seahorse-fix-type-mismatches.patch diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index 2a664e3db7..a34babebfe 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -2230,10 +2230,14 @@ engineering.") version ".tar.xz")) (sha256 (base32 - "1sbj1czlx1fakm72dwgbn0bwm12j838yaky4mkf6hf8j8afnxmzp")))) - (build-system glib-or-gtk-build-system) + "1sbj1czlx1fakm72dwgbn0bwm12j838yaky4mkf6hf8j8afnxmzp")) + (patches + (search-patches "seahorse-fix-libsecret-breakage.patch" + "seahorse-fix-type-mismatches.patch")))) + (build-system meson-build-system) (inputs - `(("gtk+" ,gtk+) + `(("avahi" ,avahi) + ("gtk+" ,gtk+) ("gcr" ,gcr) ("gnupg" ,gnupg) ("gpgme" ,gpgme) @@ -2244,8 +2248,10 @@ engineering.") (native-inputs `(("intltool" ,intltool) ("glib:bin" ,glib "bin") + ("gtk+:bin" ,gtk+ "bin") ("itstool" ,itstool) ("pkg-config" ,pkg-config) + ("vala" ,vala) ("xmllint" ,libxml2))) (home-page "https://launchpad.net/gnome-themes-standard") (synopsis "Manage encryption keys and passwords in the GNOME keyring") diff --git a/gnu/packages/patches/seahorse-fix-libsecret-breakage.patch b/gnu/packages/patches/seahorse-fix-libsecret-breakage.patch new file mode 100644 index 0000000000..d6396c227a --- /dev/null +++ b/gnu/packages/patches/seahorse-fix-libsecret-breakage.patch @@ -0,0 +1,29 @@ +From d9db29db567012b7c72e85e1be1fbf55fcc9b667 Mon Sep 17 00:00:00 2001 +From: Niels De Graef +Date: Sat, 11 May 2019 09:02:34 +0200 +Subject: [PATCH] gkr: Use 0 on empty flags + +A Flags-type variable without any flag set can be replaced with 0, so +this is a safe thing to do. It also prevents us from having to deal with +the accidental API break in libsecret (see +https://gitlab.gnome.org/GNOME/libsecret/merge_requests/19) +--- + gkr/gkr-keyring-add.vala | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/gkr/gkr-keyring-add.vala b/gkr/gkr-keyring-add.vala +index 4e92a520..f60c9a22 100644 +--- a/gkr/gkr-keyring-add.vala ++++ b/gkr/gkr-keyring-add.vala +@@ -43,8 +43,7 @@ public class Seahorse.Gkr.KeyringAdd : Gtk.Dialog { + + var cancellable = Dialog.begin_request(this); + var service = Backend.instance().service; +- Secret.Collection.create.begin(service, this.name_entry.text, null, +- Secret.CollectionCreateFlags.COLLECTION_CREATE_NONE, ++ Secret.Collection.create.begin(service, this.name_entry.text, null, 0, + cancellable, (obj, res) => { + /* Clear the operation without cancelling it since it is complete */ + Dialog.complete_request(this, false); +-- +2.22.0 diff --git a/gnu/packages/patches/seahorse-fix-type-mismatches.patch b/gnu/packages/patches/seahorse-fix-type-mismatches.patch new file mode 100644 index 0000000000..d259d8311d --- /dev/null +++ b/gnu/packages/patches/seahorse-fix-type-mismatches.patch @@ -0,0 +1,154 @@ +From 12178d7cc7fad52f61003b3221bd0a713ef80507 Mon Sep 17 00:00:00 2001 +From: Rico Tzschichholz +Date: Mon, 5 Nov 2018 09:59:27 +0100 +Subject: [PATCH] Fix type-argument mismatches related to GLib.List + +--- + common/deleter.vala | 2 +- + common/exporter.vala | 2 +- + gkr/gkr-item.vala | 2 +- + gkr/gkr-keyring.vala | 2 +- + pkcs11/certificate-der-exporter.vala | 4 ++-- + pkcs11/pkcs11-deleter.vala | 2 +- + pkcs11/pkcs11-token.vala | 4 ++-- + ssh/deleter.vala | 2 +- + ssh/exporter.vala | 2 +- + 9 files changed, 11 insertions(+), 11 deletions(-) + +diff --git a/common/deleter.vala b/common/deleter.vala +index 18dd0d4c..1c50cdaf 100644 +--- a/common/deleter.vala ++++ b/common/deleter.vala +@@ -24,7 +24,7 @@ namespace Seahorse { + public abstract class Deleter : GLib.Object { + public abstract Gtk.Dialog create_confirm(Gtk.Window? parent); + +- public abstract unowned GLib.List