Bug#225129: gtk+2.0: FTBFS: Freetype errors in configure

Daniel Schepler Daniel Schepler <schepler@math.berkeley.edu>, 225129@bugs.debian.org
Fri, 26 Dec 2003 08:53:24 -0800


--=-=-=

Package: gtk+2.0
Severity: serious
Version: 2.2.4-2
Tags: patch

>From my build log:

...
checking for x86 platform... yes
checking compiler support for MMX... yes
checking for freetype-config... /usr/bin/freetype-config
checking For sufficiently new FreeType (at least 2.0.1)... no
configure: error: pangoxft Pango backend found but did not find freetype libraries
make: *** [debian/stampdir/configure-static-stamp] Error 1

The config.log file shows errors with the new FreeType build system
(unfortunately I seem to have deleted that).

I've included a patch which fixes the build errors for me.

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux frobnitz 2.6.0-test11 #1 Wed Dec 3 21:42:26 PST 2003 i686
Locale: LANG=en, LC_CTYPE=en (ignored: LC_ALL set to en_US.ISO-8859-1)


-- 
Daniel Schepler              "Please don't disillusion me.  I
schepler@math.berkeley.edu    haven't had breakfast yet."
                                 -- Orson Scott Card

--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment; filename=gtk+2.0.diff
Content-Description: gtk+2.0 patch

--- gtk+2.0-2.2.4.old/debian/patches/002_gtk+-debian-freetype.patch	1970-01-01 00:00:00.000000000 +0000
+++ gtk+2.0-2.2.4/debian/patches/002_gtk+-debian-freetype.patch	2003-12-26 15:42:06.000000000 +0000
@@ -0,0 +1,26 @@
+diff -Nru gtk+-2.2.4.orig/configure gtk+-2.2.4/configure
+--- gtk+-2.2.4.orig/configure	2003-12-26 15:02:48.427829000 +0000
++++ gtk+-2.2.4/configure	2003-12-26 15:41:00.350762731 +0000
+@@ -24745,7 +24745,8 @@
+ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h.  */
+ 
+-#include <freetype/freetype.h>
++#include <ft2build.h>
++#include FT_FREETYPE_H
+ #include FT_ERRORS_H
+ 
+ int
+diff -Nru gtk+-2.2.4.orig/configure.in gtk+-2.2.4/configure.in
+--- gtk+-2.2.4.orig/configure.in	2003-12-26 15:02:48.324791000 +0000
++++ gtk+-2.2.4/configure.in	2003-12-26 15:36:27.533900776 +0000
+@@ -964,7 +964,8 @@
+ 
+       AC_MSG_CHECKING([For sufficiently new FreeType (at least 2.0.1)])
+       AC_TRY_COMPILE([
+-#include <freetype/freetype.h>
++#include <ft2build.h>
++#include FT_FREETYPE_H
+ #include FT_ERRORS_H
+     ],
+ 	             [(void)1;],:,have_freetype=false)

--=-=-=--