Skip to contentSkip to conversation

Make python aware of IPv6

PATCH New Dan McGregor 1 participant 2 messages Jun 3, 2013

lore
Share & tools
lore
#0 lore raw

I found that gateone would crash with a socket error when Python isn't compiled with IPv6 support. This patch enables it when DISTRO_FEATURES includes ipv6.

#1 lore raw

PATCH 1/1 python: enable IPv6 based on DISTRO_FEATURES

From: Dan McGregor <[email protected]>

Base this on DISTRO_FEATURES, because we don't want it unconditionally enabled.

---
 meta/recipes-devtools/python/python.inc | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-devtools/python/python.inc +1 -0
index d0ed55b..80609a8 100644
@@ -27,5 +27,6 @@ EXTRA_OECONF = "\
   --with-signal-module \
   --with-wctype-functions \
   --enable-shared \
+  --enable-ipv6=${@base_contains('DISTRO_FEATURES', 'ipv6', 'yes', 'no', d)} \
   ${PYTHONLSBOPTS} \
 "
Signature · 1 line
1.8.1.4