<?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>8684</bug_id>
          
          <creation_ts>2015-11-12 00:27:40 +0000</creation_ts>
          <short_desc>Missing python-ast package in generate-menifest-2.7.py</short_desc>
          <delta_ts>2016-03-18 17:40:37 +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.0</version>
          <rep_platform>Other</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>major</bug_severity>
          <target_milestone>2.1 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kei Nohguchi">kei</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>benjamin.esquivel</cc>
    
    <cc>kei</cc>
    
    <cc>laurent.bonnans</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</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>56405</commentid>
    <comment_count>0</comment_count>
    <who name="Kei Nohguchi">kei</who>
    <bug_when>2015-11-12 00:27:40 +0000</bug_when>
    <thetext>scripts/contrib/python/generate-manifest-2.7.py doesn&apos;t expose the python-ast, Abstruct Syntax Trees[1], package.  One of our OpenSwitch[2] component, ops-ansible[3], requires that package to make the ansible python scripts run on our OpenSwitch target.

We mirror the poky environment and want to upstream the changes as much as possible, so that we can easily downstream it into our build system.

[1] https://docs.python.org/2/library/ast.html
[2] http://www.openswitch.net/
[3] https://review.openswitch.net/#/c/2260/1/yocto/openswitch/meta-distro-openswitch/recipes-ops/mgmt/ops-ansible.bb</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56408</commentid>
    <comment_count>1</comment_count>
    <who name="Kei Nohguchi">kei</who>
    <bug_when>2015-11-12 01:10:25 +0000</bug_when>
    <thetext>Here is the actual change request against our oe/poky mirror.

https://review.openswitch.net/#/c/2251/

As indicated in one of the review comment, I&apos;m now preparing to send the email to the OE maintainer but please let me know if I&apos;m not the right track.

Cheers,

Kei</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56409</commentid>
    <comment_count>2</comment_count>
    <who name="Kei Nohguchi">kei</who>
    <bug_when>2015-11-12 02:12:57 +0000</bug_when>
    <thetext>Added myself in Cc list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56411</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-11-12 10:05:18 +0000</bug_when>
    <thetext>That&apos;s certainly the right approach to splitting it out, but it is currently packaged in the &quot;everything else&quot; package, python-misc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56449</commentid>
    <comment_count>4</comment_count>
    <who name="Kei Nohguchi">kei</who>
    <bug_when>2015-11-12 19:09:50 +0000</bug_when>
    <thetext>Thank you, Ross, for confirming the change.

I&apos;ve also sent a patch to Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt; of OE.  I&apos;ll wait for his reply.

Kei Nohguchi &lt;kei@nohguchi.com&gt;
To: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
Cc: Kei Nohguchi &lt;kei@nohguchi.com&gt;
[PATCH] Fixes [YOCTO #8684] Add python-ast, Python Abstruct Syntax Tree package

In a meanwhile, I&apos;ll play with python-misc to get things done. :)

Cheers and have a wonderful day today!

(In reply to comment #3)
&gt; That&apos;s certainly the right approach to splitting it out, but it is currently
&gt; packaged in the &quot;everything else&quot; package, python-misc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56450</commentid>
    <comment_count>5</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-11-12 19:16:23 +0000</bug_when>
    <thetext>Patches need to go do the list to be reviewed in public, so can you resend that mail to the mailing list?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56452</commentid>
    <comment_count>6</comment_count>
    <who name="Kei Nohguchi">kei</who>
    <bug_when>2015-11-12 22:09:01 +0000</bug_when>
    <thetext>Thank you Ross!

I&apos;ve sent the patch to the OE-core, as below.

http://lists.openembedded.org/pipermail/openembedded-core/2015-November/112694.html

Cheers,

(In reply to comment #5)
&gt; Patches need to go do the list to be reviewed in public, so can you resend
&gt; that mail to the mailing list?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56455</commentid>
    <comment_count>7</comment_count>
    <who name="Kei Nohguchi">kei</who>
    <bug_when>2015-11-13 02:10:33 +0000</bug_when>
    <thetext>Hi Ross,

I&apos;ve tried this python-misc but when I made a image with python-misc package, instead of the python-ast package, I got different error saying &quot;ImportError: No module named compiler&quot;...

Since this is specific some ansible module issue, I think I&apos;ll work on OE-core and make the python-ast officially supported by the OE.

The patch is updated, as suggested by Chris Larson, and hopefully will be approved by OE-core.

http://patchwork.openembedded.org/patch/107551/
http://patchwork.openembedded.org/patch/107499/

Just FYI. 

debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
debug1: Sending command: /bin/sh -c &apos;LANG=C LC_CTYPE=C python&apos;
debug1: mux_client_request_session: master session id: 2
Traceback (most recent call last):
  File &quot;&lt;stdin&gt;&quot;, line 242, in &lt;module&gt;
ImportError: No module named compiler
debug1: client_input_channel_req: channel 2 rtype exit-status reply 0
debug1: channel 2: free: client-session, nchannels 3
debug1: channel 1: free: mux-control, nchannels 2


(In reply to comment #3)
&gt; That&apos;s certainly the right approach to splitting it out, but it is currently
&gt; packaged in the &quot;everything else&quot; package, python-misc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59732</commentid>
    <comment_count>8</comment_count>
    <who name="Laurent Bonnans">laurent.bonnans</who>
    <bug_when>2016-03-04 13:42:34 +0000</bug_when>
    <thetext>Hello,

As the &apos;ast&apos; module contains a small number of helpers for the low level &apos;_ast&apos; which is a builtin in python (https://docs.python.org/2/library/ast.html), perhaps it would suffice to add it to the core modules (&apos;python-core&apos;) instead of adding another small standalone package.

Also, it should probably be added to python3.x as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59797</commentid>
    <comment_count>9</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-03-08 17:02:28 +0000</bug_when>
    <thetext>A package for a single small source file that is basically required to use a builtin function doesn&apos;t seem very sensible.  I agree that it should be moved to core, patch incoming.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60039</commentid>
    <comment_count>10</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-03-16 21:58:48 +0000</bug_when>
    <thetext>oe-core 48bc643a4ebe74d0fa49fedbe7b0fd63fd0003e8 moves the ast libraries into -core.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60166</commentid>
    <comment_count>11</comment_count>
    <who name="Kei Nohguchi">kei</who>
    <bug_when>2016-03-18 17:40:37 +0000</bug_when>
    <thetext>Thank you for taking care of this!

Really appreciated!

Cheers,</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>