From ab89e742f0435b9a22f2fb4c09246de7707514db Mon Sep 17 00:00:00 2001 From: dsomero Date: Tue, 25 Sep 2012 18:50:55 -0400 Subject: office/pdfedit: Patched for gcc 4.7 Signed-off-by: dsomero --- office/pdfedit/gcc47.patch | 36 ++++++++++++++++++++++++++++++++++++ office/pdfedit/pdfedit.SlackBuild | 5 ++++- 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 office/pdfedit/gcc47.patch diff --git a/office/pdfedit/gcc47.patch b/office/pdfedit/gcc47.patch new file mode 100644 index 0000000000..10400bc074 --- /dev/null +++ b/office/pdfedit/gcc47.patch @@ -0,0 +1,36 @@ +--- src/gui/rect2Darray.h.orig ++++ src/gui/rect2Darray.h +@@ -305,7 +305,7 @@ void RectArray::myAppend ( const BBox + minY = std::min( minY, item->top() ); + maxY = std::max( maxY, item->bottom() ); + } +- append( item ); ++ this->append( item ); + } + + template +@@ -461,7 +461,7 @@ void Rect2DArray::myAppend( BBoxOfObj + if (toAppend) { + current = new RectArray(); + current->myAppend( bbox ); +- append( current ); ++ this->append( current ); + } + } + +--- src/kernel/cobject2xpdf.cc 2009/09/11 12:02:56 1.22 ++++ src/kernel/cobject2xpdf.cc 2011/05/21 22:13:21 1.24 +@@ -727,6 +727,13 @@ + { + /*assert (!"operation not permitted...");*//*THIS IS FORBIDDEN IN THE CALLER*/ + } ++template void simpleValueFromXpdfObj (const Object&, bool& val); ++template void simpleValueFromXpdfObj (const Object&, int& val); ++template void simpleValueFromXpdfObj (const Object&, double& val); ++template void simpleValueFromXpdfObj (const Object&, string& val); ++template void simpleValueFromXpdfObj (const Object&, string& val); ++template void simpleValueFromXpdfObj (const Object&, IndiRef& val); ++ + + + // diff --git a/office/pdfedit/pdfedit.SlackBuild b/office/pdfedit/pdfedit.SlackBuild index 091d9470cc..de6468cfb3 100644 --- a/office/pdfedit/pdfedit.SlackBuild +++ b/office/pdfedit/pdfedit.SlackBuild @@ -5,7 +5,7 @@ PRGNAM=pdfedit VERSION=0.4.5 -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -50,6 +50,9 @@ chmod -R u+w,go+r-w,a-s . printf "/usr/share/xml/docbook/xsl-stylesheets-*/html\n" >> \ doc/tools/docbook_xslt_paths +# Patch for gcc 4.7. +patch -p0 -i $CWD/gcc47.patch + ARCH="" \ C_EXTRA="$SLKCFLAGS" \ CXX_EXTRA="$SLKCFLAGS" \ -- cgit v1.2.3