[OE-core] [PATCH v3 1/3] staging.bbclass: Install ${datadir}/fonts/ into sysroots
Richard Tollerton
rich.tollerton at ni.com
Wed Feb 4 09:01:20 UTC 2015
"Burton, Ross" <ross.burton at intel.com> writes:
> 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.
Thanks, I was not aware of this facility. I'll get a patch put together
using this (SYSROOT_PREPROCESS_FUNCS) approach.
> Ross
--
Richard Tollerton <rich.tollerton at ni.com>
More information about the Openembedded-core
mailing list