After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 540036 - Doesn't link to fontconfig
Doesn't link to fontconfig
Status: RESOLVED FIXED
Product: pango
Classification: Platform
Component: general
1.21.x
Other Linux
: Normal normal
: ---
Assigned To: pango-maint
pango-maint
Depends on:
Blocks:
 
 
Reported: 2008-06-24 20:34 UTC by Loïc Minier
Modified: 2008-06-24 20:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Link to fontconfig (1.21 KB, patch)
2008-06-24 20:38 UTC, Loïc Minier
needs-work Details | Review

Description Loïc Minier 2008-06-24 20:34:19 UTC
Hi,

Before:
%  pkg-config --libs xft
-lXft -lfontconfig  

Now:
% pkg-config --libs xft
-lXft  

This causes Debian bug http://bugs.debian.org/486991 with the following build failure:
> .libs/pangoxft-font.o: In function `xft_font_get_font':
>
/build/user-pango1.0_1.20.3-1-amd64-RBfjp9/pango1.0-1.20.3-1/pango/pangoxft-font
.c:396: undefined reference to `FcPatternDuplicate'

I will attach a patch to link to fontconfig explicitely since it's used directly in pango.

Bye,
Comment 1 Behdad Esfahbod 2008-06-24 20:36:55 UTC
[behdad:0 pango]$ grep Requires pangoxft.pc
Requires: pango pangoft2 xft
[behdad:0 pango]$ grep Requires pangoft2.pc
Requires: pango freetype2 fontconfig
[behdad:0 pango]$ pkg-config --libs pangoxft
-L/home/behdad/.local/lib -lpangoxft-1.0 -lpangoft2-1.0 -lXft -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lXrender -lfontconfig -lfreetype -lX11  
Comment 2 Loïc Minier 2008-06-24 20:38:13 UTC
Created attachment 113368 [details] [review]
Link to fontconfig
Comment 3 Behdad Esfahbod 2008-06-24 20:40:08 UTC
Sorry, my bad.  Misunderstood.
Comment 4 Behdad Esfahbod 2008-06-24 20:43:06 UTC
Nah, our FREETYPE_CFLAGS/LIBS includes fontconfig's.  Committing correct fix which is adding FREETYPE_LIBS to XFT.
Comment 5 Behdad Esfahbod 2008-06-24 20:44:15 UTC
2008-06-24  Behdad Esfahbod  <behdad@gnome.org>

        Bug 540036 – Doesn't link to fontconfig

        * pango/Makefile.am: Explicitly include FREETYPE_LIBS for pangoxft.