python: enabled IPv6 socket support
PATCH 1/1 python: enabled IPv6 socket support
From: vsergeev <[email protected]>
Modified python package Makefile to pass the configure option for IPv6 socket support if BR2_INET_IPV6 is set. Added patch to disable buggy_getaddrinfo test during configure when cross-compiling.
Signed-off-by Vanya Sergeev <[email protected]>
--- .../python-2.7-016-cross-compile-getaddrinfo.patch | 15 +++++++++++++++ package/python/python.mk | 4 ++++ 2 files changed, 19 insertions(+) create mode 100644 package/python/python-2.7-016-cross-compile-getaddrinfo.patch
package/python/python-2.7-016-cross-compile-getaddrinfo.patch new file +15 -0
@@ -0,0 +1,15 @@ +Disable buggy_getaddrinfo configure test when cross-compiling with IPv6 support + +Signed-off-by: Vanya Sergeev <[email protected]> + +--- python-2.7.2.orig/configure.in 2012-04-22 06:52:09.361809545 -0400 ++++ python-2.7.2/configure.in 2012-04-22 06:56:37.900634194 -0400 +@@ -3128,7 +3128,7 @@ + + AC_MSG_RESULT($ac_cv_buggy_getaddrinfo) + +-if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes ++if test $have_getaddrinfo = no || test "$cross_compiling" != "yes" -a "$ac_cv_buggy_getaddrinfo" = yes + then + if test $ipv6 = yes + then
package/python/python.mk +4 -0
@@ -55,6 +55,10 @@ HOST_PYTHON_DEPENDENCIES = host-expat host-zlib PYTHON_INSTALL_STAGING = YES +ifeq ($(BR2_INET_IPV6),y) +PYTHON_CONF_OPT += --enable-ipv6 +endif + ifeq ($(BR2_PACKAGE_PYTHON_READLINE),y) PYTHON_DEPENDENCIES += readline endif
Signature · 1 line
1.7.10
PATCH 1/1 python: enabled IPv6 socket support
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Vanya" == Vanya Sergeev <[email protected]> writes:
Vanya> From: vsergeev <[email protected]>
Vanya> Modified python package Makefile to pass the configure option Vanya> for IPv6 socket support if BR2_INET_IPV6 is set. Added patch to Vanya> disable buggy_getaddrinfo test during configure when Vanya> cross-compiling.
Committed exept for the --enable-ipv6 part which is now handled globally, thanks.
Signature · 1 line
Bye, Peter Korsgaard