<?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>3691</bug_id>
          
          <creation_ts>2013-01-09 03:57:51 +0000</creation_ts>
          <short_desc>smart: meta-toolchain fail on do_populate_sdk</short_desc>
          <delta_ts>2013-01-22 05:03:41 +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>1.4</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.3 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="chnarius">chnarius</reporter>
          <assigned_to name="Mark Hatle">mark.hatle</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>liang.li2</cc>
    
    <cc>mark.hatle</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</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>28643</commentid>
    <comment_count>0</comment_count>
    <who name="chnarius">chnarius</who>
    <bug_when>2013-01-09 03:57:51 +0000</bug_when>
    <thetext>when running &apos;bitbake meta-toolchain&apos;, the below error appeared:

| Note: configuring RPM cross-install scriptlet_wrapper
| 
| Updating cache...               ######################################## [100%]
| 
| Saving cache...
| 
| Note: adding Smart RPM DB channel
| 
| Note: to be installed:  packagegroup-core-standalone-sdk-target-dbg@all packagegroup-core-standalone-sdk-target@all
| Loading cache...
| Updating cache...               ######################################## [100%]
| 
| Computing transaction...error: Can&apos;t install libc6-2.16-r20@ppc64e5500: no package provides /bin/sh
| 
| Saving cache...
| 
| DEBUG: Python function do_populate_sdk finished


there is no bash rpm generated in tmp/deploy/rpm/. The error not appeared before smart was introduced.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28720</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-01-10 15:40:31 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/meta/classes/populate_sdk_rpm.bbclass?id=019ba25654cd3ae63a6b6c0f2d67da520bf10bc6 has an interesting change:

- export INSTALL_PROVIDENAME_RPM=&quot;/bin/sh /bin/bash /usr/bin/env /usr/bin/perl pkgconfig pkgconfig(pkg-config)&quot;
+ export INSTALL_PROVIDENAME_RPM=&quot;&quot;

Why did this happen and are we not installing things into the SDK which we shouldn&apos;t now?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28724</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2013-01-10 15:48:08 +0000</bug_when>
    <thetext>The code was removed, because the target rootfs packages should have a complete set of dependencies contained within them.

While sh, bash, env and perl are not required to compile software within an SDK.  The pkgconfig items may be.

We can add sh, bash, env and perl back in... but why aren&apos;t these things available when building the packages.  This indicates that something is missing form the &apos;DEPENDS&apos; of the individual packages being placed into the SDK, which means a similar set could be missing from a target rootfs as well.  (Up to this point we have likely gotten lucky and other things built first properly depend on those items.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28796</commentid>
    <comment_count>3</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2013-01-14 06:25:29 +0000</bug_when>
    <thetext>no such error when run &quot;bitbake meta-toolchain&quot; after run &quot;bitbake core-image-sato-sdk&quot; in the same build directory with git master branch commit 53cc748b93e8af584557d6db5309c3e955182c5c.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28916</commentid>
    <comment_count>4</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2013-01-17 19:30:32 +0000</bug_when>
    <thetext>Proposed change is a partial revert of the patch mentioned in comment #1:


--- a/meta/classes/populate_sdk_rpm.bbclass
+++ b/meta/classes/populate_sdk_rpm.bbclass
@@ -43,7 +43,9 @@ populate_sdk_rpm () {
        export INSTALL_PACKAGES_RPM=&quot;${TOOLCHAIN_TARGET_TASK}&quot;
        export INSTALL_PACKAGES_ATTEMPTONLY_RPM=&quot;${TOOLCHAIN_TARGET_TASK_ATTEMPT
        export INSTALL_PACKAGES_LINGUAS_RPM=&quot;&quot;
-       export INSTALL_PROVIDENAME_RPM=&quot;&quot;
+       # We don&apos;t need any of these runtime items for the SDK, so
+       # just make the system assume they exist.
+       export INSTALL_PROVIDENAME_RPM=&quot;/bin/sh /bin/bash /usr/bin/env /usr/bin/perl pkgconfig&quot;
        export INSTALL_TASK_RPM=&quot;populate_sdk-target&quot;
        export INSTALL_COMPLEMENTARY_RPM=&quot;&quot;
        export INTERCEPT_DIR=${WORKDIR}/intercept_scripts


The only difference is the removal of the pkgconfig(pkg-config)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28918</commentid>
    <comment_count>5</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2013-01-17 19:37:53 +0000</bug_when>
    <thetext>*** Bug 3654 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28992</commentid>
    <comment_count>6</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2013-01-21 18:58:04 +0000</bug_when>
    <thetext>See commits:

oe-core 1edd44bed9e9829f7c2466928bc3f45be102b84b
oe-core 56a59ef12936dcc6464cf1d43dda6957a5aa8c65</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29012</commentid>
    <comment_count>7</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2013-01-22 05:03:41 +0000</bug_when>
    <thetext>no such error when run &quot;bitbake meta-toolchain&quot; with git master branch commit:37e025f6f9c410005e0f1dee0767e38eaec01cbd,related log below:
-------
...
NOTE: Running task 1846 of 1847 (ID: 7, /buildarea/poky.ubuntu.new1/poky/meta/recipes-core/meta/meta-toolchain.bb, do_populate_sdk)
NOTE: recipe meta-toolchain-1.0-r7: task do_populate_sdk: Started
NOTE: recipe meta-toolchain-1.0-r7: task do_populate_sdk: Succeeded
NOTE: Running noexec task 1847 of 1847 (ID: 11, /buildarea/poky.ubuntu.new1/poky/meta/recipes-core/meta/meta-toolchain.bb, do_build)
NOTE: Tasks Summary: Attempted 1847 tasks of which 1582 didn&apos;t need to be rerun and all succeeded.
-------
test host:opensuse 12.2 x86_64</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>