[cairo] cairo-1.10.2 make check large number of FAIL due to fonts not found
Gilles Espinasse
g.esp at free.fr
Sun May 15 02:14:13 PDT 2011
Hello
I compile in a chroot in that order glib-2.26, dejavu-2.33, freetype-2.4.4,
gd-2.0.35, fontconfig-2.8.0, pixman-0.20.2. After cairo, pango and rrd are
build and work.
I recently try to enable cairo-1.10.2 test suite and that does not work as
it should : too much failures
To simplify, cairo is compiled with
./configure --prefix=/usr && make
Configure status is reported so :
cairo (version 1.10.2 [release]) will be compiled with:
The following surface backends:
Image: yes (always builtin)
Recording: yes (always builtin)
Tee: no (disabled, use --enable-tee to enable)
XML: no (disabled, use --enable-xml to enable)
Skia: no (disabled, use --enable-skia to enable)
Xlib: no (requires X development libraries)
Xlib Xrender: no (requires --enable-xlib)
Qt: no (disabled, use --enable-qt to enable)
Quartz: no (requires CoreGraphics framework)
Quartz-image: no (disabled, use --enable-quartz-image to enable)
XCB: no (disabled, use --enable-xcb to enable)
Win32: no (requires a Win32 platform)
OS2: no (disabled, use --enable-os2 to enable)
CairoScript: no (disabled, use --enable-script to enable)
PostScript: yes
PDF: yes
SVG: yes
OpenGL: no (disabled, use --enable-gl to enable)
BeOS: no (disabled, use --enable-beos to enable)
DirectFB: no (disabled, use --enable-directfb to enable)
OpenVG: no (disabled, use --enable-vg to enable)
DRM: no (disabled, use --enable-drm to enable)
The following font backends:
User: yes (always builtin)
FreeType: yes
Fontconfig: yes
Win32: no (requires a Win32 platform)
Quartz: no (requires CoreGraphics framework)
The following functions:
PNG functions: yes
GLEW functions: no (not required by any backend)
GLX functions: no (not required by any backend)
WGL functions: no (not required by any backend)
EGL functions: no (not required by any backend)
X11-xcb functions: no (disabled, use --enable-xlib-xcb to enable)
XCB-drm functions: no (disabled, use --enable-xcb-drm to enable)
XCB-shm functions: no (requires --enable-xcb)
DRM-Xr functions: no (disabled, use --enable-drm-xr to enable)
The following features and utilities:
cairo-trace: yes
cairo-script-interpreter: yes
And the following internal features:
pthread: yes
gtk-doc: no
gcov support: no
symbol-lookup: yes
test surfaces: no (disabled, use --enable-test-surfaces to enable)
ps testing: no (requires libspectre)
pdf testing: no (requires poppler-glib >= 0.13.3)
svg testing: no (requires librsvg-2.0 >= 2.15.0)
*** No native surface backends enabled for your platform. It is strongly
*** recommended that you enable the native surface backend feature for your
*** platform.
Looking at the failures
find cairo-1.10.2/test -name "*.log" -ls -exec grep ' FAIL' {} \; | wc -l
1391
find cairo-1.10.2/test -name "*.log" -ls -exec grep ' PASS' {} \; | wc -l
997
find cairo-1.10.2/test -name "*.log" -ls -exec grep ' out of memory' {} \;
| wc -l
1184
I know from https://bugs.freedesktop.org/show_bug.cgi?id=18077
that this high number of 'out of memory' is related to the fonts not found.
fc-list is happy to report installed dejavu fonts and
fc-cache -v
/usr/share/fonts: skipping, existing cache is valid: 0 fonts, 1 dirs
/usr/share/fonts/truetype: skipping, existing cache is valid: 0 fonts, 1
dirs
/usr/share/fonts/truetype/ttf-dejavu: skipping, existing cache is valid: 21
fonts, 0 dirs
/root/.fonts: skipping, no such directory
/var/cache/fontconfig: cleaning cache directory
/root/.fontconfig: not cleaning non-existent cache directory
fc-cache: succeeded
What configuration is required to let cairo find the fonts?
Inspired by 18077 report, I try moving the fonts to /usr/share/fonts and
rerun fc-cache with no changes on cairo test suite.
So I am a bit out of inspiration and don't know what to change.
Gilles
More information about the cairo
mailing list