summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Ostorga <vostorga@gentoo.org>2009-07-25 21:12:14 +0000
committerVictor Ostorga <vostorga@gentoo.org>2009-07-25 21:12:14 +0000
commit5b71efc92088d58eb8604dec63724eeceec36b3d (patch)
tree74d0471b1ffabd70ea66e15a1e0b30fb3b514fef /app-text/tesseract
parentFix building with GCC 4.4 wrt #277797. (diff)
downloadgentoo-2-5b71efc92088d58eb8604dec63724eeceec36b3d.tar.gz
gentoo-2-5b71efc92088d58eb8604dec63724eeceec36b3d.tar.bz2
gentoo-2-5b71efc92088d58eb8604dec63724eeceec36b3d.zip
Fix compilation with gcc-4.4 , closes bug 269320
(Portage version: 2.1.6.13/cvs/Linux i686)
Diffstat (limited to 'app-text/tesseract')
-rw-r--r--app-text/tesseract/ChangeLog6
-rw-r--r--app-text/tesseract/files/tesseract-2.04-gcc44.patch15
-rw-r--r--app-text/tesseract/tesseract-2.04.ebuild5
3 files changed, 24 insertions, 2 deletions
diff --git a/app-text/tesseract/ChangeLog b/app-text/tesseract/ChangeLog
index 9f02ce59d5c0..ccfea17e2053 100644
--- a/app-text/tesseract/ChangeLog
+++ b/app-text/tesseract/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for app-text/tesseract
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/tesseract/ChangeLog,v 1.20 2009/07/19 15:28:14 hanno Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/tesseract/ChangeLog,v 1.21 2009/07/25 21:12:14 vostorga Exp $
+
+ 25 Jul 2009; Víctor Ostorga <vostorga@gentoo.org> tesseract-2.04.ebuild,
+ +files/tesseract-2.04-gcc44.patch:
+ Fix compilation with gcc-4.4 , closes bug 269320
*tesseract-2.04 (19 Jul 2009)
diff --git a/app-text/tesseract/files/tesseract-2.04-gcc44.patch b/app-text/tesseract/files/tesseract-2.04-gcc44.patch
new file mode 100644
index 000000000000..7d1f61c19acd
--- /dev/null
+++ b/app-text/tesseract/files/tesseract-2.04-gcc44.patch
@@ -0,0 +1,15 @@
+diff -NrU5 tesseract-2.04.original/viewer/svutil.cpp tesseract-2.04/viewer/svutil.cpp
+--- tesseract-2.04.original/viewer/svutil.cpp 2009-07-25 21:03:18.000000000 +0000
++++ tesseract-2.04/viewer/svutil.cpp 2009-07-25 21:05:54.000000000 +0000
+@@ -41,10 +41,11 @@
+ #include <sys/prctl.h>
+ #endif
+ #endif
+
+ #include <iostream>
++#include <cstdio>
+
+ const int kBufferSize = 65536;
+ const int kMaxMsgSize = 4096;
+
+ // Signals a thread to exit.
diff --git a/app-text/tesseract/tesseract-2.04.ebuild b/app-text/tesseract/tesseract-2.04.ebuild
index 7bc215a8c6b4..44441a0dbd1d 100644
--- a/app-text/tesseract/tesseract-2.04.ebuild
+++ b/app-text/tesseract/tesseract-2.04.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/tesseract/tesseract-2.04.ebuild,v 1.1 2009/07/19 15:28:14 hanno Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/tesseract/tesseract-2.04.ebuild,v 1.2 2009/07/25 21:12:14 vostorga Exp $
inherit eutils
@@ -35,6 +35,9 @@ src_unpack() {
# Remove obsolete makefile, install target only in uppercase Makefile
rm -f "${S}/java/makefile"
+
+ #bug 269320
+ epatch "${FILESDIR}"/${P}-gcc44.patch
}
src_compile() {