<?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>1344</bug_id>
          
          <creation_ts>2011-08-05 01:01:20 +0000</creation_ts>
          <short_desc>[MULTILIB] qt4: some FILES_XXX variables&apos; names not prefixed</short_desc>
          <delta_ts>2011-08-15 17:17:24 +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>unspecified</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.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lianhao Lu">lianhao.lu</reporter>
          <assigned_to name="Ke Yu">ke.yu</assigned_to>
          <cc>dongxiao.xu</cc>
    
    <cc>ke.yu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>shane.wang</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>15244</commentid>
    <comment_count>0</comment_count>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2011-08-05 01:01:20 +0000</bug_when>
    <thetext>When building qt4 in multilib case, some FILES_xxx variables&apos; names are not prefixed by multilib.bbclass, which in turn causes packages like lib64-libqtxml4 are not generated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15309</commentid>
    <comment_count>1</comment_count>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2011-08-08 02:11:53 +0000</bug_when>
    <thetext>In the qt4.inc, it defines package content using something like the following way:

QT_BASE_NAME ?= &quot;qt4&quot;
PACKAGES += &quot;${QT_BASE_NAME}-tools ... ...&quot;
FILES_${QT_BASE_NAME}-tools = &quot; ... ...&quot;

It turns out that the current multilib.bbclass can not handle this kind of situation(using variable in variable names) correctly. Multilib.bbclass first searches the PACKAGES, and for each item &lt;pkg&gt; defined in the PACKAGES, it renames the FILES_&lt;pkg&gt; to FILES_&lt;mlprefix&gt;-&lt;pkg&gt;.

The whole process is happening in the anonymous python function when the variable name is not expanded. So when trying to rename FILES_qt4-tools to FILES_lib64-qt4-tools, there is no variable named FILES_qt4-tools, but only FILES_${QT_BASE_NAME}-tools. So the new variable FILES_lib64-qt4-tools is never got defined.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15311</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-08-08 06:13:22 +0000</bug_when>
    <thetext>Perhaps we should process PACKAGES unexpanded?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15450</commentid>
    <comment_count>3</comment_count>
    <who name="Ke Yu">ke.yu</who>
    <bug_when>2011-08-14 18:02:52 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; Perhaps we should process PACKAGES unexpanded?

meet other issue in qt4 when make PACKAGES unexpanded:

PACKAGES += &quot; ${OTHER_PACKAGES}&quot;
OTHER_PACKAGES = &quot;\
               ${QT_BASE_NAME}-tools \
               ${QT_BASE_NAME}-assistant \
               ${QT_BASE_NAME}-common \
               ${QT_BASE_NAME}-dbus \


since PACKAGES is unexpanded, multilib.bbclass will map PACKAGES to lib64-${OTHER_PACKAGES}, instead of lib64-${QT_BASE_NAME}-tools, lib64-${QT_BASE_NAME}-assistant, ..., which is not correct.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15464</commentid>
    <comment_count>4</comment_count>
    <who name="Ke Yu">ke.yu</who>
    <bug_when>2011-08-15 05:47:57 +0000</bug_when>
    <thetext>another approach is make change in qt4.inc. i.e. expand the QT_BASE_NAME when assign the package name</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15471</commentid>
    <comment_count>5</comment_count>
    <who name="Ke Yu">ke.yu</who>
    <bug_when>2011-08-15 17:17:24 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=16bbb3144cede1c4aaf70be1921b4290a45ae5eb</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>