Ticket #8035: python-ipv6.diff

File python-ipv6.diff, 1.3 KB (added by Cybjit <cybjit@…>, 5 years ago)

disable getaddrinfo check when cross-compiling, explicitly enable ipv6

  • lang/python/Makefile

    diff --git a/lang/python/Makefile b/lang/python/Makefile
    index dd8d883..3e530d3 100644
    a b MAKE_FLAGS:=\ 
    127127        HOSTPYTHON=./hostpython \ 
    128128        HOSTPGEN=./hostpgen 
    129129 
     130ENABLE_IPV6:= 
     131ifeq ($(CONFIG_IPV6),y) 
     132        ENABLE_IPV6 += --enable-ipv6 
     133endif 
     134 
    130135define Build/Configure 
    131136        -$(MAKE) -C $(PKG_BUILD_DIR) distclean 
    132137        (cd $(PKG_BUILD_DIR); autoreconf --force --install || exit 0) 
    define Build/Configure 
    140145                --without-cxx-main \ 
    141146                --with-threads \ 
    142147                --with-system-ffi \ 
     148                $(ENABLE_IPV6) \ 
    143149                ac_cv_lib_readline_readline=no \ 
    144150                ac_cv_have_chflags=no \ 
    145151                ac_cv_have_lchflags=no \ 
  • new file lang/python/patches/130-ipv6.patch

    diff --git a/lang/python/patches/130-ipv6.patch b/lang/python/patches/130-ipv6.patch
    new file mode 100644
    index 0000000..0aed6a6
    - +  
     1--- Python-2.6.5.orig/configure.in      2011-01-15 14:42:42.068656002 -0800 
     2+++ Python-2.6.5/configure.in   2011-01-15 15:18:39.668656002 -0800 
     3@@ -2951,7 +2951,7 @@ 
     4 buggygetaddrinfo=yes 
     5 ]) 
     6  
     7-if test "$buggygetaddrinfo" = "yes"; then 
     8+if test "$buggygetaddrinfo" = "yes" -a x"$cross_compiling" != "xyes"; then 
     9        if test "$ipv6" = "yes"; then 
     10                echo 'Fatal: You must get working getaddrinfo() function.' 
     11                echo '       or you can specify "--disable-ipv6"'.