[OE-core] [PATCH 0/3] xorg-font: stop trying to use build machine's encoding maps

Richard Tollerton rich.tollerton at ni.com
Thu Dec 18 00:52:13 UTC 2014


Several xorg-font builds were added to meta-oe recently. These builds tend to
fail on several Linux distros because they referenced encoding maps (e.g.
map-ISO8859-1) at native paths outside the sysroot, which don't exist; the build
expects /usr/share/fonts/X11/util/map-ISO8859-1 to exist, but the distro
actually installed it at /usr/share/fonts/util/map-ISO8859-1. Of course, the
correct behavior is for the build to reference the appropriate path under the
appropriate sysroot.

There are two different root causes. The first and by far the most important
cause is that we're explicitly blacklisting ${datadir}/fonts from staging, so it
was never possible for these maps to be sourced from sysroots in the first
place. This seems like a silly thing to do, and I could not find any
justification for it in the commit history, so I propose getting rid of it.

Once that was out of the way, I cleaned up some existing chicanery involving
where to look for the maps. In particular, presently font-util is hardcoding the
path to point at the native sysroot, for *all* architectures. Again, this seems
silly, I can't find any justification for it, and it breaks builds; I propose
getting rid of it.

These changes will require the font recipes in meta-oe need to be updated to
explicitly depend on font-util in addition to font-util-native; I'll post those
patches separately. (Yes, these font builds are arch-specific right now; making
them allarch is something I'm also working on.)

Richard Tollerton (3):
  staging.bbclass: Install ${datadir}/fonts/ into sysroots
  font-util: remove MAPFILES_PATH override
  xorg-font-common: fix sysroot injection for encoding maps

 meta/classes/staging.bbclass                         | 2 +-
 meta/recipes-graphics/xorg-font/font-util_1.3.0.bb   | 4 ----
 meta/recipes-graphics/xorg-font/xorg-font-common.inc | 8 +-------
 3 files changed, 2 insertions(+), 12 deletions(-)

-- 
2.1.3



More information about the Openembedded-core mailing list