[oe] xfonts, mapfile dir, and pkg-config issue
Cliff Brake
cliff.brake at gmail.com
Fri Apr 25 01:07:27 UTC 2008
On Thu, Apr 24, 2008 at 7:30 PM, Richard Purdie <rpurdie at rpsys.net> wrote:
>
> On Thu, 2008-04-24 at 19:13 -0400, Cliff Brake wrote:
> > This issue is that "pkg-config --variable=mapdir fontutil" returns:
> >
> > /usr/lib/X11/fonts/util
> >
> > which is correct if mapdir is used on the target system, but in this
> > case mapdir is used on the host system during the build, so it really
> > needs the path to staging.
> >
> > We can't modify font-util to put the staging path in fontutil.pc or
> > insane.class complains about tmdir's in a *.pc file.
> >
> > What is the correct solution in this case?
> >
> > 1) hardcode EXTRA_OECONF with the MAPFILES_PATH (would require
> > patching font packages -- bad)
>
> If you can override from the commandline this may be an option,
> particularly if all font packages accept the same option and we can use
> a .inc file.
>
> The alternative is to patch the configure.ac files so it uses something
> like:
>
> $PKG_CONFIG_SYSROOT_DIR`pkg-config --variable=mapdir fontutil`
>
> which in theory should be accepted upstream too...
This seems like the best option.
> > 2) convince insane.class that this tmpdir is really OK in fontutil.pc
>
> >From what you said above, this wouldn't help.
We would also have to modify the font-util recipe, then it appears to work:
--- packages/xorg-font/font-util_1.0.1.bb
29499d32e8b5b2e57bdda74b6b9a0c8c67b14225
+++ packages/xorg-font/font-util_1.0.1.bb
3a7987e8d665539167ca9d2034222ca9b21346b7
@@ -5,5 +5,7 @@ RDEPENDS = "mkfontdir mkfontscale encodi
DEPENDS = "encodings"
RDEPENDS = "mkfontdir mkfontscale encodings"
-PR = "r1"
+EXTRA_OECONF = "--with-mapdir=${STAGING_DIR_TARGET}${libdir}/X11/fonts/util"
+
+PR = "r3"
PE = "1"
But, I agree this should really be fixed in the package source, so
I'll go that route and try to get it pushed upstream.
Thanks for the ideas.
Cliff
--
=======================
Cliff Brake
http://bec-systems.com
More information about the Openembedded-devel
mailing list