<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 3 February 2015 at 00:47, Richard Tollerton <span dir="ltr"><<a href="mailto:rich.tollerton@ni.com" target="_blank">rich.tollerton@ni.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":4oi" class="a3s" style="overflow:hidden">font-util installs encoding maps into /usr/share/fonts/X11. This path<br>
may not exist on the host (many distros install these into<br>
/usr/share/fonts/util) so they must exist in the sysroot in order for<br>
e.g. `pkg-config --variable=mapdir fontutil` to work correctly. However,<br>
currently /usr/share/fonts is explicitly not installed into sysroots, so<br>
the encoding maps were not getting found.<br>
<br>
Fix this by no longer deleting ${datadir}/fonts/ from sysroots.<br></div></blockquote></div><br>So the rationale for removing ${datadir}/fonts/ from staging is that it usually contains fonts, which are useless in the sysroot. Removing this means that fonts get staged when they're built, which means pointless copying of data and adds to the build time. In an image which has many megabyte of fonts, that's going to be noticeable.</div><div class="gmail_extra"><br></div><div class="gmail_extra">An alternative solution would be to explicitly stage the maps in the recipes that install them, see eg the tcl recipe that calls sysroot_stage_dir directly.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Ross</div></div>