<?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>3394</bug_id>
          
          <creation_ts>2012-11-06 14:04:01 +0000</creation_ts>
          <short_desc>Different all architecture for some packagegroup recipes when building for e.g. arm and x86</short_desc>
          <delta_ts>2013-03-11 19:02:19 +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>core</component>
          <version>1.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>1.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Martin Jansa">Martin.Jansa</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>27255</commentid>
    <comment_count>0</comment_count>
    <who name="Martin Jansa">Martin.Jansa</who>
    <bug_when>2012-11-06 14:04:01 +0000</bug_when>
    <thetext>While building qemux86-64 and couple of armv7a and armv4t machines in the same tmpdir                                                                         
I got strange error in do_package:                                                                                                                            
                                                                                                                                                              
NOTE: recipe packagegroup-core-x11-1.0-r40: task do_package_write_ipk: Started                                                                                
ERROR: Error executing a python function in /OE/shr-core/openembedded-core/meta/recipes-graphics/packagegroups/packagegroup-core-x11.bb:                      
ExpansionError: Failure expanding variable SUMMARY, expression was ${SUMMARY} - Debugging files which triggered exception Exception: variable SUMMARY         
references itself!                                                                                                                                            
ERROR: The stack trace of python calls that resulted in this exception/failure was:                                                                           
ERROR:   File &quot;do_package_ipk&quot;, line 193, in &lt;module&gt;                                                                                                         
ERROR:                                                                                                                                                        
ERROR:   File &quot;do_package_ipk&quot;, line 96, in do_package_ipk                                                                                                    
ERROR:                                                                                                                                                        
ERROR:   File &quot;/OE/shr-core/bitbake/lib/bb/data_smart.py&quot;, line 293, in getVar                                                                                
ERROR:     return self.expand(value, var)                                                                                                                     
ERROR:                                                                                                                                                        
ERROR:   File &quot;/OE/shr-core/bitbake/lib/bb/data_smart.py&quot;, line 157, in expand                    
ERROR:     return self.expandWithRefs(s, varname).value                    
ERROR:                    
ERROR:   File &quot;/OE/shr-core/bitbake/lib/bb/data_smart.py&quot;, line 147, in expandWithRefs                    
ERROR:     raise ExpansionError(varname, s, exc)                    
ERROR:                    
ERROR: The code that was being executed was:                    
ERROR:      0189:        bb.utils.unlockfile(lf)                    
ERROR:      0190:                    
ERROR:      0191:                    
ERROR:      0192:                    
ERROR:  *** 0193:do_package_ipk(d)                    
ERROR:      0194:                    
ERROR: [From file: &apos;do_package_ipk&apos;, lineno: 193, function: &lt;module&gt;]                    
ERROR:      0092:                    if localdata.getVar(f) is None:                    
ERROR:      0093:                        raise KeyError(f)                    
ERROR:      0094:                # Special behavior for description...                    
ERROR:      0095:                if &apos;DESCRIPTION&apos; in fs:
ERROR:  *** 0096:                    summary = localdata.getVar(&apos;SUMMARY&apos;, True) or localdata.getVar(&apos;DESCRIPTION&apos;, True) or &quot;.&quot;
ERROR:      0097:                    description = localdata.getVar(&apos;DESCRIPTION&apos;, True) or &quot;.&quot;
ERROR:      0098:                    description = textwrap.dedent(description).strip()
ERROR:      0099:                    ctrlfile.write(&apos;Description: %s\n&apos; % summary)
ERROR:      0100:                    ctrlfile.write(&apos;%s\n&apos; % textwrap.fill(description, width=74, initial_indent=&apos; &apos;, subsequent_indent=&apos; &apos;))
ERROR: [From file: &apos;do_package_ipk&apos;, lineno: 96, function: do_package_ipk]
ERROR: Function failed: do_package_ipk
ERROR: Logfile of failure stored in: /OE/shr-core/tmp-eglibc/work/all-oe-linux-gnueabi/packagegroup-core-x11-1.0-r40/temp/log.do_package_write_ipk.24073
NOTE: recipe packagegroup-core-x11-1.0-r40: task do_package_write_ipk: Failed
ERROR: Task 2773 (/OE/shr-core/openembedded-core/meta/recipes-graphics/packagegroups/packagegroup-core-x11.bb, do_package_write_ipk) failed with exit code &apos;1&apos;

While looking in stamps directory I&apos;ve noticed that qemux86-64 was using different                                                                            
subdirectory then arm builds. packagegroup.bbclass does not inherit allarch.bbclass,                                                                          
only sets                                                                                                                                                     
PACKAGE_ARCH = &quot;all&quot;                                                                                                                                          
should it set also TARGET_OS?                                                                                                                                 
                                                                                                                                                              
OE nokia900@shr ~/shr-core/tmp-eglibc/stamps $ ls */packagegroup-core-x11-1*                                                                                  
all-oe-linux-gnueabi/packagegroup-core-x11-1.0-r40.do_build                                       
all-oe-linux-gnueabi/packagegroup-core-x11-1.0-r40.do_package_setscene     
all-oe-linux-gnueabi/packagegroup-core-x11-1.0-r40.do_package_write
all-oe-linux-gnueabi/packagegroup-core-x11-1.0-r40.do_populate_lic_setscene                               
all-oe-linux-gnueabi/packagegroup-core-x11-1.0-r40.do_populate_sysroot_setscene.nokia900
all-oe-linux-gnueabi/packagegroup-core-x11-1.0-r40.do_populate_sysroot_setscene.om-gta02
all-oe-linux-gnueabi/packagegroup-core-x11-1.0-r40.do_populate_sysroot_setscene.om-gta04
all-oe-linux-gnueabi/packagegroup-core-x11-1.0-r40.do_populate_sysroot_setscene.tuna
all-oe-linux/packagegroup-core-x11-1.0-r40.do_build
all-oe-linux/packagegroup-core-x11-1.0-r40.do_compile
all-oe-linux/packagegroup-core-x11-1.0-r40.do_configure
all-oe-linux/packagegroup-core-x11-1.0-r40.do_fetch   
all-oe-linux/packagegroup-core-x11-1.0-r40.do_install
all-oe-linux/packagegroup-core-x11-1.0-r40.do_package                                    
all-oe-linux/packagegroup-core-x11-1.0-r40.do_package.sigdata.63dc7a62d8e9740c34d18728830aed44
all-oe-linux/packagegroup-core-x11-1.0-r40.do_package_write                   
all-oe-linux/packagegroup-core-x11-1.0-r40.do_package_write_ipk_setscene                  
all-oe-linux/packagegroup-core-x11-1.0-r40.do_patch     
all-oe-linux/packagegroup-core-x11-1.0-r40.do_populate_lic                                                                      
all-oe-linux/packagegroup-core-x11-1.0-r40.do_populate_lic.sigdata.8451162b66b25e639ed440c09fbbf766
all-oe-linux/packagegroup-core-x11-1.0-r40.do_populate_sysroot_setscene.qemux86-64     
all-oe-linux/packagegroup-core-x11-1.0-r40.do_unpack                              
OE nokia900@shr ~/shr-core/tmp-eglibc/stamps $ ls */packagegroup-core-ssh-openssh*                                                           
all-oe-linux-gnueabi/packagegroup-core-ssh-openssh-1.0-r1.do_build        
all-oe-linux-gnueabi/packagegroup-core-ssh-openssh-1.0-r1.do_package_setscene
all-oe-linux-gnueabi/packagegroup-core-ssh-openssh-1.0-r1.do_package_write                                                                              
all-oe-linux-gnueabi/packagegroup-core-ssh-openssh-1.0-r1.do_populate_lic_setscene
all-oe-linux-gnueabi/packagegroup-core-ssh-openssh-1.0-r1.do_populate_sysroot_setscene.nokia900                                                               
all-oe-linux-gnueabi/packagegroup-core-ssh-openssh-1.0-r1.do_populate_sysroot_setscene.om-gta02
all-oe-linux-gnueabi/packagegroup-core-ssh-openssh-1.0-r1.do_populate_sysroot_setscene.om-gta04
all-oe-linux-gnueabi/packagegroup-core-ssh-openssh-1.0-r1.do_populate_sysroot_setscene.tuna
all-oe-linux/packagegroup-core-ssh-openssh-1.0-r1.do_build
all-oe-linux/packagegroup-core-ssh-openssh-1.0-r1.do_compile
all-oe-linux/packagegroup-core-ssh-openssh-1.0-r1.do_configure
all-oe-linux/packagegroup-core-ssh-openssh-1.0-r1.do_fetch
all-oe-linux/packagegroup-core-ssh-openssh-1.0-r1.do_install
all-oe-linux/packagegroup-core-ssh-openssh-1.0-r1.do_package
all-oe-linux/packagegroup-core-ssh-openssh-1.0-r1.do_package.sigdata.c398f583265815c38b5295be14baf99e
all-oe-linux/packagegroup-core-ssh-openssh-1.0-r1.do_package_write
all-oe-linux/packagegroup-core-ssh-openssh-1.0-r1.do_package_write_ipk_setscene
all-oe-linux/packagegroup-core-ssh-openssh-1.0-r1.do_patch
all-oe-linux/packagegroup-core-ssh-openssh-1.0-r1.do_populate_lic
all-oe-linux/packagegroup-core-ssh-openssh-1.0-r1.do_populate_lic.sigdata.adbcefb359671185ec720b654b496707
all-oe-linux/packagegroup-core-ssh-openssh-1.0-r1.do_populate_sysroot_setscene.qemux86-64
all-oe-linux/packagegroup-core-ssh-openssh-1.0-r1.do_unpack

Only those 2 recipes seem to have this problem (from what I&apos;m building here)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30628</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-03-11 19:02:19 +0000</bug_when>
    <thetext>packagegroup inherits allarch now (as of a few weeks after this bug was filed), and allarch sets TARGET_OS, so this issue should now be fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>