Created attachment 316647 [details] emerge --info Build of app-text/fbreader-0.12.10 fails with: Compiling ZLTextParagraphCursor.o ...In file included from /usr/include/fribidi/fribidi.h:35:0, from ZLTextParagraphBuilder.h:26, from ZLTextParagraphCursor.cpp:26: /usr/include/fribidi/fribidi-common.h:65:20: fatal error: glib.h: No such file or directory compilation terminated. This failure doesn't depend on the gtk USE flag. $ emerge -pv fribidi fbreader These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] dev-libs/fribidi-0.19.2-r2 USE="-static-libs" 0 kB [ebuild R ] app-text/fbreader-0.12.10 USE="qt4 -debug -gtk" 0 kB Total: 2 packages (2 reinstalls), Size of downloads: 0 kB
$ eix -I ^glib$ [I] dev-libs/glib Available versions: (1) 1.2.10-r5 (2) 2.30.2 2.30.3 ~2.32.2 ~2.32.3 {debug doc fam hardened kernel_linux selinux (+)static-libs systemtap test utils xattr} Installed versions: 1.2.10-r5(1)(12:03:14 AM 06/30/2012)(hardened) 2.30.3(2)(11:55:55 PM 06/29/2012)(static-libs -debug -doc -fam -selinux -systemtap -test -utils -xattr) Homepage: http://www.gtk.org/ Description: The GLib library of C routines
A quick fix is to edit the ebuild and add a line like this to the bottom of src_prepare(): sed -i '/^CFLAGS = /s/$/ $(shell pkg-config fribidi --cflags)/' makefiles/arch/desktop.mk || die
(In reply to comment #2) I can confirm, this fixes the failure.
This could be resolved like following... 1. virtual/pkgconfig to DEPEND 2. inherit flag-o-matic toolchain-funcs 3. append-cppflags "$($(tc-getPKG_CONFIG) --cflags fribidi)" #424163 As in, you can't skip fribidi's pkg-config file if you plan on using the library. The problem is that fbreader is ignoring all of CFLAGS, CXXFLAGS and CPPFLAGS so append-flags won't be working out of box I'll leave this to maintainer for handling, alternative is lastriting
This is a duplicate of bug #417043 I'll add my patch and test-results there.
(In reply to comment #5) > This is a duplicate of bug #417043 > > I'll add my patch and test-results there. Thanks. *** This bug has been marked as a duplicate of bug 417043 ***