<?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>13222</bug_id>
          
          <creation_ts>2019-03-11 17:56:05 +0000</creation_ts>
          <short_desc>Host dependencies needed to rebuild psplash pngs</short_desc>
          <delta_ts>2021-11-11 12:31:13 +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>2.7</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>4.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Maxime Roussin-Bélanger">maxime.roussinbelanger</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>83254</commentid>
    <comment_count>0</comment_count>
    <who name="Maxime Roussin-Bélanger">maxime.roussinbelanger</who>
    <bug_when>2019-03-11 17:56:05 +0000</bug_when>
    <thetext>We saw multiple builds fails after we removed a useless dependency, libgtk2.0-0, because it&apos;s not mentioned in the required packages for the build host.

I think this is a bug, I don&apos;t think we should need to install libgtk2.0-0 to build...It should use the one in yocto, right? When trying to build our splash with a png image. We were greeted with this message:

Error calling convert script &apos;...../psplash/0.1+gitAUTOINC+2015f7073e-r15/git/make-image-header.sh&apos;

After I added some debugging information I got :

failed to load &quot;..../psplash/0.1+gitAUTOINC+2015f7073e-r15/ourlogo.png&quot;: Couldn\&apos;t recognize the image file format for file \&apos;..../psplash/0.1+gitAUTOINC+2015f7073e-r15/ourlogo.png\&apos;

When I restore libgtk2.0-0 with apt install, everything works.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83255</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-03-11 18:03:57 +0000</bug_when>
    <thetext>Yes if your splash image isn&apos;t a pre-generated .h then you need to add gdk-pixbuf-native as a build dependency.  We should document this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83256</commentid>
    <comment_count>2</comment_count>
    <who name="Maxime Roussin-Bélanger">maxime.roussinbelanger</who>
    <bug_when>2019-03-11 18:20:50 +0000</bug_when>
    <thetext>Looking at poky/meta/recipes-core/psplash/psplash_git.bb line ~43 (haspng = True), it&apos;s already taken care of. Is that not enough? When you say `build dependency` you mean a Yocto one or an apt-install on the build machine?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83257</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-03-11 19:55:01 +0000</bug_when>
    <thetext>So that *should* work.  Can you debug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83258</commentid>
    <comment_count>4</comment_count>
    <who name="Maxime Roussin-Bélanger">maxime.roussinbelanger</who>
    <bug_when>2019-03-11 20:41:07 +0000</bug_when>
    <thetext>Well I think it&apos;s pretty weird that : 

ldd MY_BUILD_DIR/tmp/sysroots-components/x86_64/gdk-pixbuf-native/usr/bin/gdk-pixbuf-csource.real
	linux-vdso.so.1 (0x00007ffc43bf8000)
	libgdk_pixbuf-2.0.so.0 =&gt; MY_BUILD_DIR/tmp/sysroots-components/x86_64/gdk-pixbuf-native/usr/bin/../lib/libgdk_pixbuf-2.0.so.0 (0x00007f4b57c2b000)
	libgmodule-2.0.so.0 =&gt; /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0 (0x00007f4b57a27000)
	libgio-2.0.so.0 =&gt; /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0 (0x00007f4b57691000)
	libgobject-2.0.so.0 =&gt; /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007f4b5743e000)
	libglib-2.0.so.0 =&gt; /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f4b5712a000)
	libpng16.so.16 =&gt; /usr/lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f4b56ef7000)
	libz.so.1 =&gt; /lib/x86_64-linux-gnu/libz.so.1 (0x00007f4b56cdd000)
	libm.so.6 =&gt; /lib/x86_64-linux-gnu/libm.so.6 (0x00007f4b569d9000)
	libpthread.so.0 =&gt; /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f4b567bc000)
	libc.so.6 =&gt; /lib/x86_64-linux-gnu/libc.so.6 (0x00007f4b5641d000)
	libdl.so.2 =&gt; /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f4b56219000)
	libselinux.so.1 =&gt; /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007f4b55ff1000)
	libresolv.so.2 =&gt; /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f4b55dda000)
	libmount.so.1 =&gt; /lib/x86_64-linux-gnu/libmount.so.1 (0x00007f4b55b8c000)
	libffi.so.6 =&gt; /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007f4b55983000)
	libpcre.so.3 =&gt; /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f4b55710000)
	MY_BUILD_DIR/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 =&gt; /lib64/ld-linux-x86-64.so.2 (0x00007f4b58054000)
	libblkid.so.1 =&gt; /lib/x86_64-linux-gnu/libblkid.so.1 (0x00007f4b554ca000)
	librt.so.1 =&gt; /lib/x86_64-linux-gnu/librt.so.1 (0x00007f4b552c2000)
	libuuid.so.1 =&gt; /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f4b550bd000)


I would like to know why that binary `gdk-pixbuf-csource.real` is dynamically link to my own rootfs, mostly...?

It seems that the `subprocess.call` doesn&apos;t respect the yocto shell environment?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83259</commentid>
    <comment_count>5</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-03-11 22:52:32 +0000</bug_when>
    <thetext>As you&apos;re not running that ldd from inside a devshell and on binaries in a constructed sysroot the ldd output will be wrong.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83260</commentid>
    <comment_count>6</comment_count>
    <who name="Maxime Roussin-Bélanger">maxime.roussinbelanger</who>
    <bug_when>2019-03-11 23:03:24 +0000</bug_when>
    <thetext>I would like to run the run.do_compile file but it&apos;s a python function and no environment.

How yocto handles the environment when replacing the do_* functions with python ones? Looking at the file (run.do_compile) there no environment variable set.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83267</commentid>
    <comment_count>7</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2019-03-14 14:47:32 +0000</bug_when>
    <thetext>Once this defect is resolved, consider adding a brief note to the docs so that others know that having to manually compile the -native package is required when generating the image.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83270</commentid>
    <comment_count>8</comment_count>
    <who name="Maxime Roussin-Bélanger">maxime.roussinbelanger</who>
    <bug_when>2019-03-14 20:01:49 +0000</bug_when>
    <thetext>I would like to reiteration that it has nothing to do with the -native package (in a way).

I had to manually install, on my desktop computer at work, `sudo apt-get install libgtk2.0-0`, source the bitbake environement and then start the bitbake build to get it working.

I proceeded to purge `libgtk2.0-0` from my system, cleaned by yocto build directory, then restarted the bitbake build resulting in a failure.

No one has to build the -native package manually, there is a bug somewhere...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91951</commentid>
    <comment_count>9</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2021-11-11 12:31:13 +0000</bug_when>
    <thetext>Can&apos;t replicate this with master.  My host machine has no libgtk installed, I added a png to SPLASH_IMAGES and it was converted successfully.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>