[packages/podofo] - added cppunit patch (fixes build with recent gcc)

qboosh qboosh at pld-linux.org
Sun Jan 29 17:35:42 CET 2023


commit 7b862b5a98f79ecba4e2f5c4313c45866a5a922f
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Jan 29 17:37:03 2023 +0100

    - added cppunit patch (fixes build with recent gcc)

 podofo-cppunit.patch | 30 ++++++++++++++++++++++++++++++
 podofo.spec          |  2 ++
 2 files changed, 32 insertions(+)
---
diff --git a/podofo.spec b/podofo.spec
index 1452cf5..e5af81e 100644
--- a/podofo.spec
+++ b/podofo.spec
@@ -11,6 +11,7 @@ License:	LGPL with OpenSSL exception
 Group:		Libraries
 Source0:	https://downloads.sourceforge.net/podofo/%{name}-%{version}.tar.gz
 # Source0-md5:	f6d3d5f917c7150c44fc6a15848442dd
+Patch0:		%{name}-cppunit.patch
 URL:		https://podofo.sourceforge.net/
 # for examples only, with -DWANT_BOOST=ON
 #BuildRequires:	boost-devel
@@ -114,6 +115,7 @@ Programy przykładowe do PoDoFo.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 install -d build
diff --git a/podofo-cppunit.patch b/podofo-cppunit.patch
new file mode 100644
index 0000000..ddc77b8
--- /dev/null
+++ b/podofo-cppunit.patch
@@ -0,0 +1,30 @@
+--- podofo-0.9.8/test/unit/StringTest.cpp.orig	2019-01-15 14:04:40.000000000 +0100
++++ podofo-0.9.8/test/unit/StringTest.cpp	2023-01-29 16:58:01.449674179 +0100
+@@ -18,22 +18,22 @@
+  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+  ***************************************************************************/
+ 
+-#include "StringTest.h"
+-
+ #include <podofo.h>
+ 
+ #ifndef __clang__
+ 
+ using namespace PoDoFo;
+ 
+-// Registers the fixture into the 'registry'
+-CPPUNIT_TEST_SUITE_REGISTRATION( StringTest );
+-
+ inline std::ostream& operator<<(std::ostream& o, const PdfString& s)
+ {
+     return o << s.GetStringUtf8();
+ }
+ 
++#include "StringTest.h"
++
++// Registers the fixture into the 'registry'
++CPPUNIT_TEST_SUITE_REGISTRATION( StringTest );
++
+ void StringTest::setUp()
+ {
+ }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/podofo.git/commitdiff/7b862b5a98f79ecba4e2f5c4313c45866a5a922f



More information about the pld-cvs-commit mailing list