<?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>5864</bug_id>
          
          <creation_ts>2014-02-21 15:36:29 +0000</creation_ts>
          <short_desc>.bbappend files with % in their name and &quot;python __anonymous () { ... }&quot; fails to parse</short_desc>
          <delta_ts>2014-09-17 15:44:28 +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>BitBake</product>
          <component>bitbake</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</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>1.6 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jacob Kroon">jacob.kroon</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>andrax.g.necula</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          <qa_contact name="Andra Necula">andrax.g.necula</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>40600</commentid>
    <comment_count>0</comment_count>
    <who name="Jacob Kroon">jacob.kroon</who>
    <bug_when>2014-02-21 15:36:29 +0000</bug_when>
    <thetext>When using &quot;python __anonymous () { ... }&quot; inside a .bbappend file using % in the name, bitbake spits out a parser error.

Build Configuration:
BB_VERSION        = &quot;1.21.1&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Fedora-20&quot;
TARGET_SYS        = &quot;arm-oe-linux-gnueabi&quot;
MACHINE           = &quot;wandboard-solo&quot;
DISTRO            = &quot;monkey&quot;
DISTRO_VERSION    = &quot;0.1&quot;
TUNE_FEATURES     = &quot;armv7a vfp neon callconvention-hard cortexa9&quot;
TARGET_FPU        = &quot;vfp-neon&quot;
meta-oe           = &quot;master:90045a49e50eb0177a8aee5cc318caf037ac603d&quot;
meta-qt5          = &quot;master:4375b28f7c70b033ee416df153498e9f76396025&quot;
meta              = &quot;master:43ac6e3216c5d985d6f90a28e727e397df616267&quot;
meta-fsl-arm      = &quot;master:6330afff669f68a6a152ac53802d060598ea1f8b&quot;
meta-fsl-arm-extra = &quot;master:9d517e9234e6c4c311133cf0b081488b69fd33b9&quot;

Example output using a simple mesa_%.bbappend:

python __anonymous () {
}

output is:

Loaded 1833 entries from dependency cache.
ERROR: Error in compiling python function in /home/jkroon/Projects/oe-devel/build/../meta-fsl-arm/recipes-graphics/mesa/mesa_%.bbappend:                                         | ETA:  --:--:--

The code lines resulting in this error were:
 *** 0001:def __anon_2__home_jkroon_Projects_oe_devel_build____meta_fsl_arm_recipes_graphics_mesa_mesa_%_bbappend(d):
     0002:
SyntaxError: invalid syntax (__anon_2__home_jkroon_Projects_oe_devel_build____meta_fsl_arm_recipes_graphics_mesa_mesa_%_bbappend, line 1)
ERROR: Error in compiling python function in /home/jkroon/Projects/oe-devel/build/../meta-fsl-arm/recipes-graphics/mesa/mesa_%.bbappend:

The code lines resulting in this error were:
 *** 0001:def __anon_2__home_jkroon_Projects_oe_devel_build____meta_fsl_arm_recipes_graphics_mesa_mesa_%_bbappend(d):
     0002:
SyntaxError: invalid syntax (__anon_2__home_jkroon_Projects_oe_devel_build____meta_fsl_arm_recipes_graphics_mesa_mesa_%_bbappend, line 1)
ERROR: Failed to parse recipe: /home/jkroon/Projects/oe-devel/build/../openembedded-core/meta/recipes-graphics/mesa/mesa_git.bb

Summary: There were 3 ERROR messages shown, returning a non-zero exit code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40601</commentid>
    <comment_count>1</comment_count>
    <who name="Jacob Kroon">jacob.kroon</who>
    <bug_when>2014-02-21 15:49:53 +0000</bug_when>
    <thetext>Using &quot;python () {}&quot; results in the same type of error:

ERROR: Error in compiling python function in /home/jkroon/Projects/oe-devel/build/../meta-fsl-arm/recipes-graphics/mesa/mesa_%.bbappend:                                         | ETA:  --:--:--

The code lines resulting in this error were:
 *** 0001:def __anon_2__home_jkroon_Projects_oe_devel_build____meta_fsl_arm_recipes_graphics_mesa_mesa_%_bbappend(d):
     0002:
SyntaxError: invalid syntax (__anon_2__home_jkroon_Projects_oe_devel_build____meta_fsl_arm_recipes_graphics_mesa_mesa_%_bbappend, line 1)
ERROR: Error in compiling python function in /home/jkroon/Projects/oe-devel/build/../meta-fsl-arm/recipes-graphics/mesa/mesa_%.bbappend:

The code lines resulting in this error were:
 *** 0001:def __anon_2__home_jkroon_Projects_oe_devel_build____meta_fsl_arm_recipes_graphics_mesa_mesa_%_bbappend(d):
     0002:
SyntaxError: invalid syntax (__anon_2__home_jkroon_Projects_oe_devel_build____meta_fsl_arm_recipes_graphics_mesa_mesa_%_bbappend, line 1)
ERROR: Failed to parse recipe: /home/jkroon/Projects/oe-devel/build/../openembedded-core/meta/recipes-graphics/mesa/mesa_git.bb

Summary: There were 3 ERROR messages shown, returning a non-zero exit code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40606</commentid>
    <comment_count>2</comment_count>
    <who name="Jacob Kroon">jacob.kroon</who>
    <bug_when>2014-02-21 19:34:44 +0000</bug_when>
    <thetext>Proposed fix here:
http://lists.openembedded.org/pipermail/bitbake-devel/2014-February/004415.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40631</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-02-24 12:44:05 +0000</bug_when>
    <thetext>Thanks for the patch! http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=f5a344441ac9a6e2d829948050a1ba4c118c3ef5</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45648</commentid>
    <comment_count>4</comment_count>
    <who name="Andra Necula">andrax.g.necula</who>
    <bug_when>2014-09-17 15:44:28 +0000</bug_when>
    <thetext>Hi
I re-tested the issue on my Ubuntu 14.04, with xserver-xf86-config_%_0.1.bbappend and I didn&apos;t reproduce the initial bug. But I get a parse error, I&apos;m not sure if this is the expected output:

ERROR: ParseError at /home/andra/fullpass/poky/meta-yocto-bsp/recipes-graphics/xorg-xserver/xserver-xf86-config_%_0.1.bbappend:2: unparsed line: &apos;python __anonymous () {}&apos;

commit a44006262cf3b810ec78b4cccd8076102a7a0f3e</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>