"Burton, Ross" <[email protected]> writes: > On 3 February 2015 at 00:47, Richard Tollerton <[email protected]> > 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 <[email protected]> -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
