Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 466432

Summary: media-libs/fontconfig-2.10.91 first build failure, cannot find <fontconfig/fontconfig.h>
Product: Gentoo Linux Reporter: Nick Novikov <nick.novikov>
Component: Current packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: normal CC: fonts, nick.novikov, poncho
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 463242    
Attachments: Ensure we find the uninstalled fontconfig header
version bump
https://bugzilla.freedesktop.org/show_bug.cgi?id=62980
https://bugzilla.freedesktop.org/show_bug.cgi?id=63096

Description Nick Novikov 2013-04-19 05:53:22 UTC
~x86 with desktop/gnome profile

test/test-pthread.c is searching for <fontconfig/fontconfig.h> which is not available in provided search path -I.. and not yet installed.

Builds fine if this header exists in /usr/include from previous installation.

Reproduce: rename or remove /usr/include/fontconfig directory and emerge -1 =media-libs/fontconfig-2.10.91

Making all in test
make[2]: Entering directory `/var/tmp/portage/media-libs/fontconfig-2.10.91/work/fontconfig-2.10.91-default/test'
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/fontconfig-2.10.91/work/fontconfig-2.10.91/test -I..     -march=native -O2 -pipe -pthread -c /var/tmp/portage/media-libs/fontconfig-2.10.91/work/fontconfig-2.10.91/test/test-pthread.c
/var/tmp/portage/media-libs/fontconfig-2.10.91/work/fontconfig-2.10.91/test/test-pthread.c:7:35: fatal error: fontconfig/fontconfig.h: No such file or directory
compilation terminated.
make[2]: *** [test-pthread.o] Error 1
Comment 1 Ben de Groot (RETIRED) gentoo-dev 2013-04-19 09:29:39 UTC
This is a masked ebuild that was added by the gnome team, reassigning.
Comment 2 Robert Cabrera 2013-04-20 21:11:22 UTC
I too can confirm this bug. I was having trouble updating my ~amd64 multilib laptop. I've had installed for some time app-emulation/emul-linux-x86-xlibs-20130224-r1 and the corresponding libs it pulls in. I ran into a serious blacker because of fontconfig-2.10.91.

Unfortunately I figured this was the issue and unmasked it only after removing the already installed version of fontconfig. Then fontconfig-2.10.91 failed to emerge. After finding and reading this thread, I re-emerged the version I had installed previously, and then was able to successfully emerge and upgrade to fontconfig-2.10.91.

So there is an issue with this ebuild in that it fails to emerge if no previous version of fontconfig is installed on the system.

I hope this helps
Comment 3 poncho 2013-04-20 21:38:08 UTC
Created attachment 346128 [details, diff]
Ensure we find the uninstalled fontconfig header

see http://cgit.freedesktop.org/fontconfig/commit/?id=0831c1770e4bac7269a190936bbb0529d747e233

this should be fixed in fontconfig 2.10.92

but I don't know if a version bump is the right thing to do because version 2.10.92 currently breaks webfonts in firefox (see https://bugzilla.freedesktop.org/show_bug.cgi?id=63096)
Comment 4 Pacho Ramos gentoo-dev 2013-05-09 20:04:43 UTC
(In reply to comment #3)
> Created attachment 346128 [details, diff] [details, diff]
> Ensure we find the uninstalled fontconfig header
> 
> see
> http://cgit.freedesktop.org/fontconfig/commit/
> ?id=0831c1770e4bac7269a190936bbb0529d747e233
> 
> this should be fixed in fontconfig 2.10.92
> 
> but I don't know if a version bump is the right thing to do because version
> 2.10.92 currently breaks webfonts in firefox (see
> https://bugzilla.freedesktop.org/show_bug.cgi?id=63096)

Does this patch fix that issue?
http://pkgs.fedoraproject.org/cgit/fontconfig.git/plain/fontconfig-fix-woff.patch
Comment 5 poncho 2013-05-10 09:01:26 UTC
Created attachment 347910 [details, diff]
version bump

(In reply to comment #4)
> Does this patch fix that issue?
> http://pkgs.fedoraproject.org/cgit/fontconfig.git/plain/fontconfig-fix-woff.
> patch

Yes it does.
Comment 8 Pacho Ramos gentoo-dev 2013-05-12 17:56:05 UTC
+*fontconfig-2.10.92 (12 May 2013)
+
+  12 May 2013; Pacho Ramos <pacho@gentoo.org>
+  +files/fontconfig-2.10.92-automake-1.13.patch,
+  +files/fontconfig-2.10.92-closing-fp.patch,
+  +files/fontconfig-2.10.92-fix-check.patch,
+  +files/fontconfig-2.10.92-fix-woff.patch,
+  +files/fontconfig-2.10.92-ft-face.patch,
+  +files/fontconfig-2.10.92-ft-face2.patch,
+  +files/fontconfig-2.10.92-native-fonts.patch,
+  +files/fontconfig-2.10.92-use-glob.patch, +fontconfig-2.10.92.ebuild:
+  Version bump, also include upstream patches that will be in 2.10.93 and
+  incorporate a fix to bug #466432 making fedora patch not needed.
+