1 |
commit: cb1a21215c2d068434581fbcbaf97738be1cb45d |
2 |
Author: Christophe Lermytte <gentoo <AT> lermytte <DOT> be> |
3 |
AuthorDate: Wed Apr 14 21:26:52 2021 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 14 21:37:58 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb1a2121 |
7 |
|
8 |
app-crypt/seahorse: fix segfault on 40.0 when USE=-ldap |
9 |
|
10 |
Patch source: |
11 |
https://gitlab.gnome.org/GNOME/seahorse/-/commit/6fc0e3e321cdf0bf7e047234561fe8a8084a93f9 |
12 |
|
13 |
Closes: https://github.com/gentoo/gentoo/pull/20386 |
14 |
Signed-off-by: Christophe Lermytte <gentoo <AT> lermytte.be> |
15 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
16 |
|
17 |
...orse-40.0-fix-segfault-with-ldap-disabled.patch | 29 ++++++++ |
18 |
app-crypt/seahorse/seahorse-40.0-r1.ebuild | 80 ++++++++++++++++++++++ |
19 |
2 files changed, 109 insertions(+) |
20 |
|
21 |
diff --git a/app-crypt/seahorse/files/seahorse-40.0-fix-segfault-with-ldap-disabled.patch b/app-crypt/seahorse/files/seahorse-40.0-fix-segfault-with-ldap-disabled.patch |
22 |
new file mode 100644 |
23 |
index 00000000000..8454a0388ea |
24 |
--- /dev/null |
25 |
+++ b/app-crypt/seahorse/files/seahorse-40.0-fix-segfault-with-ldap-disabled.patch |
26 |
@@ -0,0 +1,29 @@ |
27 |
+From 6fc0e3e321cdf0bf7e047234561fe8a8084a93f9 Mon Sep 17 00:00:00 2001 |
28 |
+From: Xi Ruoyao <xry111@×××××××××××.wang> |
29 |
+Date: Wed, 14 Apr 2021 23:18:06 +0800 |
30 |
+Subject: [PATCH] Fix segfault when built with ldap disabled |
31 |
+ |
32 |
+Fixes #321. |
33 |
+--- |
34 |
+ pgp/seahorse-pgp-backend.c | 5 ++++- |
35 |
+ 1 file changed, 4 insertions(+), 1 deletion(-) |
36 |
+ |
37 |
+diff --git a/pgp/seahorse-pgp-backend.c b/pgp/seahorse-pgp-backend.c |
38 |
+index 25febf31..8c10e7e3 100644 |
39 |
+--- a/pgp/seahorse-pgp-backend.c |
40 |
++++ b/pgp/seahorse-pgp-backend.c |
41 |
+@@ -445,7 +445,10 @@ seahorse_pgp_backend_add_remote (SeahorsePgpBackend *self, |
42 |
+ /* Don't persist, so just immediately create a ServerSource */ |
43 |
+ g_autoptr(SeahorseServerSource) ssrc = NULL; |
44 |
+ ssrc = seahorse_server_category_create_server (uri); |
45 |
+- g_list_store_append (G_LIST_STORE (self->remotes), ssrc); |
46 |
++ /* If the scheme of the uri is ldap, but ldap support is disabled |
47 |
++ * in the build, ssrc will be NULL. */ |
48 |
++ if (ssrc) |
49 |
++ g_list_store_append (G_LIST_STORE (self->remotes), ssrc); |
50 |
+ } |
51 |
+ } |
52 |
+ |
53 |
+-- |
54 |
+GitLab |
55 |
+ |
56 |
|
57 |
diff --git a/app-crypt/seahorse/seahorse-40.0-r1.ebuild b/app-crypt/seahorse/seahorse-40.0-r1.ebuild |
58 |
new file mode 100644 |
59 |
index 00000000000..cb214296bdd |
60 |
--- /dev/null |
61 |
+++ b/app-crypt/seahorse/seahorse-40.0-r1.ebuild |
62 |
@@ -0,0 +1,80 @@ |
63 |
+# Copyright 1999-2021 Gentoo Authors |
64 |
+# Distributed under the terms of the GNU General Public License v2 |
65 |
+ |
66 |
+EAPI=7 |
67 |
+inherit gnome.org gnome2-utils meson xdg vala |
68 |
+ |
69 |
+DESCRIPTION="Manage your passwords and encryption keys" |
70 |
+HOMEPAGE="https://wiki.gnome.org/Apps/Seahorse" |
71 |
+ |
72 |
+LICENSE="GPL-2+ FDL-1.1+" |
73 |
+SLOT="0" |
74 |
+IUSE="ldap zeroconf" |
75 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
76 |
+ |
77 |
+RDEPEND=" |
78 |
+ >=dev-libs/glib-2.58:2 |
79 |
+ >=app-crypt/gcr-3.38:= |
80 |
+ >=app-crypt/gpgme-1.14.0 |
81 |
+ >=x11-libs/gtk+-3.24.0:3 |
82 |
+ >=app-crypt/gnupg-2.2 |
83 |
+ >=gui-libs/libhandy-1.1:1= |
84 |
+ >=app-crypt/libsecret-0.16 |
85 |
+ dev-libs/libpwquality |
86 |
+ net-misc/openssh |
87 |
+ ldap? ( net-nds/openldap:= ) |
88 |
+ >=net-libs/libsoup-2.33.92:2.4 |
89 |
+ zeroconf? ( >=net-dns/avahi-0.6:=[dbus] ) |
90 |
+" |
91 |
+DEPEND="${RDEPEND} |
92 |
+ $(vala_depend) |
93 |
+ dev-libs/libxml2:2 |
94 |
+ app-crypt/gcr[vala] |
95 |
+ app-crypt/libsecret[vala] |
96 |
+ gui-libs/libhandy:1[vala] |
97 |
+" |
98 |
+BDEPEND=" |
99 |
+ app-text/docbook-xml-dtd:4.2 |
100 |
+ app-text/docbook-xsl-stylesheets |
101 |
+ dev-libs/appstream-glib |
102 |
+ dev-libs/libxslt |
103 |
+ dev-util/gdbus-codegen |
104 |
+ dev-util/glib-utils |
105 |
+ dev-util/itstool |
106 |
+ >=sys-devel/gettext-0.19.8 |
107 |
+ virtual/pkgconfig |
108 |
+" |
109 |
+ |
110 |
+PATCHES=( |
111 |
+ "${FILESDIR}"/${P}-fix-segfault-with-ldap-disabled.patch |
112 |
+) |
113 |
+ |
114 |
+src_prepare() { |
115 |
+ xdg_src_prepare |
116 |
+ vala_src_prepare |
117 |
+} |
118 |
+ |
119 |
+src_configure() { |
120 |
+ local emesonargs=( |
121 |
+ -Dhelp=true |
122 |
+ -Dpgp-support=true |
123 |
+ -Dcheck-compatible-gpg=false # keep lowest version listed as compatible as min dep for gnupg RDEPEND |
124 |
+ -Dpkcs11-support=true |
125 |
+ -Dkeyservers-support=true |
126 |
+ -Dhkp-support=true |
127 |
+ $(meson_use ldap ldap-support) |
128 |
+ $(meson_use zeroconf key-sharing) |
129 |
+ -Dmanpage=true |
130 |
+ ) |
131 |
+ meson_src_configure |
132 |
+} |
133 |
+ |
134 |
+pkg_postinst() { |
135 |
+ xdg_pkg_postinst |
136 |
+ gnome2_schemas_update |
137 |
+} |
138 |
+ |
139 |
+pkg_postrm() { |
140 |
+ xdg_pkg_postrm |
141 |
+ gnome2_schemas_update |
142 |
+} |