From fe5c7ac2fd4a4797b3de19ea328e83c387af2c19 Mon Sep 17 00:00:00 2001 From: Caolan McNamara Date: Tue, 3 Mar 2009 14:27:23 +0000 Subject: [PATCH] fix ttmkfdir-3.0.9-segfaults.patch to include stdio.h for added printf --- ttmkfdir-3.0.9-bug434301.patch | 4 ++-- ttmkfdir-3.0.9-segfaults.patch | 9 ++++++++- ttmkfdir.spec | 5 ++++- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/ttmkfdir-3.0.9-bug434301.patch b/ttmkfdir-3.0.9-bug434301.patch index bbf81d5..0a77dbb 100644 --- a/ttmkfdir-3.0.9-bug434301.patch +++ b/ttmkfdir-3.0.9-bug434301.patch @@ -1,7 +1,7 @@ --- ttmkfdir-3.0.9/directory.cpp.bak 2008-02-27 10:18:52.000000000 +0800 +++ ttmkfdir-3.0.9/directory.cpp 2008-02-27 10:20:24.000000000 +0800 -@@ -2,6 +2,8 @@ - #include +@@ -3,6 +3,8 @@ + #include #include #include +#include diff --git a/ttmkfdir-3.0.9-segfaults.patch b/ttmkfdir-3.0.9-segfaults.patch index 321061b..17a8dec 100644 --- a/ttmkfdir-3.0.9-segfaults.patch +++ b/ttmkfdir-3.0.9-segfaults.patch @@ -1,6 +1,13 @@ --- ttmkfdir-3.0.9/directory.cpp.back 2005-10-08 14:25:37.839328408 +0800 +++ ttmkfdir-3.0.9/directory.cpp 2005-10-08 14:26:00.021956136 +0800 -@@ -13,6 +13,10 @@ +@@ -1,5 +1,6 @@ + #include + #include ++#include + #include + #include + +@@ -13,6 +14,10 @@ directory::scan (const std::string &dir) { DIR *ttfdir = opendir(dir.c_str ()); diff --git a/ttmkfdir.spec b/ttmkfdir.spec index d5e4bf7..186edd1 100644 --- a/ttmkfdir.spec +++ b/ttmkfdir.spec @@ -1,7 +1,7 @@ Summary: Utility to create fonts.scale files for truetype fonts Name: ttmkfdir Version: 3.0.9 -Release: 29%{?dist} +Release: 30%{?dist} # This is a Red Hat maintained package which is specific to # our distribution. Thus the source is only available from # within this srpm. @@ -62,6 +62,9 @@ rm -rf $RPM_BUILD_ROOT %{_bindir}/ttmkfdir %changelog +* Tue Mar 03 2009 Caolán McNamara - 3.0.9-30 +- fix ttmkfdir-3.0.9-segfaults.patch to include stdio.h for added printf + * Wed Feb 25 2009 Fedora Release Engineering - 3.0.9-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild