aboutsummaryrefslogtreecommitdiffstats
path: root/packages/qpdf2
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2005-06-30 08:19:37 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-06-30 08:19:37 +0000
commitc8e5702127e507e82e6f68a4b8c546803accea9d (patch)
tree00583491f40ecc640f2b28452af995e3a63a09d7 /packages/qpdf2
parent87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff)
downloadopenembedded-c8e5702127e507e82e6f68a4b8c546803accea9d.tar.gz
import clean BK tree at cset 1.3670
Diffstat (limited to 'packages/qpdf2')
-rw-r--r--packages/qpdf2/.mtn2git_empty0
-rw-r--r--packages/qpdf2/files/.mtn2git_empty0
-rw-r--r--packages/qpdf2/files/fix-sigsegv.patch22
-rw-r--r--packages/qpdf2/files/fix_qtversion_check.patch11
-rw-r--r--packages/qpdf2/files/hack-the-hack.patch173
5 files changed, 206 insertions, 0 deletions
diff --git a/packages/qpdf2/.mtn2git_empty b/packages/qpdf2/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/qpdf2/.mtn2git_empty
diff --git a/packages/qpdf2/files/.mtn2git_empty b/packages/qpdf2/files/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/qpdf2/files/.mtn2git_empty
diff --git a/packages/qpdf2/files/fix-sigsegv.patch b/packages/qpdf2/files/fix-sigsegv.patch
index e69de29bb2..33e9599d1c 100644
--- a/packages/qpdf2/files/fix-sigsegv.patch
+++ b/packages/qpdf2/files/fix-sigsegv.patch
@@ -0,0 +1,22 @@
+
+#
+# Patch managed by http://www.holgerschurig.de/patcher.html
+#
+
+--- qpdf2_2.2.1/qpdf.cpp~fix-sigsegv
++++ qpdf2_2.2.1/qpdf.cpp
+@@ -42,10 +42,10 @@
+ {
+ QPEApplication app ( argc, argv );
+
+- if (argc >= 1
+- && strcmp(argv[1],"-d") == 0) {
+- qpdf_debug_level = atoi(argv[2]);
+- }
++// if (argc >= 1
++// && strcmp(argv[1],"-d") == 0) {
++// qpdf_debug_level = atoi(argv[2]);
++// }
+
+ // read config file
+ globalParams = new GlobalParams ( "" );
diff --git a/packages/qpdf2/files/fix_qtversion_check.patch b/packages/qpdf2/files/fix_qtversion_check.patch
index e69de29bb2..4dcb32d350 100644
--- a/packages/qpdf2/files/fix_qtversion_check.patch
+++ b/packages/qpdf2/files/fix_qtversion_check.patch
@@ -0,0 +1,11 @@
+--- qpdf2_2.2.1/QOutputDev.cpp.orig 2005-01-31 10:57:03.000000000 +0000
++++ qpdf2_2.2.1/QOutputDev.cpp 2005-01-31 10:57:36.000000000 +0000
+@@ -1083,7 +1083,7 @@
+ tmp. setPoints ( 4, lrint ( x0 ), lrint ( y0 ), lrint ( x1 ), lrint ( y1 ),
+ lrint ( x2 ), lrint ( y2 ), lrint ( x3 ), lrint ( y3 ));
+
+-#if QT_VERSION < 300
++#if QT_VERSION < 0x030000
+ tmp = tmp. quadBezier ( );
+
+ for ( uint loop = 0; loop < tmp. count ( ); loop++ ) {
diff --git a/packages/qpdf2/files/hack-the-hack.patch b/packages/qpdf2/files/hack-the-hack.patch
index e69de29bb2..52fc488f68 100644
--- a/packages/qpdf2/files/hack-the-hack.patch
+++ b/packages/qpdf2/files/hack-the-hack.patch
@@ -0,0 +1,173 @@
+
+#
+# Patch managed by http://www.holgerschurig.de/patcher.html
+#
+
+--- qpdf2_2.2.1/qpdfview.cpp~hack-the-hack.patch
++++ qpdf2_2.2.1/qpdfview.cpp
+@@ -4,7 +4,7 @@
+ #ifdef __GNUC__
+ #pragma implementation
+ #endif
+-
++#define private public
+ #include "aconf.h"
+
+ #include "qpdf.h"
+--- qpdf2_2.2.1/qpdf.h~hack-the-hack.patch
++++ qpdf2_2.2.1/qpdf.h
+@@ -1,3 +1,4 @@
++#define private public
+ #ifndef __QPDF_H__
+ #define __QPDF_H__
+
+@@ -12,6 +13,8 @@
+
+ #include "signal.h"
+
++#define private public
++#include <qobject.h>
+ #include <qpe/qpeapplication.h>
+ #include <qpe/resource.h>
+ #include <qpe/applnk.h>
+--- qpdf2_2.2.1/qpdf.cpp~hack-the-hack.patch
++++ qpdf2_2.2.1/qpdf.cpp
+@@ -12,11 +12,11 @@
+ //
+ //========================================================================
+
+-
++#define private public
+ #include "qpdf.h"
+ #include <qpe/qpemenubar.h>
+ #include <qdir.h>
+-
++#include <errno.h>
+ #ifdef AUTOTEST
+ #define MAX_ZOOM 1.2
+ #else
+@@ -2636,15 +2636,6 @@
+ setRenameBar( false );
+ }
+
+-
+-#ifdef ARM
+-extern int errno;
+-#else
+-extern "C" {
+- int errno;
+-};
+-#endif
+-
+ void
+ QPDFWindow::writeConfig()
+ {
+--- qpdf2_2.2.1/textedit.cpp~hack-the-hack.patch
++++ qpdf2_2.2.1/textedit.cpp
+@@ -19,7 +19,7 @@
+ **********************************************************************/
+
+ #include <stdlib.h> //getenv
+-
++#define private public
+ #include <qpe/global.h>
+ #include <qpe/fileselector.h>
+ #include <qpe/applnk.h>
+--- qpdf2_2.2.1/autotest.cpp~hack-the-hack.patch
++++ qpdf2_2.2.1/autotest.cpp
+@@ -7,7 +7,7 @@
+ qobject.h - make the activate_xxx functions public
+
+ */
+-
++#define private public
+ #include "qpdf.h"
+ #ifdef AUTOTEST
+ //#define MEM_LEAKS_EVENT_COUNT 50000
+--- qpdf2_2.2.1/qpdffileselector.cpp~hack-the-hack.patch
++++ qpdf2_2.2.1/qpdffileselector.cpp
+@@ -3,7 +3,7 @@
+
+
+ */
+-
++#define private public
+ #include "qpdf.h"
+
+ #include <qwmatrix.h>
+--- qpdf2_2.2.1/qpdfconfig.cpp~hack-the-hack.patch
++++ qpdf2_2.2.1/qpdfconfig.cpp
+@@ -1,3 +1,4 @@
++#define private public
+ #include "qpdf.h"
+ #include <qpushbutton.h>
+ #include <qradiobutton.h>
+--- qpdf2_2.2.1/qqimage.cpp~hack-the-hack.patch
++++ qpdf2_2.2.1/qqimage.cpp
+@@ -8,7 +8,7 @@
+ "protected:" and add "friend class QQImage" to class QImage.
+
+ */
+-
++#define private public
+
+ /****************************************************************************
+ ** $Id: qt/src/kernel/qimage.cpp 2.3.8-snapshot-20040114 edited 2003-12-29 $
+--- qpdf2_2.2.1/qdocnotes.cpp~hack-the-hack.patch
++++ qpdf2_2.2.1/qdocnotes.cpp
+@@ -5,7 +5,7 @@
+ #include <qpe/stringutil.h>
+ #include <qfile.h>
+ #include <qfileinfo.h>
+-
++#include <errno.h>
+ #define assert(X)
+
+ QDocNote::QDocNote()
+@@ -698,18 +698,6 @@
+ return(save(m_filepath, state));
+ }
+
+-
+-#ifdef ARM
+-extern int errno;
+-extern char *strerror(int);
+-#else
+-extern "C" {
+- int errno;
+- extern char *strerror(int);
+-}
+-#endif
+-
+-
+ bool
+ QDocNotes::save(const QString &filepath, QDocState *state)
+ {
+--- qpdf2_2.2.1/xpdf/PDFDoc.cc~hack-the-hack.patch
++++ qpdf2_2.2.1/xpdf/PDFDoc.cc
+@@ -7,7 +7,7 @@
+ //========================================================================
+
+ #include <aconf.h>
+-
++#include <errno.h>
+ #ifdef USE_GCC_PRAGMAS
+ #pragma implementation
+ #endif
+@@ -205,16 +205,6 @@
+ }
+ }
+
+-#ifdef ARM
+-extern int errno;
+-extern char *strerror(int);
+-#else
+-extern "C" {
+- int errno;
+- extern char *strerror(int);
+-}
+-#endif
+-
+ void PDFDoc::displayPage(OutputDev *out, int page, fouble hDPI, fouble vDPI,
+ int rotate, GBool doLinks,
+ GBool (*abortCheckCbk)(void *data),