[OE-core] [PATCH v3 1/3] staging.bbclass: Install ${datadir}/fonts/ into sysroots

Burton, Ross ross.burton at intel.com
Tue Feb 3 19:47:24 UTC 2015


On 3 February 2015 at 00:47, Richard Tollerton <rich.tollerton at ni.com>
wrote:

> font-util installs encoding maps into /usr/share/fonts/X11. This path
> may not exist on the host (many distros install these into
> /usr/share/fonts/util) so they must exist in the sysroot in order for
> e.g. `pkg-config --variable=mapdir fontutil` to work correctly. However,
> currently /usr/share/fonts is explicitly not installed into sysroots, so
> the encoding maps were not getting found.
>
> Fix this by no longer deleting ${datadir}/fonts/ from sysroots.
>

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.

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.

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20150203/2b2f720d/attachment-0002.html>


More information about the Openembedded-core mailing list