summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Hill <dirtyepic@gentoo.org>2008-03-06 23:48:45 +0000
committerRyan Hill <dirtyepic@gentoo.org>2008-03-06 23:48:45 +0000
commita4f015e740ac819de9f15708570488c030938bd7 (patch)
treed93ee45fe3c872fd6459fcf4216db2f26b55bb92 /media-libs/pdflib
parentVersion bump and removed older ones (diff)
downloadgentoo-2-a4f015e740ac819de9f15708570488c030938bd7.tar.gz
gentoo-2-a4f015e740ac819de9f15708570488c030938bd7.tar.bz2
gentoo-2-a4f015e740ac819de9f15708570488c030938bd7.zip
Fix compilation w/ GCC 4.3 for bug #212459.
(Portage version: 2.1.4.4)
Diffstat (limited to 'media-libs/pdflib')
-rw-r--r--media-libs/pdflib/ChangeLog6
-rw-r--r--media-libs/pdflib/files/pdflib-7.0.2_p8-gcc-4.3.patch55
-rw-r--r--media-libs/pdflib/pdflib-7.0.2_p8.ebuild4
3 files changed, 63 insertions, 2 deletions
diff --git a/media-libs/pdflib/ChangeLog b/media-libs/pdflib/ChangeLog
index 39df220a0725..d334cd971139 100644
--- a/media-libs/pdflib/ChangeLog
+++ b/media-libs/pdflib/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for media-libs/pdflib
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/pdflib/ChangeLog,v 1.98 2008/03/04 20:53:47 dertobi123 Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/pdflib/ChangeLog,v 1.99 2008/03/06 23:48:44 dirtyepic Exp $
+
+ 06 Mar 2008; Ryan Hill <dirtyepic@gentoo.org>
+ +files/pdflib-7.0.2_p8-gcc-4.3.patch, pdflib-7.0.2_p8.ebuild:
+ Fix compilation w/ GCC 4.3 for bug #212459.
04 Mar 2008; Tobias Scherbaum <dertobi123@gentoo.org>
pdflib-7.0.2_p8.ebuild:
diff --git a/media-libs/pdflib/files/pdflib-7.0.2_p8-gcc-4.3.patch b/media-libs/pdflib/files/pdflib-7.0.2_p8-gcc-4.3.patch
new file mode 100644
index 000000000000..5b4721911e5f
--- /dev/null
+++ b/media-libs/pdflib/files/pdflib-7.0.2_p8-gcc-4.3.patch
@@ -0,0 +1,55 @@
+diff -Naur PDFlib-Lite-7.0.2p8-orig/bind/pdflib/cpp/image.cpp PDFlib-Lite-7.0.2p8/bind/pdflib/cpp/image.cpp
+--- PDFlib-Lite-7.0.2p8-orig/bind/pdflib/cpp/image.cpp 2008-02-28 03:43:00.000000000 -0600
++++ PDFlib-Lite-7.0.2p8/bind/pdflib/cpp/image.cpp 2008-03-05 20:53:52.000000000 -0600
+@@ -4,6 +4,7 @@
+ //
+
+ #include <iostream>
++#include <cstdlib>
+
+ #include "pdflib.hpp"
+
+diff -Naur PDFlib-Lite-7.0.2p8-orig/bind/pdflib/cpp/invoice.cpp PDFlib-Lite-7.0.2p8/bind/pdflib/cpp/invoice.cpp
+--- PDFlib-Lite-7.0.2p8-orig/bind/pdflib/cpp/invoice.cpp 2008-02-28 03:43:00.000000000 -0600
++++ PDFlib-Lite-7.0.2p8/bind/pdflib/cpp/invoice.cpp 2008-03-05 20:55:56.000000000 -0600
+@@ -4,6 +4,7 @@
+ //
+
+ #include <iostream>
++#include <cstring>
+
+ #include <time.h>
+
+diff -Naur PDFlib-Lite-7.0.2p8-orig/bind/pdflib/cpp/starter_block.cpp PDFlib-Lite-7.0.2p8/bind/pdflib/cpp/starter_block.cpp
+--- PDFlib-Lite-7.0.2p8-orig/bind/pdflib/cpp/starter_block.cpp 2008-02-28 03:43:00.000000000 -0600
++++ PDFlib-Lite-7.0.2p8/bind/pdflib/cpp/starter_block.cpp 2008-03-05 20:57:39.000000000 -0600
+@@ -12,6 +12,7 @@
+ */
+
+ #include <iostream>
++#include <cstring>
+
+ #include "pdflib.hpp"
+
+diff -Naur PDFlib-Lite-7.0.2p8-orig/bind/pdflib/cpp/starter_basic.cpp PDFlib-Lite-7.0.2p8/bind/pdflib/cpp/starter_basic.cpp
+--- PDFlib-Lite-7.0.2p8-orig/bind/pdflib/cpp/starter_basic.cpp 2008-02-28 03:43:00.000000000 -0600
++++ PDFlib-Lite-7.0.2p8/bind/pdflib/cpp/starter_basic.cpp 2008-03-05 20:58:56.000000000 -0600
+@@ -7,6 +7,7 @@
+ // required data: none
+
+ #include <iostream>
++#include <cstring>
+
+ #include "pdflib.hpp"
+
+diff -Naur PDFlib-Lite-7.0.2p8-orig/bind/pdflib/cpp/starter_pvf.cpp PDFlib-Lite-7.0.2p8/bind/pdflib/cpp/starter_pvf.cpp
+--- PDFlib-Lite-7.0.2p8-orig/bind/pdflib/cpp/starter_pvf.cpp 2008-02-28 03:43:00.000000000 -0600
++++ PDFlib-Lite-7.0.2p8/bind/pdflib/cpp/starter_pvf.cpp 2008-03-05 21:01:17.000000000 -0600
+@@ -13,6 +13,7 @@
+ * Required data: image file
+ */
+ #include <iostream>
++#include <cstdlib>
+
+ #include "pdflib.hpp"
+
diff --git a/media-libs/pdflib/pdflib-7.0.2_p8.ebuild b/media-libs/pdflib/pdflib-7.0.2_p8.ebuild
index 947b5d516ba8..640041398214 100644
--- a/media-libs/pdflib/pdflib-7.0.2_p8.ebuild
+++ b/media-libs/pdflib/pdflib-7.0.2_p8.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/pdflib/pdflib-7.0.2_p8.ebuild,v 1.7 2008/03/04 20:53:47 dertobi123 Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/pdflib/pdflib-7.0.2_p8.ebuild,v 1.8 2008/03/06 23:48:44 dirtyepic Exp $
EAPI="1"
@@ -40,6 +40,8 @@ src_unpack() {
unpack ${A}
cd "${S}"
+ epatch "${FILESDIR}"/${P}-gcc-4.3.patch
+
# fix broken configure option for ruby bindings.
# do NOT call eautoreconf here, it breaks configure horribly.
epatch "${FILESDIR}"/${P}-ruby-configure.patch