Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 266868 - media-gfx/fontforge-20090408 missing use-dep on cairo[X]
Summary: media-gfx/fontforge-20090408 missing use-dep on cairo[X]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Fonts Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-20 17:28 UTC by Thomas Chef
Modified: 2009-04-21 21:23 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Chef 2009-04-20 17:28:28 UTC
I tried to:
# emerge lilypond
(for Rosegarden) but it fails when building fontforge, with the error below.

media-gfx/fontforge-20090408

I have searched my disc for the cairo-xlib.h-file, but it doesn't exist.
I tried to:
#emerge emerge x11-libs/cairo
but that did not help either.
 
 


Reproducible: Always

Steps to Reproduce:
1.emerge lilypond
2.
3.

Actual Results:  
 In file included from fontP.h:109,
                 from gdrawtxt.c:30:
 gxdrawP.h:83:32: error: cairo/cairo-xlib.h: No such file or directory
  gcc -march=c3-2 -msse -mmmx -mfpmath=sse -O2 -pipe
 -fomit-frame-pointer -I/usr/include/freetype2/ -I/usr/include/fr
 eetype2 -I/usr/include/libxml2/ -I/usr/include/cairo
 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/gli
 b-2.0/include -I/usr/include/python2.4 -I../inc -I../inc
 -I/usr/pkg/include -I/usr/pkg/include/giflib -Wmissing-prot
 otypes -Wunused -Wimplicit -Wreturn-type -Wparentheses -Wformat
 -Wchar-subscripts -DNOTHREADS -DHAVE_CONFIG_H -DLIBD
 IR=\"/usr/lib\" -c gdrawtxtinit.c  -fPIC -DPIC -o .libs/gdrawtxtinit.o
 In file included from fontP.h:109,
                 from gdrawtxtinit.c:27:
 gxdrawP.h:83:32: error: cairo/cairo-xlib.h: No such file or directory
 make[1]: *** [gdrawtxt.lo] Error 1
 make[1]: *** Waiting for unfinished jobs....
 make[1]: *** [gdrawtxtinit.lo] Error 1
 make[1]: Leaving directory
 `/var/tmp/portage/media-gfx/fontforge-20090408/work/fontforge-20090408/gdraw'
 make: *** [libgdraw] Error 2
  *
  * ERROR: media-gfx/fontforge-20090408 failed.
  * Call stack:
  *               ebuild.sh, line   49:  Called src_compile
  *             environment, line 2150:  Called _eapi2_src_compile
  *               ebuild.sh, line  643:  Called die
  * The specific snippet of code:
  *              emake || die "emake failed"
  *  The die message:
  *   emake failed
Comment 1 Arttu Valo 2009-04-20 18:09:18 UTC
Possible quick fix:
USE="X" emerge -1 cairo pango

Potential real fix: fontforge-20090408.ebuild is missing at least two (maybe more?) dependencies related to X USE flag use in other packages:

media-gfx/cairo[X] (maybe even [X=] to match the flags?)
x11-libs/pango[X] (maybe even [X=] to match the flags?)

If those packages are not emerged with USE="X" enabled, they won't install all of their headers, especially the X-related ones like cairo-xlib.h and pangoxft.h.
Comment 2 Thomas Chef 2009-04-21 18:07:37 UTC
(In reply to comment #1)
> Possible quick fix:
> USE="X" emerge -1 cairo pango

The quick fix worked ! Perfect !
Thank you !
Comment 3 Peter Alfredsen (RETIRED) gentoo-dev 2009-04-21 21:23:45 UTC
+*fontforge-20090408-r1 (21 Apr 2009)
+
+  21 Apr 2009; Peter Alfredsen <loki_val@gentoo.org>
+  +fontforge-20090408-r1.ebuild:
+  Provide pango and cairo use-flags and deps, bug 266868.
+