Gentoo Archives: gentoo-commits

From: Alexandre Restovtsev <tetromino@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:gnome-next commit in: gnome-base/gnome-keyring/, gnome-base/gnome-keyring/files/
Date: Wed, 28 Sep 2011 00:44:18
Message-Id: b5cca2d1b9c45a37858bd9518c00e4ffb92c475f.tetromino@gentoo
1 commit: b5cca2d1b9c45a37858bd9518c00e4ffb92c475f
2 Author: Alexandre Rostovtsev <tetromino <AT> gmail <DOT> com>
3 AuthorDate: Wed Sep 28 00:14:48 2011 +0000
4 Commit: Alexandre Restovtsev <tetromino <AT> gmail <DOT> com>
5 CommitDate: Wed Sep 28 00:14:48 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=b5cca2d1
7
8 gnome-base/gnome-keyring: 3.1.90 → 3.2.0
9
10 Bump. Patches were applied upstream. Drop unneeded gconf dependency.
11
12 ---
13 .../gnome-keyring-3.1.1-automagic-libcap-ng.patch | 60 ---------
14 .../files/gnome-keyring-3.1.90-debug.patch | 138 --------------------
15 ...ng-3.1.90.ebuild => gnome-keyring-3.2.0.ebuild} | 14 +--
16 gnome-base/gnome-keyring/gnome-keyring-9999.ebuild | 11 +-
17 4 files changed, 8 insertions(+), 215 deletions(-)
18
19 diff --git a/gnome-base/gnome-keyring/files/gnome-keyring-3.1.1-automagic-libcap-ng.patch b/gnome-base/gnome-keyring/files/gnome-keyring-3.1.1-automagic-libcap-ng.patch
20 deleted file mode 100644
21 index b87bae3..0000000
22 --- a/gnome-base/gnome-keyring/files/gnome-keyring-3.1.1-automagic-libcap-ng.patch
23 +++ /dev/null
24 @@ -1,60 +0,0 @@
25 -From 8191a26b9717f0b0b8beabdc765cc3c4713b2586 Mon Sep 17 00:00:00 2001
26 -From: Alexandre Rostovtsev <tetromino@×××××.com>
27 -Date: Fri, 20 May 2011 18:06:00 -0400
28 -Subject: [PATCH] Fix automagic libcap-ng dependency (GNOME bug #649936)
29 -
30 -A slight modification of the patch by Saleem Abdulrasool
31 -<compnerd@××××××××.org>. Like his patch, this is for 3.1.x.
32 -
33 -Signed-off-by: Alexandre Rostovtsev <tetromino@×××××.com>
34 ----
35 - configure.ac | 32 ++++++++++++++++++++++----------
36 - 1 files changed, 22 insertions(+), 10 deletions(-)
37 -
38 -diff --git a/configure.ac b/configure.ac
39 -index d9e947a..02372d8 100644
40 ---- a/configure.ac
41 -+++ b/configure.ac
42 -@@ -451,18 +451,30 @@ fi
43 - # libcap-ng
44 - #
45 -
46 --AC_CHECK_LIB([cap-ng], [capng_clear], have_libcapng="yes", have_libcapng="no")
47 --
48 --if test "$have_libcapng" = "yes"; then
49 -- AC_DEFINE(HAVE_LIBCAPNG, 1, [Have libcap-ng package, libcap-ng library])
50 -- DAEMON_LIBS="$DAEMON_LIBS -lcap-ng"
51 --else
52 -- have_lipcapng="no"
53 -- AC_MSG_WARN([libcap-ng (or development headers) is not installed])
54 -+AC_ARG_WITH([libcap-ng],
55 -+ [AC_HELP_STRING([--without-libcap-ng],
56 -+ [build without libcap-ng (disables Linux capabilities support)])],,
57 -+ [with_libcap_ng=auto])
58 -+
59 -+if test x"$with_libcap_ng" != x"no" ; then
60 -+ AC_CHECK_LIB([cap-ng], [capng_clear],
61 -+ [
62 -+ with_libcap_ng="yes"
63 -+ AC_DEFINE([HAVE_LIBCAPNG], [1], [have libcap-ng headers and library])
64 -+ DAEMON_LIBS="$DAEMON_LIBS -lcap-ng"
65 -+ ],
66 -+ [
67 -+ if test x"$with_libcap_ng" = x"yes" ; then
68 -+ AC_MSG_ERROR([libcap-ng support requested, but package not found])
69 -+ else
70 -+ AC_MSG_WARN([libcap-ng (or development headers) is not installed])
71 -+ fi
72 -+ with_libcap_ng="no"
73 -+ ])
74 - fi
75 -
76 --AM_CONDITIONAL(WITH_CAPS, test "$have_libcapng" = "yes")
77 --libcapng_status=$have_libcapng
78 -+AM_CONDITIONAL([WITH_CAPS], [test x"$with_libcap_ng" = x"yes"])
79 -+libcapng_status="$with_libcap_ng"
80 -
81 - # --------------------------------------------------------------------
82 - # Debug mode
83 ---
84 -1.7.5.rc3
85
86 diff --git a/gnome-base/gnome-keyring/files/gnome-keyring-3.1.90-debug.patch b/gnome-base/gnome-keyring/files/gnome-keyring-3.1.90-debug.patch
87 deleted file mode 100644
88 index 478c796..0000000
89 --- a/gnome-base/gnome-keyring/files/gnome-keyring-3.1.90-debug.patch
90 +++ /dev/null
91 @@ -1,138 +0,0 @@
92 -From f591c2326710dbc685a39eb6056eb7734219f181 Mon Sep 17 00:00:00 2001
93 -From: Stef Walter <stefw@××××××××××××.uk>
94 -Date: Tue, 30 Aug 2011 11:36:15 +0000
95 -Subject: Fix compile warnings when building with --disable-debug
96 -
97 ----
98 -diff --git a/daemon/dbus/gkd-secret-property.c b/daemon/dbus/gkd-secret-property.c
99 -index cd2104e..35c7d38 100644
100 ---- a/daemon/dbus/gkd-secret-property.c
101 -+++ b/daemon/dbus/gkd-secret-property.c
102 -@@ -377,8 +377,8 @@ static void
103 - iter_append_variant (DBusMessageIter *iter, DataType data_type, GckAttribute *attr)
104 - {
105 - DBusMessageIter sub;
106 -- IterAppendFunc func;
107 -- const gchar *sig;
108 -+ IterAppendFunc func = NULL;
109 -+ const gchar *sig = NULL;
110 -
111 - g_assert (iter);
112 - g_assert (attr);
113 -@@ -414,9 +414,9 @@ static gboolean
114 - iter_get_variant (DBusMessageIter *iter, DataType data_type, GckAttribute *attr)
115 - {
116 - DBusMessageIter variant;
117 -- IterGetFunc func;
118 -+ IterGetFunc func = NULL;
119 - gboolean ret;
120 -- const gchar *sig;
121 -+ const gchar *sig = NULL;
122 - char *signature;
123 -
124 - g_assert (iter);
125 -diff --git a/daemon/ssh-agent/gkd-ssh-agent-ops.c b/daemon/ssh-agent/gkd-ssh-agent-ops.c
126 -index 7e2e9fe..691ebe0 100644
127 ---- a/daemon/ssh-agent/gkd-ssh-agent-ops.c
128 -+++ b/daemon/ssh-agent/gkd-ssh-agent-ops.c
129 -@@ -983,7 +983,7 @@ op_sign_request (GkdSshAgentCall *call)
130 - gsize n_data, n_result;
131 - guint32 flags;
132 - gsize offset;
133 -- gboolean ret;
134 -+ gboolean ret = FALSE;
135 - guint blobpos, sz;
136 - guint8 *hash;
137 - gulong algo, mech;
138 -diff --git a/egg/egg-asn1x.c b/egg/egg-asn1x.c
139 -index aae8ddd..46d302c 100644
140 ---- a/egg/egg-asn1x.c
141 -+++ b/egg/egg-asn1x.c
142 -@@ -1579,10 +1579,8 @@ anode_encode_prepare_choice (GNode *node, gboolean want)
143 - {
144 - Atlv *tlv;
145 - GNode *child;
146 -- gint type;
147 -
148 -- type = anode_def_type (node);
149 -- g_assert (type == TYPE_CHOICE);
150 -+ g_assert (anode_def_type (node) == TYPE_CHOICE);
151 -
152 - child = egg_asn1x_get_choice (node);
153 - if (!child)
154 -diff --git a/egg/egg-secure-memory.c b/egg/egg-secure-memory.c
155 -index f699203..facc9fe 100644
156 ---- a/egg/egg-secure-memory.c
157 -+++ b/egg/egg-secure-memory.c
158 -@@ -263,6 +263,8 @@ pool_free (void* item)
159 - unused_push (&pool->unused, item);
160 - }
161 -
162 -+#ifndef G_DISABLE_ASSERT
163 -+
164 - static int
165 - pool_valid (void* item)
166 - {
167 -@@ -282,6 +284,8 @@ pool_valid (void* item)
168 - return 0;
169 - }
170 -
171 -+#endif /* G_DISABLE_ASSERT */
172 -+
173 - /* -----------------------------------------------------------------------------
174 - * SEC ALLOCATION
175 - *
176 -diff --git a/gcr/gcr-certificate-renderer.c b/gcr/gcr-certificate-renderer.c
177 -index 5f53cb6..6c8535d 100644
178 ---- a/gcr/gcr-certificate-renderer.c
179 -+++ b/gcr/gcr-certificate-renderer.c
180 -@@ -330,7 +330,7 @@ on_parsed_dn_part (guint index, GQuark oid, const guchar *value,
181 - GcrDisplayView *view = ((on_parsed_dn_args*)user_data)->view;
182 - const gchar *attr;
183 - const gchar *desc;
184 -- gchar *field;
185 -+ gchar *field = NULL;
186 - gchar *display;
187 -
188 - g_return_if_fail (GCR_IS_CERTIFICATE_RENDERER (self));
189 -diff --git a/gcr/gcr-parser.c b/gcr/gcr-parser.c
190 -index 1766e06..2162b98 100644
191 ---- a/gcr/gcr-parser.c
192 -+++ b/gcr/gcr-parser.c
193 -@@ -1671,7 +1671,7 @@ gcr_parser_parse_data (GcrParser *self, gconstpointer data,
194 - gsize n_data, GError **error)
195 - {
196 - ForeachArgs args = { self, data, n_data, GCR_ERROR_UNRECOGNIZED };
197 -- const gchar *message;
198 -+ const gchar *message = NULL;
199 - gint i;
200 -
201 - g_return_val_if_fail (GCR_IS_PARSER (self), FALSE);
202 -diff --git a/pkcs11/gnome2-store/gkm-gnome2-storage.c b/pkcs11/gnome2-store/gkm-gnome2-storage.c
203 -index 6c8ef7f..feaf252 100644
204 ---- a/pkcs11/gnome2-store/gkm-gnome2-storage.c
205 -+++ b/pkcs11/gnome2-store/gkm-gnome2-storage.c
206 -@@ -387,7 +387,7 @@ begin_modification_state (GkmGnome2Storage *self, GkmTransaction *transaction)
207 - {
208 - GkmDataResult res;
209 - struct stat sb;
210 -- CK_RV rv;
211 -+ CK_RV rv = CKR_OK;
212 -
213 - if (!begin_write_state (self, transaction))
214 - return FALSE;
215 -diff --git a/pkcs11/secret-store/gkm-secret-collection.c b/pkcs11/secret-store/gkm-secret-collection.c
216 -index 0aedc5c..c8906d9 100644
217 ---- a/pkcs11/secret-store/gkm-secret-collection.c
218 -+++ b/pkcs11/secret-store/gkm-secret-collection.c
219 -@@ -473,7 +473,7 @@ gkm_secret_collection_real_unlock (GkmObject *obj, GkmCredential *cred)
220 - GkmDataResult res;
221 - GkmSecretData *sdata;
222 - GkmSecret *master;
223 -- CK_RV rv;
224 -+ CK_RV rv = CKR_GENERAL_ERROR;
225 -
226 - master = gkm_credential_get_secret (cred);
227 -
228 ---
229 -cgit v0.9.0.2
230
231 diff --git a/gnome-base/gnome-keyring/gnome-keyring-3.1.90.ebuild b/gnome-base/gnome-keyring/gnome-keyring-3.2.0.ebuild
232 similarity index 84%
233 rename from gnome-base/gnome-keyring/gnome-keyring-3.1.90.ebuild
234 rename to gnome-base/gnome-keyring/gnome-keyring-3.2.0.ebuild
235 index 0f18bcb..b911436 100644
236 --- a/gnome-base/gnome-keyring/gnome-keyring-3.1.90.ebuild
237 +++ b/gnome-base/gnome-keyring/gnome-keyring-3.2.0.ebuild
238 @@ -6,7 +6,7 @@ EAPI="4"
239 GCONF_DEBUG="no"
240 GNOME2_LA_PUNT="yes"
241
242 -inherit autotools eutils gnome2 multilib pam virtualx
243 +inherit gnome2 multilib pam virtualx
244 if [[ ${PV} = 9999 ]]; then
245 inherit gnome2-live
246 fi
247 @@ -26,11 +26,11 @@ fi
248 # USE=valgrind is probably not a good idea for the tree
249 RDEPEND=">=dev-libs/glib-2.25:2
250 >=x11-libs/gtk+-2.90.0:3
251 - gnome-base/gconf:2
252 - >=sys-apps/dbus-1.0
253 + app-misc/ca-certificates
254 >=dev-libs/libgcrypt-1.2.2
255 >=dev-libs/libtasn1-1
256 - dev-libs/p11-kit
257 + >=dev-libs/p11-kit-0.6
258 + >=sys-apps/dbus-1.0
259 caps? ( sys-libs/libcap-ng )
260 pam? ( virtual/pam )
261 "
262 @@ -66,12 +66,6 @@ src_prepare() {
263 sed -e 's/^\(SUBDIRS = \.\)\(.*\)/\1/' \
264 -i gcr/Makefile.* || die "sed failed"
265
266 - # Upstream patch to initialize variables properly, will be in next release
267 - epatch "${FILESDIR}/${P}-debug.patch"
268 -
269 - # https://bugzilla.gnome.org/show_bug.cgi?id=649936
270 - epatch "${FILESDIR}"/${PN}-3.1.1-automagic-libcap-ng.patch
271 - [[ ${PV} = 9999 ]] || eautoreconf
272 gnome2_src_prepare
273 }
274
275
276 diff --git a/gnome-base/gnome-keyring/gnome-keyring-9999.ebuild b/gnome-base/gnome-keyring/gnome-keyring-9999.ebuild
277 index f1d6944..b911436 100644
278 --- a/gnome-base/gnome-keyring/gnome-keyring-9999.ebuild
279 +++ b/gnome-base/gnome-keyring/gnome-keyring-9999.ebuild
280 @@ -6,7 +6,7 @@ EAPI="4"
281 GCONF_DEBUG="no"
282 GNOME2_LA_PUNT="yes"
283
284 -inherit autotools eutils gnome2 multilib pam virtualx
285 +inherit gnome2 multilib pam virtualx
286 if [[ ${PV} = 9999 ]]; then
287 inherit gnome2-live
288 fi
289 @@ -26,11 +26,11 @@ fi
290 # USE=valgrind is probably not a good idea for the tree
291 RDEPEND=">=dev-libs/glib-2.25:2
292 >=x11-libs/gtk+-2.90.0:3
293 - gnome-base/gconf:2
294 - >=sys-apps/dbus-1.0
295 + app-misc/ca-certificates
296 >=dev-libs/libgcrypt-1.2.2
297 >=dev-libs/libtasn1-1
298 - dev-libs/p11-kit
299 + >=dev-libs/p11-kit-0.6
300 + >=sys-apps/dbus-1.0
301 caps? ( sys-libs/libcap-ng )
302 pam? ( virtual/pam )
303 "
304 @@ -66,9 +66,6 @@ src_prepare() {
305 sed -e 's/^\(SUBDIRS = \.\)\(.*\)/\1/' \
306 -i gcr/Makefile.* || die "sed failed"
307
308 - # https://bugzilla.gnome.org/show_bug.cgi?id=649936
309 - epatch "${FILESDIR}"/${PN}-3.1.1-automagic-libcap-ng.patch
310 - [[ ${PV} = 9999 ]] || eautoreconf
311 gnome2_src_prepare
312 }