diff options
author | Koen Kooi <koen@dominion.thruhere.net> | 2011-11-02 11:32:35 +0100 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2011-11-02 13:00:02 +0100 |
commit | 02147ad225cced787bf3b1ab607fd38f8e132b47 (patch) | |
tree | 8a00d5dbd553f77f7bd04dd0884c658b757b3287 /meta-oe | |
parent | e2b5b7e2464c4ffe4b3c11a222d0760baad809dd (diff) | |
download | meta-openembedded-02147ad225cced787bf3b1ab607fd38f8e132b47.tar.gz |
python-tornado: add patch to fix crasher
socket.gaierror: [Errno 3] invalid value for ai_flags.
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-oe')
-rw-r--r-- | meta-oe/recipes-devtools/python/python-tornado/0001-disable-AI_ADDRCONFIG-flag.patch | 32 | ||||
-rw-r--r-- | meta-oe/recipes-devtools/python/python-tornado_git.bb | 6 |
2 files changed, 36 insertions, 2 deletions
diff --git a/meta-oe/recipes-devtools/python/python-tornado/0001-disable-AI_ADDRCONFIG-flag.patch b/meta-oe/recipes-devtools/python/python-tornado/0001-disable-AI_ADDRCONFIG-flag.patch new file mode 100644 index 000000000..a3efbcaac --- /dev/null +++ b/meta-oe/recipes-devtools/python/python-tornado/0001-disable-AI_ADDRCONFIG-flag.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From d7fb0a6ef3f3cbdfc1f21f5a67d54fa9d2c1e183 Mon Sep 17 00:00:00 2001 | ||
2 | From: Koen Kooi <koen@dominion.thruhere.net> | ||
3 | Date: Wed, 2 Nov 2011 11:07:24 +0100 | ||
4 | Subject: [PATCH] disable AI_ADDRCONFIG flag | ||
5 | |||
6 | Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> | ||
7 | |||
8 | Upstream-status: unknown | ||
9 | --- | ||
10 | tornado/netutil.py | 6 ------ | ||
11 | 1 files changed, 0 insertions(+), 6 deletions(-) | ||
12 | |||
13 | diff --git a/tornado/netutil.py b/tornado/netutil.py | ||
14 | index cfff0ba..c181f24 100644 | ||
15 | --- a/tornado/netutil.py | ||
16 | +++ b/tornado/netutil.py | ||
17 | @@ -238,12 +238,6 @@ def bind_sockets(port, address=None, family=socket.AF_UNSPEC, backlog=128): | ||
18 | if address == "": | ||
19 | address = None | ||
20 | flags = socket.AI_PASSIVE | ||
21 | - if hasattr(socket, "AI_ADDRCONFIG"): | ||
22 | - # AI_ADDRCONFIG ensures that we only try to bind on ipv6 | ||
23 | - # if the system is configured for it, but the flag doesn't | ||
24 | - # exist on some platforms (specifically WinXP, although | ||
25 | - # newer versions of windows have it) | ||
26 | - flags |= socket.AI_ADDRCONFIG | ||
27 | for res in socket.getaddrinfo(address, port, family, socket.SOCK_STREAM, | ||
28 | 0, flags): | ||
29 | af, socktype, proto, canonname, sockaddr = res | ||
30 | -- | ||
31 | 1.7.2.5 | ||
32 | |||
diff --git a/meta-oe/recipes-devtools/python/python-tornado_git.bb b/meta-oe/recipes-devtools/python/python-tornado_git.bb index b630785c5..11cad0ce1 100644 --- a/meta-oe/recipes-devtools/python/python-tornado_git.bb +++ b/meta-oe/recipes-devtools/python/python-tornado_git.bb | |||
@@ -3,9 +3,11 @@ LICENSE = "Apache" | |||
3 | LIC_FILES_CHKSUM = "file://README;md5=e7fb9954003d7cd93322ccf282210d1c" | 3 | LIC_FILES_CHKSUM = "file://README;md5=e7fb9954003d7cd93322ccf282210d1c" |
4 | 4 | ||
5 | PV = "2.1.1" | 5 | PV = "2.1.1" |
6 | PR = "r2" | 6 | PR = "r3" |
7 | SRCREV = "066a0c38fb819419b8422980b61a0fd2f6ee4739" | 7 | SRCREV = "066a0c38fb819419b8422980b61a0fd2f6ee4739" |
8 | SRC_URI = "git://github.com/facebook/tornado.git" | 8 | SRC_URI = "git://github.com/facebook/tornado.git \ |
9 | file://0001-disable-AI_ADDRCONFIG-flag.patch \ | ||
10 | " | ||
9 | 11 | ||
10 | S = "${WORKDIR}/git" | 12 | S = "${WORKDIR}/git" |
11 | 13 | ||