Skip to content

Commit e9875e4

Browse files
committed
fix pyopenssl as well (and fix bad patch on libxslt)
1 parent 392087b commit e9875e4

File tree

3 files changed

+31
-4
lines changed

3 files changed

+31
-4
lines changed

recipes/libxslt/recipe.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ BUILD_libxslt=$BUILD_PATH/libxslt/$(get_directory $URL_libxslt)
88
RECIPE_libxslt=$RECIPES_PATH/libxslt
99

1010
function prebuild_libxslt() {
11+
cd $BUILD_libxslt
1112
if [ -f .patched ]; then
1213
return
1314
fi
14-
15-
cd $BUILD_libxslt
1615
try patch -p1 < $RECIPE_libxslt/fix-dlopen.patch
1716
touch .patched
1817
}

recipes/pyopenssl/fix-dlfcn.patch

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
--- pyOpenSSL-0.13.orig/OpenSSL/__init__.py 2011-09-02 17:46:13.000000000 +0200
2+
+++ pyOpenSSL-0.13/OpenSSL/__init__.py 2013-07-29 17:20:15.750079894 +0200
3+
@@ -12,6 +12,11 @@
4+
except AttributeError:
5+
from OpenSSL import crypto
6+
else:
7+
+ # XXX android fix
8+
+ # linux: RTLD_NOW (0x2) | RTLD_GLOBAL (0x100 / 256)
9+
+ # android: RTLD_NOW (0x0) | RTLD_GLOBAL (0x2)
10+
+ flags = 0x2
11+
+ '''
12+
try:
13+
import DLFCN
14+
except ImportError:
15+
@@ -31,6 +36,7 @@
16+
else:
17+
flags = DLFCN.RTLD_NOW | DLFCN.RTLD_GLOBAL
18+
del DLFCN
19+
+ '''
20+
21+
sys.setdlopenflags(flags)
22+
from OpenSSL import crypto

recipes/pyopenssl/recipe.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,18 @@
33
VERSION_pyopenssl=0.13
44
URL_pyopenssl=http://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-$VERSION_pyopenssl.tar.gz
55
DEPS_pyopenssl=(openssl python)
6-
MD5_pyopenssl= 767bca18a71178ca353dff9e10941929
6+
MD5_pyopenssl=767bca18a71178ca353dff9e10941929
77
BUILD_pyopenssl=$BUILD_PATH/pyopenssl/$(get_directory $URL_pyopenssl)
88
RECIPE_pyopenssl=$RECIPES_PATH/pyopenssl
99

1010
function prebuild_pyopenssl() {
11-
true
11+
cd $BUILD_pyopenssl
12+
if [ -f .patched ]; then
13+
return
14+
fi
15+
16+
try patch -p1 < $RECIPE_pyopenssl/fix-dlfcn.patch
17+
touch .patched
1218
}
1319

1420
function build_pyopenssl() {

0 commit comments

Comments
 (0)