1 |
commit: 1c5036dc904539163657a337503bf34769b1ec82 |
2 |
Author: Priit Laes <plaes <AT> plaes <DOT> org> |
3 |
AuthorDate: Sun Jan 29 09:39:16 2012 +0000 |
4 |
Commit: Priit Laes <plaes <AT> plaes <DOT> org> |
5 |
CommitDate: Sun Jan 29 09:39:16 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=1c5036dc |
7 |
|
8 |
net-libs/glib-networking: Add pkcs11 support |
9 |
|
10 |
--- |
11 |
.../files/skip-broken-assert-in-pkcs11-tests.patch | 45 ++++++++++++++++++++ |
12 |
.../glib-networking/glib-networking-2.31.6.ebuild | 14 ++++-- |
13 |
2 files changed, 54 insertions(+), 5 deletions(-) |
14 |
|
15 |
diff --git a/net-libs/glib-networking/files/skip-broken-assert-in-pkcs11-tests.patch b/net-libs/glib-networking/files/skip-broken-assert-in-pkcs11-tests.patch |
16 |
new file mode 100644 |
17 |
index 0000000..18b815e |
18 |
--- /dev/null |
19 |
+++ b/net-libs/glib-networking/files/skip-broken-assert-in-pkcs11-tests.patch |
20 |
@@ -0,0 +1,45 @@ |
21 |
+From b35f613474c3eb1f037191b29976527cf27807dd Mon Sep 17 00:00:00 2001 |
22 |
+From: Priit Laes <plaes@×××××.org> |
23 |
+Date: Sun, 29 Jan 2012 11:31:04 +0200 |
24 |
+Subject: [PATCH] Skip broken assert in pkcs11 tests |
25 |
+ |
26 |
+https://bugzilla.gnome.org/show_bug.cgi?id=668945 |
27 |
+--- |
28 |
+ tls/tests/pkcs11-pin.c | 6 ++++++ |
29 |
+ 1 files changed, 6 insertions(+), 0 deletions(-) |
30 |
+ |
31 |
+diff --git a/tls/tests/pkcs11-pin.c b/tls/tests/pkcs11-pin.c |
32 |
+index d4051f9..250307b 100644 |
33 |
+--- a/tls/tests/pkcs11-pin.c |
34 |
++++ b/tls/tests/pkcs11-pin.c |
35 |
+@@ -101,13 +101,17 @@ test_set_get_value (TestPin *test, |
36 |
+ |
37 |
+ value = g_tls_password_get_value (test->pin, &n_value); |
38 |
+ g_assert_cmpuint (n_value, ==, 6); |
39 |
++#if 0 |
40 |
+ g_assert_cmpstr ((const gchar *)value, ==, "secret"); |
41 |
++#endif |
42 |
+ |
43 |
+ g_tls_password_set_value (test->pin, (const guchar *)"other", 5); |
44 |
+ |
45 |
+ value = g_tls_password_get_value (test->pin, &n_value); |
46 |
+ g_assert_cmpuint (n_value, ==, 5); |
47 |
++#if 0 |
48 |
+ g_assert_cmpstr ((const gchar *)value, ==, "other"); |
49 |
++#endif |
50 |
+ } |
51 |
+ |
52 |
+ static void |
53 |
+@@ -124,7 +128,9 @@ test_internal_pin (TestPin *test, |
54 |
+ |
55 |
+ value = p11_kit_pin_get_value (pin, &n_value); |
56 |
+ g_assert_cmpuint (n_value, ==, 6); |
57 |
++#if 0 |
58 |
+ g_assert_cmpstr ((const gchar *)value, ==, "secret"); |
59 |
++#endif |
60 |
+ |
61 |
+ p11_kit_pin_unref (pin); |
62 |
+ } |
63 |
+-- |
64 |
+1.7.8.4 |
65 |
+ |
66 |
|
67 |
diff --git a/net-libs/glib-networking/glib-networking-2.31.6.ebuild b/net-libs/glib-networking/glib-networking-2.31.6.ebuild |
68 |
index 10a0261..84959b4 100644 |
69 |
--- a/net-libs/glib-networking/glib-networking-2.31.6.ebuild |
70 |
+++ b/net-libs/glib-networking/glib-networking-2.31.6.ebuild |
71 |
@@ -14,12 +14,14 @@ HOMEPAGE="http://git.gnome.org/browse/glib-networking/" |
72 |
LICENSE="LGPL-2" |
73 |
SLOT="0" |
74 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" |
75 |
-IUSE="+gnome +libproxy +ssl test" # pkcs11 |
76 |
+IUSE="+gnome +libproxy pkcs11 +ssl test" |
77 |
|
78 |
-# pkcs support requires gnutls-2.12.8, p11-kit-0.8 |
79 |
RDEPEND=">=dev-libs/glib-2.31.6:2 |
80 |
gnome? ( gnome-base/gsettings-desktop-schemas ) |
81 |
libproxy? ( >=net-libs/libproxy-0.4.6-r3 ) |
82 |
+ pkcs11? ( |
83 |
+ >=app-crypt/p11-kit-0.8 |
84 |
+ >=net-libs/gnutls-2.12.8[pkcs11] ) |
85 |
ssl? ( |
86 |
app-misc/ca-certificates |
87 |
>=net-libs/gnutls-2.11.0 ) |
88 |
@@ -32,7 +34,10 @@ DEPEND="${RDEPEND} |
89 |
# eautoreconf needs >=sys-devel/autoconf-2.65:2.5 |
90 |
|
91 |
src_prepare() { |
92 |
+ # Applied upstream |
93 |
epatch "${FILESDIR}/tls-async-crasher.patch" |
94 |
+ # https://bugzilla.gnome.org/show_bug.cgi?id=668945 |
95 |
+ epatch "${FILESDIR}/skip-broken-assert-in-pkcs11-tests.patch" |
96 |
} |
97 |
|
98 |
pkg_setup() { |
99 |
@@ -43,9 +48,8 @@ pkg_setup() { |
100 |
--with-ca-certificates="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt |
101 |
$(use_with gnome gnome-proxy) |
102 |
$(use_with libproxy) |
103 |
- $(use_with ssl gnutls) |
104 |
- --without-pkcs11" |
105 |
- #$(use_with pkcs11 pkcs11) |
106 |
+ $(use_with pkcs11) |
107 |
+ $(use_with ssl gnutls)" |
108 |
} |
109 |
|
110 |
src_test() { |