<?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>645</bug_id>
          
          <creation_ts>2011-01-06 21:22:22 +0000</creation_ts>
          <short_desc>wrong output of &quot;bitbake -e&quot;</short_desc>
          <delta_ts>2011-02-15 16:30:48 +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>1.0</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>major</bug_severity>
          <target_milestone>1.0 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lianhao Lu">lianhao.lu</reporter>
          <assigned_to name="Lianhao Lu">lianhao.lu</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>kevin.tian</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          <cf_verified>Program Management</cf_verified>
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>11427</commentid>
    <comment_count>0</comment_count>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2011-01-06 21:22:22 +0000</bug_when>
    <thetext>The current output of &quot;bitbake -e&quot; contains something not meeting the bash shell syntax requirement(see the excerpt below). This cause an parse error in the eclipse plugin of bitbake commander, which prevents the project wizard and recipe file editor to work properly. We need to modify the emit_var() function in bitbake/lib/bb/data.py to fix the followings:

1. add &quot;#&quot; to the beginning of each line in the comment paragraph.
2. add &quot;\&quot; to the end of each line if &lt;val&gt; contains multiple lines in A=&quot;&lt;val&gt;&quot;. 


Excerpt from &quot;bitbake -e&quot;
--------------------------------
# base_dep=def base_dep_prepend(d):
	#
	# Ideally this will check a flag so we will operate properly in
	# the case where host == build == target, for now we don&apos;t work in
	# that case though.
	#

	deps = &quot;&quot;
	# INHIBIT_DEFAULT_DEPS doesn&apos;t apply to the patch command.  Whether or  not
	# we need that built is the responsibility of the patch function / class, not
	# the application.
	if not bb.data.getVar(&apos;INHIBIT_DEFAULT_DEPS&apos;, d):
		if (bb.data.getVar(&apos;HOST_SYS&apos;, d, 1) !=
	     	    bb.data.getVar(&apos;BUILD_SYS&apos;, d, 1)):
			deps += &quot; virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}compilerlibs virtual/libc &quot;
	return deps

base_dep=&quot;def base_dep_prepend(d):
	#
	# Ideally this will check a flag so we will operate properly in
	# the case where host == build == target, for now we don&apos;t work in
	# that case though.
	#

	deps = \&quot;\&quot;
	# INHIBIT_DEFAULT_DEPS doesn&apos;t apply to the patch command.  Whether or  not
	# we need that built is the responsibility of the patch function / class, not
	# the application.
	if not bb.data.getVar(&apos;INHIBIT_DEFAULT_DEPS&apos;, d):
		if (bb.data.getVar(&apos;HOST_SYS&apos;, d, 1) !=
	     	    bb.data.getVar(&apos;BUILD_SYS&apos;, d, 1)):
			deps += \&quot; virtual/arm-poky-linux-gnueabi-gcc virtual/arm-poky-linux-gnueabi-compilerlibs virtual/libc \&quot;
	return deps&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11440</commentid>
    <comment_count>1</comment_count>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2011-01-09 19:54:00 +0000</bug_when>
    <thetext>Fixed in commit 6f454c10bcdd5245ea9297f5334fc56ac06dbdb9.

1. Added &quot;#&quot; to the beginning of each line if the comment contains
multiple lines.

2. Added &quot;\&quot; to the end of each line if the shell variable value
contains multiple lines.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11451</commentid>
    <comment_count>2</comment_count>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2011-01-11 18:39:56 +0000</bug_when>
    <thetext>verified in commit.

Now the output of bitbake -e can be parsed correctly by bitbake commander&apos;s simple shell parser.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11478</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-01-14 17:46:29 +0000</bug_when>
    <thetext>http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=6f454c10bcdd5245ea9297f5334fc56ac06dbdb9</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>