xfonts, mapfile dir, and pkg-config issue
Currently, many of the xfont builds fail something like this:
| /build/bhthermal/bht_build/oe/build/angstrom-2008.1/tmp/staging/x86_64-linux/usr/bin/bdftopcf
-t UTRG__24.bdf | gzip > UTRG__24.pcf.gz
| /build/bhthermal/bht_build/oe/build/angstrom-2008.1/tmp/staging/x86_64-linux/usr/bin/ucs2any
UTB___10.bdf /usr/lib/X11/fonts/util/map-ISO8859-1 ISO8859-1
| /build/bhthermal/bht_build/oe/build/angstrom-2008.1/tmp/staging/x86_64-linux/usr/bin/ucs2any:
Can't read mapping file '/usr/lib/X11/fonts/util/map-ISO8859-1': No
such file or directory!
| make[1]: *** [UTB___10-ISO8859-1.bdf] Error 1
| make[1]: Leaving directory `/build/bhthermal/bht_build/oe/build/angstrom-2008.1/tmp/work/geode-angstrom-linux/font-adobe-utopia-100dpi-1_1.0.1-r0/font-adobe-utopia-100dpi-1.0.1' | FATAL: oe_runmake failed
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)
2) convince insane.class that this tmpdir is really OK in fontutil.pc
Any suggestions on how to best solve this?
Thanks,
Cliff
Signature · 3 lines
======================= Cliff Brake http://bec-systems.com
Quoted 8 lines · Cliff Brake
This issue is that "pkg-config --variable=mapdir fontutil" returns:
/usr/lib/X11/fonts/utilwhich 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.
Quoted 7 lines
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_OECONFwith theMAPFILES_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_DIRpkg-config --variable=mapdir fontutil
which in theory should be accepted upstream too...
Quoted 1 line
2) convince insane.class that this tmpdir is really OK in fontutil.pc
From what you said above, this wouldn't help.
Cheers,
Richard
Quoted 22 lines · Richard Purdie
Quoted 8 lines · Cliff Brake
This issue is that "pkg-config --variable=mapdir fontutil" returns:
/usr/lib/X11/fonts/utilwhich 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.
Quoted 7 lines
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_OECONFwith theMAPFILES_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.
Quoted 6 lines
The alternative is to patch the configure.ac files so it uses something like:
$PKG_CONFIG_SYSROOT_DIR
pkg-config --variable=mapdir fontutilwhich in theory should be accepted upstream too...
This seems like the best option.
Quoted 3 lines
Quoted 3 lines
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
Signature · 3 lines
======================= Cliff Brake http://bec-systems.com
Quoted 19 lines · Cliff Brake
Quoted 18 lines · Richard Purdie
Quoted 15 lines · Cliff Brake
This issue is that "pkg-config --variable=mapdir fontutil" returns:
/usr/lib/X11/fonts/utilwhich 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_OECONFwith theMAPFILES_PATH(would require patching font packages -- bad)
Quoted 8 lines
Quoted 8 lines
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
Is the the pkgconfig sysroot-support.patch going upstream, or is that an OE only thing?
Cliff
Signature · 3 lines
======================= Cliff Brake http://bec-systems.com
Quoted 24 lines · Cliff Brake
Quoted 23 lines · Cliff Brake
Quoted 22 lines · Richard Purdie
Quoted 8 lines · Cliff Brake
This issue is that "pkg-config --variable=mapdir fontutil" returns:
/usr/lib/X11/fonts/utilwhich 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.
Quoted 7 lines
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_OECONFwith theMAPFILES_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.
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
The alternative is to patch the configure.ac files so it uses something like:
$PKG_CONFIG_SYSROOT_DIR
pkg-config --variable=mapdir fontutilIs the the pkgconfig sysroot-support.patch going upstream, or is that an OE only thing?
Its gone upstream and was in pkgconfig 0.23. The patch they merged was broken and I've given them one to fix it but thats a different kind of problem ;-). So yes, upstreams should take this kind of fix.
Cheers,
Richard
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I am not sure whether this is the same issue but some time ago I filed a bug report (with patch) because some of the configure.ac files did not respect the PKG_CONFIG env variable and hence called the wrong pkg-config:
https://bugs.freedesktop.org/show_bug.cgi?id=8185
Cheers,
- --
Jeremy LAINE
Bolloré telecom | 11bis, rue Scribe | F-75009 Paris -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIEfJcCL1n3lVB9EYRArU8AKCiDqW6sTv+Dki8jabJEsrcI9JIKwCg1eRu UWVU4XaSUis2GSQfudkJgDc=
=eWmG
-----END PGP SIGNATURE-----
Quoted 9 lines · Jeremy Lainé
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1I am not sure whether this is the same issue but some time ago I filed a bug report (with patch) because some of the configure.ac files did not respect the
PKG_CONFIGenv variable and hence called the wrong pkg-config:
Hi Jeremy,
I don't think this is the same issue because as far as I can tell this is not an issue of running the wrong package config, rather knowing how to use the data in it. When I fun configure in an OE build, $PKG_CONFIG does not seem to be defined.
This is what I came up with:
--- font-misc-misc-1.0.0.orig/configure.ac 2008-04-25
13:47:56.000000000 -0400
+++ font-misc-misc-1.0.0/configure.ac 2008-04-25 13:48:10.000000000 -0400
@@ -45,7 +45,8 @@
AC_SUBST(FONTDIR)
PKG_CHECK_MODULES(MAPS, [fontutil])
-MAPFILES_PATH=$(pkg-config --variable=mapdir fontutil) +m4_pattern_allow(PKG_CONFIG_SYSROOT_DIR) +MAPFILES_PATH=$PKG_CONFIG_SYSROOT_DIRpkg-config --variable=mapdir fontutil
AC_SUBST(MAPFILES_PATH)
XORG_FONT_CHECK_ISO8859_1
Cliff
Signature · 3 lines
======================= Cliff Brake http://bec-systems.com