[packages/pdfedit] - added fixbuild patch from fedora

baggins baggins at pld-linux.org
Sun Jan 26 01:39:51 CET 2014


commit f128aa4eb795a1e8450fb2366653a2135c139166
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Jan 26 01:39:39 2014 +0100

    - added fixbuild patch from fedora

 pdfedit-fixbuild.patch | 47 +++++++++++++++++++++++++++++++++++++++++++++++
 pdfedit.spec           |  3 +++
 2 files changed, 50 insertions(+)
---
diff --git a/pdfedit.spec b/pdfedit.spec
index b10e4f6..c6c7d16 100644
--- a/pdfedit.spec
+++ b/pdfedit.spec
@@ -20,6 +20,7 @@ License:	GPL v2
 Group:		X11/Applications
 Source0:	http://download.sourceforge.net/pdfedit/%{name}-%{version}.tar.bz2
 # Source0-md5:	80502ee7f08cdfb867ffdaa92d160a23
+Patch0:		pdfedit-fixbuild.patch
 URL:		http://pdfedit.petricek.net/
 BuildRequires:	autoconf
 BuildRequires:	boost-devel >= 1.35.0
@@ -53,6 +54,8 @@ wtyczki.
 
 %prep
 %setup -q
+%patch0 -p1
+
 # remove bashizms
 sed -e 's/function //g' -i getversion tools/generate_lang.sh
 
diff --git a/pdfedit-fixbuild.patch b/pdfedit-fixbuild.patch
new file mode 100644
index 0000000..25bf944
--- /dev/null
+++ b/pdfedit-fixbuild.patch
@@ -0,0 +1,47 @@
+diff -up ./src/gui/rect2Darray.h.045f17 ./src/gui/rect2Darray.h
+--- ./src/gui/rect2Darray.h.045f17	2009-04-06 17:24:50.000000000 +0200
++++ ./src/gui/rect2Darray.h	2012-12-07 23:15:09.703862328 +0100
+@@ -305,7 +305,7 @@ void RectArray<T>::myAppend ( const BBox
+ 		minY = std::min( minY, item->top() );
+ 		maxY = std::max( maxY, item->bottom() );
+ 	}
+-	append( item );
++	this->append( item );
+ }
+ 
+ template <typename T>
+@@ -461,7 +461,7 @@ void Rect2DArray<T>::myAppend( BBoxOfObj
+ 	if (toAppend) {
+ 		current = new RectArray<T>();
+ 		current->myAppend( bbox );
+-		append( current );
++		this->append( current );
+ 	}
+ }
+ 
+diff -up ./src/kernel/cobject2xpdf.cc.045f17 ./src/kernel/cobject2xpdf.cc
+--- ./src/kernel/cobject2xpdf.cc.045f17	2009-09-11 14:02:56.000000000 +0200
++++ ./src/kernel/cobject2xpdf.cc	2012-12-07 23:15:33.847932118 +0100
+@@ -718,6 +718,10 @@ simpleValueFromXpdfObj (const Object& ob
+ 	rp (obj,val);
+ }
+ 
++template
++void
++simpleValueFromXpdfObj<pReal, double&> (const Object&, double& val);
++
+ //
+ // Special case for pNull
+ //
+diff -up ./src/xpdf/xpdf/Object.h.f19build ./src/xpdf/xpdf/Object.h
+--- ./src/xpdf/xpdf/Object.h.f19build	2013-02-18 09:45:55.978433861 -0500
++++ ./src/xpdf/xpdf/Object.h	2013-02-18 09:46:07.430435071 -0500
+@@ -206,7 +206,7 @@ public:
+ private:
+ 
+   ObjType type;			// object type
+-  mutable union {		// value for each type:
++   union {			// value for each type:
+     GBool booln;		//   boolean
+     int intg;			//   integer
+     double real;		//   real
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pdfedit.git/commitdiff/f128aa4eb795a1e8450fb2366653a2135c139166



More information about the pld-cvs-commit mailing list