summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2012-05-16 00:48:37 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2012-05-16 00:48:37 +0000
commit6613cfcbd75c6a75c4cd8fea8c74ca13ae7f4a0f (patch)
tree77c13c19f2ee998bc971056a20637a773da6031f /app-pda/libimobiledevice
parentunmask some xorg-drivers useflags (diff)
downloadhistorical-6613cfcbd75c6a75c4cd8fea8c74ca13ae7f4a0f.tar.gz
historical-6613cfcbd75c6a75c4cd8fea8c74ca13ae7f4a0f.tar.bz2
historical-6613cfcbd75c6a75c4cd8fea8c74ca13ae7f4a0f.zip
Upstream patch for "fix openssl initialization and handle error to avoid crash". Since Cython 0.16 is not supported yet, avoid bailing out when it's installed wrt #414063.
Package-Manager: portage-2.2.0_alpha105/cvs/Linux x86_64
Diffstat (limited to 'app-pda/libimobiledevice')
-rw-r--r--app-pda/libimobiledevice/ChangeLog8
-rw-r--r--app-pda/libimobiledevice/Manifest19
-rw-r--r--app-pda/libimobiledevice/files/libimobiledevice-1.1.4-openssl.patch49
-rw-r--r--app-pda/libimobiledevice/libimobiledevice-1.1.4.ebuild15
4 files changed, 85 insertions, 6 deletions
diff --git a/app-pda/libimobiledevice/ChangeLog b/app-pda/libimobiledevice/ChangeLog
index 8774e6881a49..efb148b007fd 100644
--- a/app-pda/libimobiledevice/ChangeLog
+++ b/app-pda/libimobiledevice/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-pda/libimobiledevice
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-pda/libimobiledevice/ChangeLog,v 1.28 2012/05/03 20:20:59 jdhore Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-pda/libimobiledevice/ChangeLog,v 1.29 2012/05/16 00:48:36 ssuominen Exp $
+
+ 16 May 2012; Samuli Suominen <ssuominen@gentoo.org>
+ libimobiledevice-1.1.4.ebuild, +files/libimobiledevice-1.1.4-openssl.patch:
+ Upstream patch for "fix openssl initialization and handle error to avoid
+ crash". Since Cython 0.16 is not supported yet, avoid bailing out when it's
+ installed wrt #414063.
03 May 2012; Jeff Horelick <jdhore@gentoo.org> libimobiledevice-1.1.1.ebuild,
libimobiledevice-1.1.4.ebuild:
diff --git a/app-pda/libimobiledevice/Manifest b/app-pda/libimobiledevice/Manifest
index 14c5e1a706da..b8a9a9a7aee7 100644
--- a/app-pda/libimobiledevice/Manifest
+++ b/app-pda/libimobiledevice/Manifest
@@ -1,6 +1,21 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX libimobiledevice-1.1.4-openssl.patch 1375 RMD160 ae077ef737b912dfa2907d87bda73933c75498b2 SHA1 095c70e9b693bbc9608a7919db5419a18240b764 SHA256 014125ba0d2638de262c8b2deb86ea3201c90107714cc3af468aaf0f7a720392
DIST libimobiledevice-1.1.1.tar.bz2 459976 RMD160 7cc2860efc3b7d14686b776e6e9a5237804b3fc4 SHA1 eb81cb8c66beb68987fbc4126e9ca84cd19199c9 SHA256 c544d7bf0e7d6a97f3c446b2fb4597f19aac7b184ea806e16cd6a7852fd25f67
DIST libimobiledevice-1.1.4.tar.bz2 508371 RMD160 ad90beb4b6deaf211e8ea0a3e7d73e0a5ef9b6d3 SHA1 d59d9751d9f792e8674cd87c91005d431bf56065 SHA256 67499cfaa6172f566ee6b0783605acffe484fb7ddc3b09881ab7ac58667ee5b8
EBUILD libimobiledevice-1.1.1.ebuild 1586 RMD160 708322ed85351d0fd168827801d5f718e47b16b5 SHA1 fa985809a5fa8fed947fa85add486cd99f149b6a SHA256 c2d54971760a08c5d4e4b12e000f795be8910c107cbb7127f26bd849117551c6
-EBUILD libimobiledevice-1.1.4.ebuild 1237 RMD160 354d7d6cac02df9c58913d1d9a56185d32e3435f SHA1 8984848fbcca234622a96d47f632d74e473835b9 SHA256 443a76f51cea13c9a19505f0669e5685f35f9893fa5a8a9a2ea6760759e56a5b
-MISC ChangeLog 4198 RMD160 8cb07e1da91ed9593dfa5fb198aad4ed96b0e51c SHA1 b727cfa336a3d11847bfeb7d28a93ab19ab30f89 SHA256 b90ec72a37cdfbc82e0abdb5a94fff9dc4a7bb789e34cae3962ea551e91dccda
+EBUILD libimobiledevice-1.1.4.ebuild 1490 RMD160 372199d49e45f89ac8df2505fb133ea472ac7d25 SHA1 fc2ff95d6e4f9838d0ba3b002e3b4287bd9b48a9 SHA256 29efebbeb4e1b6b6e666ed6d11316e3d37b51a21a6b0a533a5225462ea65933b
+MISC ChangeLog 4512 RMD160 78556ba70681105f55ef41ef4194edda11ddf08e SHA1 dbc9c4bc14d0dd9e06c82dfe20ea314726decaca SHA256 2995a24bde3661f694fe4caf6f3b2e90b9a1ed50f321c4a47e3fdc1217a051c5
MISC metadata.xml 156 RMD160 6a6d0f6bfe83e3a54c2d72444564ed6ab19857fe SHA1 5b9cb277159d763c133920e483df8d3d587cf7e2 SHA256 7f72b73f6e0d6e26603d85e52cca524711faddf6b516640104c3b82aab4754fb
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.19 (GNU/Linux)
+
+iQEcBAEBAgAGBQJPsvjBAAoJEEdUh39IaPFNtdkH/16sgwmI7JMDJV+M7QrzIjCo
+eVT2Fz1WkNM5HQmtcB3Ciq1LXJ7cPbyxSrFPNz/JMWkp30dIsmy3yLkW4T8IDgLM
+02SI4X/vlu2etmiBaxTV8KFKbiTMxifXeGOHHGlvXd8VH9qfbJzttEqyNmVfn0PY
+81GW1XQeFnFCN0ADckP6oFeKmz0F1IRZ5CLH4IoREXp0KjgrLF1AxZE3L6DrbLyD
+dTjvRHExyKnJUmteRGB72dlwf4zgPTNO1ucVOW7BbRBZ2/ub/X0futHRgxa26rcQ
+ZTSOR+xxEOLQFSn5xhdC+ZO4pwrRWN6E7GLleec6y9Am3UTwXE0nuA+UXgrBdns=
+=Hn7k
+-----END PGP SIGNATURE-----
diff --git a/app-pda/libimobiledevice/files/libimobiledevice-1.1.4-openssl.patch b/app-pda/libimobiledevice/files/libimobiledevice-1.1.4-openssl.patch
new file mode 100644
index 000000000000..dbb052c04080
--- /dev/null
+++ b/app-pda/libimobiledevice/files/libimobiledevice-1.1.4-openssl.patch
@@ -0,0 +1,49 @@
+From 54dad58468a9879fb44aff0d760bbd6c3288b812 Mon Sep 17 00:00:00 2001
+From: Nikias Bassen
+Date: Wed, 18 Apr 2012 15:07:04 +0000
+Subject: idevice: fix openssl initialization and handle error to avoid crash
+
+---
+diff --git a/src/idevice.c b/src/idevice.c
+index 91d67e6..a1cc013 100644
+--- a/src/idevice.c
++++ b/src/idevice.c
+@@ -559,6 +559,7 @@ static void internal_ssl_cleanup(ssl_data_t ssl_data)
+ if (ssl_data->ctx) {
+ SSL_CTX_free(ssl_data->ctx);
+ }
++ openssl_init_done = 0;
+ #else
+ if (ssl_data->session) {
+ gnutls_deinit(ssl_data->session);
+@@ -667,6 +668,11 @@ idevice_error_t idevice_connection_enable_ssl(idevice_connection_t connection)
+ }
+
+ /* Set up OpenSSL */
++ if (openssl_init_done == 0) {
++ SSL_library_init();
++ openssl_init_done = 1;
++ }
++
+ BIO *ssl_bio = BIO_new(BIO_s_socket());
+ if (!ssl_bio) {
+ debug_info("ERROR: Could not create SSL bio.");
+@@ -674,11 +680,12 @@ idevice_error_t idevice_connection_enable_ssl(idevice_connection_t connection)
+ }
+ BIO_set_fd(ssl_bio, (int)(long)connection->data, BIO_NOCLOSE);
+
+- if (openssl_init_done == 0) {
+- SSL_library_init();
+- openssl_init_done = 1;
+- }
+ SSL_CTX *ssl_ctx = SSL_CTX_new(SSLv3_method());
++ if (ssl_ctx == NULL) {
++ debug_info("ERROR: Could not create SSL context.");
++ BIO_free(ssl_bio);
++ return ret;
++ }
+
+ BIO* membp;
+ X509* rootCert = NULL;
+--
+cgit v0.8.3.1-34-gbf3d
diff --git a/app-pda/libimobiledevice/libimobiledevice-1.1.4.ebuild b/app-pda/libimobiledevice/libimobiledevice-1.1.4.ebuild
index 5b7893350333..4522ced08211 100644
--- a/app-pda/libimobiledevice/libimobiledevice-1.1.4.ebuild
+++ b/app-pda/libimobiledevice/libimobiledevice-1.1.4.ebuild
@@ -1,10 +1,10 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-pda/libimobiledevice/libimobiledevice-1.1.4.ebuild,v 1.2 2012/05/03 20:20:59 jdhore Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-pda/libimobiledevice/libimobiledevice-1.1.4.ebuild,v 1.3 2012/05/16 00:48:36 ssuominen Exp $
EAPI=4
PYTHON_DEPEND="python? 2:2.7"
-inherit python
+inherit eutils python
DESCRIPTION="Support library to communicate with Apple iPhone/iPod Touch devices"
HOMEPAGE="http://www.libimobiledevice.org/"
@@ -25,7 +25,7 @@ RDEPEND=">=app-pda/libplist-1.8-r1[python?]
!gnutls? ( dev-libs/openssl:0 )"
DEPEND="${RDEPEND}
virtual/pkgconfig
- python? ( >=dev-python/cython-0.13 )"
+ python? ( >=dev-python/cython-0.14.1 )"
DOCS="AUTHORS NEWS README"
@@ -37,6 +37,8 @@ pkg_setup() {
}
src_prepare() {
+ epatch "${FILESDIR}"/${P}-openssl.patch
+
>py-compile
}
@@ -44,6 +46,13 @@ src_configure() {
local myconf='--disable-static'
use python || myconf+=' --without-cython'
use gnutls && myconf+=' --disable-openssl'
+
+ if has_version '~dev-python/cython-0.16'; then
+ myconf+=' --without-cython'
+ ewarn "Disabling Cython support because 0.16 is not supported yet."
+ ewarn "See, http://bugs.gentoo.org/414063"
+ fi
+
econf ${myconf}
}