<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>11978</bug_id>
          
          <creation_ts>2017-08-25 02:46:33 +0000</creation_ts>
          <short_desc>python-native is being built without IPV6 enabled</short_desc>
          <delta_ts>2017-11-08 16:16:34 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>2.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.5 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Alejandro Hernandez">alejandro.hernandez</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>76151</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-08-25 02:46:33 +0000</bug_when>
    <thetext>Since we introduced DISTRO_FEATURES_NATIVE, we have been building python-native with ipv6 disabled, which leads to the following issue on one of my systems:

------------ snip ------------
ERROR: python-paho-mqtt-1.3.0-r0 do_compile: python setup.py build execution failed.
ERROR: python-paho-mqtt-1.3.0-r0 do_compile: Function failed: do_compile (log file is located at /home/paul/poky/poky/build-minnow/tmp/work/corei7-64-poky-linux/python-paho-mqtt/1.3.0-r0
/temp/log.do_compile.36362)
ERROR: Logfile of failure stored in: /home/paul/poky/poky/build-minnow/tmp/work/corei7-64-poky-linux/python-paho-mqtt/1.3.0-r0/temp/log.do_compile.36362
Log data follows:
| DEBUG: Executing shell function do_compile
| Download error on https://pypi.python.org/simple/pytest-runner/: getsockaddrarg: bad family -- Some packages may not be found!
| Couldn&apos;t find index page for &apos;pytest-runner&apos; (maybe misspelled?)
| Download error on https://pypi.python.org/simple/: getsockaddrarg: bad family -- Some packages may not be found!
| No local packages or working download links found for pytest-runner
| Traceback (most recent call last):
|   File &quot;setup.py&quot;, line 55, in &lt;module&gt;
|     setup_requires=setup_requirements
|   File &quot;/home/paul/poky/poky/build-minnow/tmp/work/corei7-64-poky-linux/python-paho-mqtt/1.3.0-r0/recipe-sysroot-native/usr/lib/python2.7/distutils/core.py&quot;, line 111, in setup
|     _setup_distribution = dist = klass(attrs)
|   File &quot;build/bdist.linux-x86_64/egg/setuptools/dist.py&quot;, line 325, in __init__
|   File &quot;build/bdist.linux-x86_64/egg/setuptools/dist.py&quot;, line 446, in fetch_build_eggs
|   File &quot;build/bdist.linux-x86_64/egg/pkg_resources/__init__.py&quot;, line 855, in resolve
|   File &quot;build/bdist.linux-x86_64/egg/pkg_resources/__init__.py&quot;, line 1127, in best_match
|   File &quot;build/bdist.linux-x86_64/egg/pkg_resources/__init__.py&quot;, line 1139, in obtain
|   File &quot;build/bdist.linux-x86_64/egg/setuptools/dist.py&quot;, line 518, in fetch_build_egg
|   File &quot;build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py&quot;, line 666, in easy_install
| distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse(&apos;pytest-runner&apos;)
| ERROR: python setup.py build execution failed.
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/paul/poky/poky/build-minnow/tmp/work/corei7-64-poky-linux/python-paho-mqtt/1.3.0-r0/temp/log.do_compile.36362)
ERROR: Task (/home/paul/poky/meta-openembedded/meta-python/recipes-devtools/python/python-paho-mqtt_1.3.0.bb:do_compile) failed with exit code &apos;1&apos;
------------ snip ------------

I&apos;m unsure as to whether we want to add ipv6 to the default value for DISTRO_FEATURES_NATIVE or change python.inc to not look at DISTRO_FEATURES for it in the native case, but we do need to do something.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76152</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-08-25 03:01:26 +0000</bug_when>
    <thetext>(One might ask why python-paho-mqtt is doing this stuff in do_compile, which is a legitimate question - but the bug still stands.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76817</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-09-14 05:57:14 +0000</bug_when>
    <thetext>I&apos;ve filed bug 12084 to cover downloading during do_compile, so to be clear this bug is just about the ipv6 enablement issue for python(3)-native. (python3-native may not suffer from this exact failure but we should still be enabling ipv6 as appropriate, assuming it has the option to do so of course.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78060</commentid>
    <comment_count>3</comment_count>
    <who name="Alejandro Hernandez">alejandro.hernandez</who>
    <bug_when>2017-11-08 16:16:34 +0000</bug_when>
    <thetext>Fixed here:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=8333c0a54d4f5ad0eec4f27d7afbf92192b5b128</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>