From patchwork Sun Apr 22 11:03:16 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vanya Sergeev X-Patchwork-Id: 154252 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 4F046B6FC4 for ; Sun, 22 Apr 2012 21:04:04 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 9B711101624; Sun, 22 Apr 2012 11:04:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GlXSYcZ4XRT3; Sun, 22 Apr 2012 11:03:59 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 98F9EFFBC1; Sun, 22 Apr 2012 11:03:59 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 5595B8F753 for ; Sun, 22 Apr 2012 11:03:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 42A188CB23 for ; Sun, 22 Apr 2012 11:03:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fMNq+DIAcEOi for ; Sun, 22 Apr 2012 11:03:56 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-iy0-f171.google.com (mail-iy0-f171.google.com [209.85.210.171]) by whitealder.osuosl.org (Postfix) with ESMTPS id 391D88CB08 for ; Sun, 22 Apr 2012 11:03:56 +0000 (UTC) Received: by iadj38 with SMTP id j38so30640292iad.16 for ; Sun, 22 Apr 2012 04:03:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=HOwS3gdzB77VSbT+dUlDA8IjIUSl1h67n790r7dVjnw=; b=yqZlbtDSgCzNgLnW6fvDByVgJLxE8MdTsVtGGa7wlx2ubI8AeaP9TV2dc2bhQvaLf/ qLUpSOGVyDk5HLHd+Vt3VDIzG8zMPhAfnInT5bArkOWqVyUEpbDxfwYj134jIvzQMYqh Bx59Gx/+5Xmepf2sS2HP0VWrizw2av+GCHhWNWMDlXi4sShvWrqm1DWmEVKUNf68u0GM jtSxiIFD+M1SVVGEd8UVdQ9plpTBie0PIfPMviKBQ/Pz1U7rzPRmVsRhwwKzLSj7oMP7 ArvHt/H1ASicjOFz+gLE+/G5d/CeuNAuMRhvI0TlH+lnGpOq7Gzt2/hOhrSnJSkGjaVw B1SA== Received: by 10.50.191.194 with SMTP id ha2mr2625454igc.69.1335092635476; Sun, 22 Apr 2012 04:03:55 -0700 (PDT) Received: from anteater-laptop.mit.edu (SENIOR-TWO-FORTY.MIT.EDU. [18.244.5.240]) by mx.google.com with ESMTPS id nq4sm15332341igc.5.2012.04.22.04.03.54 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 22 Apr 2012 04:03:55 -0700 (PDT) From: Vanya Sergeev To: buildroot@busybox.net Date: Sun, 22 Apr 2012 07:03:16 -0400 Message-Id: <1335092596-16077-1-git-send-email-vsergeev@gmail.com> X-Mailer: git-send-email 1.7.10 Subject: [Buildroot] [PATCH] python: enabled IPv6 socket support X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net From: vsergeev 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 --- .../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 diff --git a/package/python/python-2.7-016-cross-compile-getaddrinfo.patch b/package/python/python-2.7-016-cross-compile-getaddrinfo.patch new file mode 100644 index 0000000..dae3005 --- /dev/null +++ b/package/python/python-2.7-016-cross-compile-getaddrinfo.patch @@ -0,0 +1,15 @@ +Disable buggy_getaddrinfo configure test when cross-compiling with IPv6 support + +Signed-off-by: Vanya Sergeev + +--- 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 diff --git a/package/python/python.mk b/package/python/python.mk index 28e215c..705cb80 100644 --- a/package/python/python.mk +++ b/package/python/python.mk @@ -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