<?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>8547</bug_id>
          
          <creation_ts>2015-10-20 12:04:34 +0000</creation_ts>
          <short_desc>update_icon_cache fails when using sstate and different build dir</short_desc>
          <delta_ts>2015-11-06 15:28:53 +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>graphics</component>
          <version>1.9</version>
          <rep_platform>All</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>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>costin.c.constantin</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          <qa_contact name="Alexandru Georgescu">alexandru.c.georgescu</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>55489</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-10-20 12:04:34 +0000</bug_when>
    <thetext>WARNING: The postinstall intercept hook &apos;update_icon_cache&apos; failed (exit code: 127)! See log for details!
WARNING: The postinstalls for the following packages will be postponed for first boot: adwaita-icon-theme sato-icon-theme connman-gnome
[log_check] WARNING: The postinstall intercept hook &apos;update_icon_cache&apos; failed (exit code: 127)! See log for details!
[log_check] WARNING: The postinstalls for the following packages will be postponed for first boot: adwaita-icon-theme sato-icon-theme connman-gnome

The problem appears to be that the intercept isn&apos;t using the right paths.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55490</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-10-20 12:48:59 +0000</bug_when>
    <thetext>And indeed the update_icon_cache intercept on a developer&apos;s machine that used sstate from the autobuilder has this:

STAGING_LIBDIR_NATIVE=/home/pokybuild/yocto-autobuilder/yocto-worker/ptest-x86/build/build/tmp/sysroots/x86_64-linux/usr/lib</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55526</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-10-20 16:35:45 +0000</bug_when>
    <thetext>Problem: the postinst has hard-coded the sysroot location but the postinst isn&apos;t mangled when building an image from sstate packages.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55827</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-10-27 13:54:56 +0000</bug_when>
    <thetext>Fixed in oe-core 189d6232a2a9eb7192887b60f05b6643414a4ec6.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56297</commentid>
    <comment_count>4</comment_count>
    <who name="Costin">costin.c.constantin</who>
    <bug_when>2015-11-06 15:28:53 +0000</bug_when>
    <thetext>Verified on latest master hash 9f734a262720d3f68f47854dd1c18da8e131bbfe on an Ubuntu 15.04 machine

Steps performed (thanks Ross):
1)source oe-init-build-env 1build &amp;&amp; bitbake gdk-pixbuf -c cleansstate
2)bitbake core-image-sato
3)rm -rf 1build/
4)source oe-init-build-env 2build
5)bitbake core-image-sato

in my setup i used a common sstate dir by having:
SSTATE_DIR ?= &quot;/media/sstate&quot;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>