Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1080516 - ttmkfdir ftbfs in rawhide due to freetype header move
Summary: ttmkfdir ftbfs in rawhide due to freetype header move
Alias: None
Product: Fedora
Classification: Fedora
Component: ttmkfdir
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Parag Nemade
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: F-ExcludeArch-ppc64le, PPC64LETracker
TreeView+ depends on / blocked
Reported: 2014-03-25 15:20 UTC by Brent Baude
Modified: 2014-03-26 05:39 UTC (History)
3 users (show)

Fixed In Version: ttmkfdir-3.0.9-41.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2014-03-26 05:39:45 UTC

Attachments (Terms of Use)

Description Brent Baude 2014-03-25 15:20:33 UTC
ttmkfdir ftbfs in rawhide due to freetype header move

Here's a patch for the rawhide spec:

diff --git a/ttmkfdir.spec b/ttmkfdir.spec
index 262c213..395c3d1 100644
--- a/ttmkfdir.spec
+++ b/ttmkfdir.spec
@@ -16,6 +16,7 @@ Patch6: ttmkfdir-3.0.9-segfaults.patch
 Patch7: ttmkfdir-3.0.9-encoding-dir.patch
 Patch8: ttmkfdir-3.0.9-font-scale.patch
 Patch9: ttmkfdir-3.0.9-bug434301.patch
+Patch99: freetype_header_fix.patch
 Source10: ttmkfdir.1
 # Only licensing attribution is in README, no version.
 License: LGPLv2+
@@ -45,6 +46,7 @@ by the font server.
 %patch7 -p1
 %patch8 -p1
 %patch9 -p1
+%patch99 -p1
 make %{?_smp_mflags} OPTFLAGS="$RPM_OPT_FLAGS"

And the actual patch:

diff -Nau ttmkfdir-3.0.9.orig/ttf.cpp ttmkfdir-3.0.9/ttf.cpp
--- ttmkfdir-3.0.9.orig/ttf.cpp	2014-03-25 10:12:53.350009854 -0500
+++ ttmkfdir-3.0.9/ttf.cpp	2014-03-25 10:14:43.790009861 -0500
@@ -3,7 +3,7 @@
 #include <cctype>
 #include <cstring>
-#include "freetype/tttables.h"
+#include "freetype2/tttables.h"
 #include "ttmkfdir.h"
 #include "ttf.h"
 #include "ttos2val.h"

Comment 1 Parag Nemade 2014-03-26 05:03:42 UTC
looks like the correct location for header is
#include "freetype2/freetype/tttables.h"

Comment 2 Parag Nemade 2014-03-26 05:39:45 UTC
ah! my bad. In rawhide its location is actually freetype2/tttables.h

Fixed in ttmkfdir-3.0.9-41.fc21

Note You need to log in before you can comment on or make changes to this bug.