1 |
scarabeus 11/09/30 10:09:16 |
2 |
|
3 |
Modified: libreoffice-poppler-0.18.0.patch |
4 |
Added: libreoffice-poppler-0.18.0-2.patch |
5 |
Log: |
6 |
Add another patch to fix poppler for good. |
7 |
|
8 |
(Portage version: 2.2.0_alpha60/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.3 app-office/libreoffice/files/libreoffice-poppler-0.18.0.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/files/libreoffice-poppler-0.18.0.patch?rev=1.3&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/files/libreoffice-poppler-0.18.0.patch?rev=1.3&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/files/libreoffice-poppler-0.18.0.patch?r1=1.2&r2=1.3 |
16 |
|
17 |
Index: libreoffice-poppler-0.18.0.patch |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-office/libreoffice/files/libreoffice-poppler-0.18.0.patch,v |
20 |
retrieving revision 1.2 |
21 |
retrieving revision 1.3 |
22 |
diff -u -r1.2 -r1.3 |
23 |
--- libreoffice-poppler-0.18.0.patch 29 Sep 2011 14:09:59 -0000 1.2 |
24 |
+++ libreoffice-poppler-0.18.0.patch 30 Sep 2011 10:09:16 -0000 1.3 |
25 |
@@ -1,24 +1,62 @@ |
26 |
-From 91313fc05abbfe35ee1e0c2464a28dd580780f07 Mon Sep 17 00:00:00 2001 |
27 |
-From: Caolán McNamara <caolanm@××××××.com> |
28 |
-Date: Fri, 02 Sep 2011 12:15:49 +0000 |
29 |
-Subject: Resolves: rhbz#735182 libreoffice doesn't build with poppler-0.17.3 |
30 |
+From 53e66aea4c1b3617363fd138a7903190d964da6b Mon Sep 17 00:00:00 2001 |
31 |
+From: Tomáš Chvátal <tchvatal@××××.cz> |
32 |
+Date: Fri, 30 Sep 2011 09:51:04 +0000 |
33 |
+Subject: This is merge of f6f8f67460bba296c49f794d14621b7313df4f7d. |
34 |
+ |
35 |
+It is not posible to git-am due to merge to core/ repository. |
36 |
+It had one minor collision on pdfioutdev_gpl.hxx. |
37 |
|
38 |
+Orginal header: |
39 |
+From f6f8f67460bba296c49f794d14621b7313df4f7d Mon Sep 17 00:00:00 2001 |
40 |
+From: Caolán McNamara <caolanm@××××××.com> |
41 |
+Date: Tue, 19 Jul 2011 07:54:07 +0000 |
42 |
+Subject: poppler 0.17.0 changed its api for no some reason or other |
43 |
--- |
44 |
diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx |
45 |
-index cf28922..3f1261c 100644 |
46 |
+index f7741b4..5022dd5 100644 |
47 |
--- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx |
48 |
+++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx |
49 |
-@@ -150,7 +150,11 @@ void writeBinaryBuffer( const OutputBuffer& rBuffer ) |
50 |
- void writeJpeg_( OutputBuffer& o_rOutputBuf, Stream* str, bool bWithLinefeed ) |
51 |
- { |
52 |
- // dump JPEG file as-is |
53 |
-+#if POPPLER_CHECK_VERSION(0, 17, 3) |
54 |
-+ str = str->getBaseStream(); |
55 |
+@@ -489,7 +489,11 @@ void PDFOutDev::endPage() |
56 |
+ printf("endPage\n"); |
57 |
+ } |
58 |
+ |
59 |
++#if POPPLER_CHECK_VERSION(0, 17, 0) |
60 |
++void PDFOutDev::processLink(AnnotLink *link, Catalog *catalog) |
61 |
+#else |
62 |
- str = ((DCTStream *)str)->getRawStream(); |
63 |
+ void PDFOutDev::processLink(Link* link, Catalog*) |
64 |
+#endif |
65 |
- str->reset(); |
66 |
+ { |
67 |
+ assert(link); |
68 |
+ |
69 |
+diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx |
70 |
+index 3ac0f49..8a1708c 100644 |
71 |
+--- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx |
72 |
++++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx |
73 |
+@@ -65,7 +65,10 @@ class GfxPath; |
74 |
+ class GfxFont; |
75 |
+ class PDFDoc; |
76 |
+ #ifndef SYSTEM_POPPLER |
77 |
++#define POPPLER_CHECK_VERSION(major,minor,micro) (0) |
78 |
+ typedef GString GooString; |
79 |
++#else |
80 |
++#include <glib/poppler-features.h> |
81 |
+ #endif |
82 |
|
83 |
- int c; |
84 |
+ namespace pdfi |
85 |
+@@ -193,9 +196,13 @@ namespace pdfi |
86 |
+ // Convert between device and user coordinates. |
87 |
+ // virtual void cvtDevToUser(double dx, double dy, double *ux, double *uy); |
88 |
+ // virtual void cvtUserToDev(double ux, double uy, int *dx, int *dy); |
89 |
+- |
90 |
++ |
91 |
++ #if POPPLER_CHECK_VERSION(0, 17, 0) |
92 |
++ virtual void processLink(AnnotLink *link, Catalog *catalog); |
93 |
++ #else |
94 |
+ //----- link borders |
95 |
+ virtual void processLink(Link *link, Catalog *catalog); |
96 |
++ #endif |
97 |
+ |
98 |
+ //----- save/restore graphics state |
99 |
+ virtual void saveState(GfxState *state); |
100 |
-- |
101 |
cgit v0.9.0.2-2-gbebe |
102 |
|
103 |
|
104 |
|
105 |
1.1 app-office/libreoffice/files/libreoffice-poppler-0.18.0-2.patch |
106 |
|
107 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/files/libreoffice-poppler-0.18.0-2.patch?rev=1.1&view=markup |
108 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/files/libreoffice-poppler-0.18.0-2.patch?rev=1.1&content-type=text/plain |
109 |
|
110 |
Index: libreoffice-poppler-0.18.0-2.patch |
111 |
=================================================================== |
112 |
From 9540db43f3f1b11d3407a45aefda235d7e78f76b Mon Sep 17 00:00:00 2001 |
113 |
From: Caolán McNamara <caolanm@××××××.com> |
114 |
Date: Fri, 02 Sep 2011 12:15:49 +0000 |
115 |
Subject: Resolves: rhbz#735182 libreoffice doesn't build with poppler-0.17.3 |
116 |
|
117 |
--- |
118 |
diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx |
119 |
index 5022dd5..bd6d721 100644 |
120 |
--- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx |
121 |
+++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx |
122 |
@@ -150,7 +150,11 @@ void writeBinaryBuffer( const OutputBuffer& rBuffer ) |
123 |
void writeJpeg_( OutputBuffer& o_rOutputBuf, Stream* str, bool bWithLinefeed ) |
124 |
{ |
125 |
// dump JPEG file as-is |
126 |
+#if POPPLER_CHECK_VERSION(0, 17, 3) |
127 |
+ str = str->getBaseStream(); |
128 |
+#else |
129 |
str = ((DCTStream *)str)->getRawStream(); |
130 |
+#endif |
131 |
str->reset(); |
132 |
|
133 |
int c; |
134 |
@@ -490,7 +494,7 @@ void PDFOutDev::endPage() |
135 |
} |
136 |
|
137 |
#if POPPLER_CHECK_VERSION(0, 17, 0) |
138 |
-void PDFOutDev::processLink(AnnotLink *link, Catalog *catalog) |
139 |
+void PDFOutDev::processLink(AnnotLink *link, Catalog *) |
140 |
#else |
141 |
void PDFOutDev::processLink(Link* link, Catalog*) |
142 |
#endif |
143 |
-- |
144 |
cgit v0.9.0.2-2-gbebe |