]> git.pld-linux.org Git - packages/podofo.git/commitdiff
- added cppunit patch (fixes build with recent gcc) auto/th/podofo-0.9.8-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 29 Jan 2023 16:37:03 +0000 (17:37 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 29 Jan 2023 16:37:03 +0000 (17:37 +0100)
podofo-cppunit.patch [new file with mode: 0644]
podofo.spec

diff --git a/podofo-cppunit.patch b/podofo-cppunit.patch
new file mode 100644 (file)
index 0000000..ddc77b8
--- /dev/null
@@ -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()
+ {
+ }
index 1452cf51241ca989be54856da0c7ecce8013d289..e5af81e18f1daba62754e30b072efe163e5b5a2e 100644 (file)
@@ -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
This page took 0.227272 seconds and 4 git commands to generate.