diff options
author | Richard Tollerton <rich.tollerton@ni.com> | 2015-02-20 13:02:35 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-02-21 22:05:35 +0000 |
commit | 629b91b4be44ec32f007c55d4cad7cd9ee50006f (patch) | |
tree | 4f5bfebb798a2379779e521cc3d2ca841120266d /meta/recipes-graphics | |
parent | ab18ec78982866291e656f209b8652cf8c28b17a (diff) | |
download | poky-629b91b4be44ec32f007c55d4cad7cd9ee50006f.tar.gz |
xorg-font-common: fix sysroot injection for encoding maps
The xorg font builds use `pkg-config --variable=mapdir fontutil` to
locate encoding maps. This variable ought to be sysroot-relative, but
neither pkg-config nor font-util nor the fonts themselves provide any
facility to add the sysroot back in.
We're presently adding the sysroot by by twiddling MAPFILES_PATH in
configure.ac. This is broken; it's actually defined in aclocal.m4,
because the definition is provided by fontutil.m4. Another (more
speculative) criticism is that it also hardcodes a build-specific
absolute path into builds which might (incorrectly) encode it into
target-installable packages.
A somewhat more robust, focused, and clear solution is to override
UTIL_DIR on the make command line. (UTIL_DIR, not MAPFILES_PATH, is what
is actually referenced in the build.)
(From OE-Core rev: 5cd320d8d21cd784b32f12a6944dc647a75abf94)
Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r-- | meta/recipes-graphics/xorg-font/xorg-font-common.inc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/meta/recipes-graphics/xorg-font/xorg-font-common.inc b/meta/recipes-graphics/xorg-font/xorg-font-common.inc index 55adde3608..d3b995a358 100644 --- a/meta/recipes-graphics/xorg-font/xorg-font-common.inc +++ b/meta/recipes-graphics/xorg-font/xorg-font-common.inc | |||
@@ -15,13 +15,7 @@ S = "${WORKDIR}/${XORG_PN}-${PV}" | |||
15 | 15 | ||
16 | inherit autotools pkgconfig | 16 | inherit autotools pkgconfig |
17 | 17 | ||
18 | EXTRA_OEMAKE += "FCCACHE=/bin/true" | 18 | EXTRA_OEMAKE += "FCCACHE=/bin/true UTIL_DIR=${STAGING_DIR_TARGET}\$\(MAPFILES_PATH\)" |
19 | |||
20 | do_configure_prepend() { | ||
21 | if [ -f "${S}"/configure.ac ] ; then | ||
22 | sed -i "s#^MAPFILES_PATH=.*#MAPFILES_PATH=\"${STAGING_DIR_TARGET}/\$(pkg-config --variable=mapdir fontutil)\"#g" "${S}"/configure.ac | ||
23 | fi | ||
24 | } | ||
25 | 19 | ||
26 | do_install_append() { | 20 | do_install_append() { |
27 | find ${D}${libdir}/X11/fonts -type f -name fonts.dir | xargs rm -f | 21 | find ${D}${libdir}/X11/fonts -type f -name fonts.dir | xargs rm -f |