<?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>13896</bug_id>
          
          <creation_ts>2020-05-07 12:43:58 +0000</creation_ts>
          <short_desc>gtk-icon-cache.bbclass passes wrong parameter to update_gtk_icon_cache postinst intercept</short_desc>
          <delta_ts>2026-07-16 15:51:18 +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>oe-core other</component>
          <version>3.0.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86_64</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>backport 4.0.x</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.0.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="P. Payeur">ppayeur01</reporter>
          <assigned_to name="Yoann Congal">yoann.congal</assigned_to>
          <cc>paul</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>yoann.congal</cc>
          
          
          <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>87174</commentid>
    <comment_count>0</comment_count>
    <who name="P. Payeur">ppayeur01</who>
    <bug_when>2020-05-07 12:43:58 +0000</bug_when>
    <thetext>In function gtk_icon_cache_postrm of gtk-icon-cache.bbclass, the postinst intercept update_gtk_icon_cache is called as such:

$INTERCEPT_DIR/postinst_intercept update_gtk_icon_cache ${PKG} \
		mlprefix=${MLPREFIX} \
		libdir=${libdir}

However update_gtk_icon_cache uses libdir_native and not simply libdir:

# Update native pixbuf loaders
$STAGING_DIR_NATIVE/${libdir_native}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders --update-cache

I believe this is causing my build to fail at do_rootfs (note the empty path before gdk-pixbuf-2.0):

NOTE: &gt; Executing update_gtk_icon_cache intercept ...
NOTE: Exit code 127. Output:
/poky/build/tmp/work/f_k700-poky-linux/core-image-minimal-initramfs/1.0-r0/intercept_scripts-b582ac698982597bb7775956b7cea465d8048fffa61b521956dc159d64ad848c/update_gtk_icon_cache: line 10: /poky/build/tmp/work/f_k700-poky-linux/core-image-minimal-initramfs/1.0-r0/recipe-sysroot-native//gdk-pixbuf-2.0/gdk-pixbuf-query-loaders: No such file or directory

The change to libdir_native was introduced in this patch:

https://patchwork.openembedded.org/patch/106339/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104417</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-02-26 16:08:07 +0000</bug_when>
    <thetext>Might have been fixed. Ross to check.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105557</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2026-05-22 15:22:56 +0000</bug_when>
    <thetext>I didn&apos;t notice this was in the postrm, which is why I suspect nobody really noticed.  Patch incoming.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105558</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2026-05-22 16:05:19 +0000</bug_when>
    <thetext>Posted classes/gtk-icon-cache: fix libdir passed to the postrm intercept.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105957</commentid>
    <comment_count>4</comment_count>
    <who name="Yoann Congal">yoann.congal</who>
    <bug_when>2026-06-19 09:46:52 +0000</bug_when>
    <thetext>Merged as classes/gtk-icon-cache: fix libdir passed to the postrm intercept - openembedded-core - OpenEmbedded Core layer
https://git.openembedded.org/openembedded-core/commit/?id=92dd67114be325e019c149bddaf5f874f6917094

I plan to backport it to wrynose and scarthgap

Ross, if you think this should be closed for master, can you assign this to me so I can handle the backports for the stable branches?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105958</commentid>
    <comment_count>5</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2026-06-19 10:04:40 +0000</bug_when>
    <thetext>With pleasure.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106200</commentid>
    <comment_count>6</comment_count>
    <who name="Paul Barker">paul</who>
    <bug_when>2026-07-16 15:51:18 +0000</bug_when>
    <thetext>This has been backported:

- scarthgap: https://git.openembedded.org/openembedded-core/commit/?id=cd46a25fa3f7ffe5518c7c95f280a7760455aac8

- wrynose: https://git.openembedded.org/openembedded-core/commit/?a151ec50ba6281e1aa86fe5915df3f3f3b563b9c</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>