[arch-commits] CVS update of extra/office/poppler (5 files)
Jan de Groot
jgc at archlinux.org
Sat Jul 7 11:50:31 UTC 2007
Date: Saturday, July 7, 2007 @ 07:50:31
Author: jgc
Path: /home/cvs-extra/extra/office/poppler
Added: poppler-0.5.9-header.patch (1.1)
Modified: PKGBUILD (1.24 -> 1.25)
Removed: CVE-2007-0104.patch (1.1) cairo-output-cvs20061221.patch (1.1)
fdo5589.patch (1.2)
upgpkg: poppler 0.5.9-1
Add patch to fix an issue that could act up when we are crazy enough to patch xpdf to depend on poppler
--------------------------------+
CVE-2007-0104.patch | 70 ---------
PKGBUILD | 24 +--
cairo-output-cvs20061221.patch | 85 -----------
fdo5589.patch | 288 ---------------------------------------
poppler-0.5.9-header.patch | 73 +++++++++
5 files changed, 83 insertions(+), 457 deletions(-)
Index: extra/office/poppler/CVE-2007-0104.patch
diff -u extra/office/poppler/CVE-2007-0104.patch:1.1 extra/office/poppler/CVE-2007-0104.patch:removed
--- extra/office/poppler/CVE-2007-0104.patch:1.1 Sun Jan 21 18:22:10 2007
+++ extra/office/poppler/CVE-2007-0104.patch Sat Jul 7 07:50:31 2007
@@ -1,70 +0,0 @@
---- poppler/Catalog.cc 2006/08/11 13:12:11 1.17
-+++ poppler/Catalog.cc 2007/01/11 22:14:02 1.17.2.1
-@@ -26,6 +26,12 @@
- #include "UGooString.h"
- #include "Catalog.h"
-
-+// This define is used to limit the depth of recursive readPageTree calls
-+// This is needed because the page tree nodes can reference their parents
-+// leaving us in an infinite loop
-+// Most sane pdf documents don't have a call depth higher than 10
-+#define MAX_CALL_DEPTH 1000
-+
- //------------------------------------------------------------------------
- // Catalog
- //------------------------------------------------------------------------
-@@ -75,7 +81,7 @@
- pageRefs[i].num = -1;
- pageRefs[i].gen = -1;
- }
-- numPages = readPageTree(pagesDict.getDict(), NULL, 0);
-+ numPages = readPageTree(pagesDict.getDict(), NULL, 0, 0);
- if (numPages != numPages0) {
- error(-1, "Page count in top-level pages object is incorrect");
- }
-@@ -217,7 +223,7 @@
- return s;
- }
-
--int Catalog::readPageTree(Dict *pagesDict, PageAttrs *attrs, int start) {
-+int Catalog::readPageTree(Dict *pagesDict, PageAttrs *attrs, int start, int callDepth) {
- Object kids;
- Object kid;
- Object kidRef;
-@@ -262,9 +268,13 @@
- // This should really be isDict("Pages"), but I've seen at least one
- // PDF file where the /Type entry is missing.
- } else if (kid.isDict()) {
-- if ((start = readPageTree(kid.getDict(), attrs1, start))
-- < 0)
-- goto err2;
-+ if (callDepth > MAX_CALL_DEPTH) {
-+ error(-1, "Limit of %d recursive calls reached while reading the page tree. If your document is correct and not a test to try to force a crash, please report a bug.", MAX_CALL_DEPTH);
-+ } else {
-+ if ((start = readPageTree(kid.getDict(), attrs1, start, callDepth + 1))
-+ < 0)
-+ goto err2;
-+ }
- } else {
- error(-1, "Kid object (page %d) is wrong type (%s)",
- start+1, kid.getTypeName());
---- poppler/Catalog.h 2006/01/18 22:32:13 1.8
-+++ poppler/Catalog.h 2007/01/11 22:14:02 1.8.2.2
-@@ -166,7 +166,7 @@
- pageLayoutTwoColumnLeft,
- pageLayoutTwoColumnRight,
- pageLayoutTwoPageLeft,
-- pageLayoutTwoPageRight,
-+ pageLayoutTwoPageRight
- };
-
- // Returns the page mode.
-@@ -193,7 +193,7 @@
- PageMode pageMode; // page mode
- PageLayout pageLayout; // page layout
-
-- int readPageTree(Dict *pages, PageAttrs *attrs, int start);
-+ int readPageTree(Dict *pages, PageAttrs *attrs, int start, int callDepth);
- Object *findDestInTree(Object *tree, GooString *name, Object *obj);
- };
-
Index: extra/office/poppler/PKGBUILD
diff -u extra/office/poppler/PKGBUILD:1.24 extra/office/poppler/PKGBUILD:1.25
--- extra/office/poppler/PKGBUILD:1.24 Mon Apr 16 14:16:32 2007
+++ extra/office/poppler/PKGBUILD Sat Jul 7 07:50:31 2007
@@ -1,32 +1,28 @@
-# $Id: PKGBUILD,v 1.24 2007/04/16 18:16:32 jgc Exp $
+# $Id: PKGBUILD,v 1.25 2007/07/07 11:50:31 jgc Exp $
# Maintainer: Jan de Groot <jgc at archlinux.org>
pkgname=poppler
-pkgver=0.5.4
+pkgver=0.5.9
_dataver=0.1
-pkgrel=4
+pkgrel=1
pkgdesc="PDF rendering library based on xpdf 3.0"
arch=(i686 x86_64)
license=('GPL' 'custom')
-depends=('libjpeg' 'gcc' 'cairo')
+depends=('libjpeg' 'gcc' 'cairo' 'libxml2' 'fontconfig')
makedepends=('pkgconfig')
-options=('nolibtool')
+options=('!libtool')
url="http://poppler.freedesktop.org/"
source=(http://poppler.freedesktop.org/${pkgname}-${pkgver}.tar.gz
http://poppler.freedesktop.org/poppler-data-${_dataver}.tar.gz
- cairo-output-cvs20061221.patch
- fdo5589.patch
- CVE-2007-0104.patch)
-md5sums=('053fdfd70533ecce1a06353fa945f061' '5c700eb06dda9dafec09cd85225e34d4'
- '2989492ac0bd67b1d8a433c6fedbf530' 'd402c2dc4f39372256b33b9bd0204b71'
- '2c465dd5c05b3e47fb6eb2259b711b16')
+ poppler-0.5.9-header.patch)
+md5sums=('8d1ac008614c0e413bcac95b8102fa07'
+ '5c700eb06dda9dafec09cd85225e34d4'
+ '0d83ad0368c55eb6b3c1a2f785ca0bc1')
build() {
cd ${startdir}/src/${pkgname}-${pkgver}
- patch -Np0 -i ${startdir}/src/cairo-output-cvs20061221.patch || return 1
- patch -Np0 -i ${startdir}/src/fdo5589.patch || return 1
- patch -Np0 -i ${startdir}/src/CVE-2007-0104.patch || return 1
+ patch -Np1 -i ${startdir}/src/poppler-0.5.9-header.patch || return 1
./configure --prefix=/usr --sysconfdir=/etc \
--localstatedir=/var --disable-static \
--enable-cairo-output \
Index: extra/office/poppler/cairo-output-cvs20061221.patch
diff -u extra/office/poppler/cairo-output-cvs20061221.patch:1.1 extra/office/poppler/cairo-output-cvs20061221.patch:removed
--- extra/office/poppler/cairo-output-cvs20061221.patch:1.1 Mon Apr 16 13:55:48 2007
+++ extra/office/poppler/cairo-output-cvs20061221.patch Sat Jul 7 07:50:31 2007
@@ -1,85 +0,0 @@
---- poppler/CairoOutputDev.cc 2006/09/21 00:56:33 1.44
-+++ poppler/CairoOutputDev.cc 2006/12/21 01:01:30 1.48
-@@ -134,7 +134,7 @@
- matrix.x0 = ctm[4];
- matrix.y0 = ctm[5];
-
-- cairo_set_matrix (cairo, &matrix);
-+ cairo_transform (cairo, &matrix);
-
- OutputDev::setDefaultCTM(ctm);
- }
-@@ -202,12 +202,18 @@
- cairo_set_miter_limit (cairo, state->getMiterLimit());
- }
-
-+#define MIN(a,b) (a) < (b) ? (a) : (b)
-+
- void CairoOutputDev::updateLineWidth(GfxState *state) {
- LOG(printf ("line width: %f\n", state->getLineWidth()));
- if (state->getLineWidth() == 0.0) {
-- cairo_set_line_width (cairo, 72.0/300.0);
-+ /* find out how big pixels (device unit) are in the x and y directions
-+ * choose the smaller of the two as our line width */
-+ double x = 1.0, y = 1.0;
-+ cairo_device_to_user_distance(cairo, &x, &y);
-+ cairo_set_line_width (cairo, MIN(fabs(x),fabs(y)));
- } else {
-- cairo_set_line_width (cairo, state->getLineWidth());
-+ cairo_set_line_width (cairo, state->getLineWidth());
- }
- }
-
-@@ -263,8 +269,6 @@
-
- void CairoOutputDev::updateFont(GfxState *state) {
- cairo_font_face_t *font_face;
-- double m11, m12, m21, m22;
-- double w;
- cairo_matrix_t matrix;
-
- LOG(printf ("updateFont() font=%s\n", state->getFont()->getName()->getCString()));
-@@ -278,9 +282,6 @@
-
- if (!currentFont)
- return;
-- state->getFontTransMat(&m11, &m12, &m21, &m22);
-- m11 *= state->getHorizScaling();
-- m12 *= state->getHorizScaling();
-
- LOG(printf ("font matrix: %f %f %f %f\n", m11, m12, m21, m22));
-
-@@ -289,8 +290,8 @@
-
- double fontSize = state->getFontSize();
- double *m = state->getTextMat();
-- matrix.xx = m[0] * fontSize;
-- matrix.yx = m[1] * fontSize;
-+ matrix.xx = m[0] * fontSize * state->getHorizScaling();
-+ matrix.yx = m[1] * fontSize * state->getHorizScaling();
- matrix.xy = -m[2] * fontSize;
- matrix.yy = -m[3] * fontSize;
- matrix.x0 = 0;
-@@ -620,7 +621,6 @@
- GfxRGB rgb;
- int alpha, i;
- cairo_matrix_t matrix;
-- cairo_matrix_t maskMatrix;
- int is_identity_transform;
-
- buffer = (unsigned char *)gmalloc (width * height * 4);
-@@ -662,12 +662,9 @@
- cairo_matrix_init_translate (&matrix, 0, height);
- cairo_matrix_scale (&matrix, width, -height);
-
-- cairo_matrix_init_translate (&maskMatrix, 0, maskHeight);
-- cairo_matrix_scale (&maskMatrix, maskWidth, -maskHeight);
--
--
-+ /* scale the mask to the size of the image unlike softMask */
- cairo_pattern_set_matrix (pattern, &matrix);
-- cairo_pattern_set_matrix (maskPattern, &maskMatrix);
-+ cairo_pattern_set_matrix (maskPattern, &matrix);
-
- cairo_pattern_set_filter (pattern, CAIRO_FILTER_BILINEAR);
- cairo_set_source (cairo, pattern);
Index: extra/office/poppler/fdo5589.patch
diff -u extra/office/poppler/fdo5589.patch:1.2 extra/office/poppler/fdo5589.patch:removed
--- extra/office/poppler/fdo5589.patch:1.2 Mon Apr 16 14:16:32 2007
+++ extra/office/poppler/fdo5589.patch Sat Jul 7 07:50:31 2007
@@ -1,288 +0,0 @@
-Index: poppler/CairoOutputDev.cc
-===================================================================
-RCS file: /cvs/poppler/poppler/poppler/CairoOutputDev.cc,v
-retrieving revision 1.48
-diff -u -r1.48 CairoOutputDev.cc
---- poppler/CairoOutputDev.cc 21 Dec 2006 01:01:30 -0000 1.48
-+++ poppler/CairoOutputDev.cc 24 Mar 2007 21:02:41 -0000
-@@ -15,6 +15,7 @@
-
- #include <string.h>
- #include <math.h>
-+#include <assert.h>
- #include <cairo.h>
-
- #include "goo/gfile.h"
-@@ -30,7 +31,6 @@
- #include <splash/SplashBitmap.h>
- #include "CairoOutputDev.h"
- #include "CairoFontEngine.h"
--
- //------------------------------------------------------------------------
-
- // #define LOG_CAIRO
-@@ -202,7 +202,7 @@
- cairo_set_miter_limit (cairo, state->getMiterLimit());
- }
-
--#define MIN(a,b) (a) < (b) ? (a) : (b)
-+#define MIN(a,b) (((a) < (b)) ? (a) : (b))
-
- void CairoOutputDev::updateLineWidth(GfxState *state) {
- LOG(printf ("line width: %f\n", state->getLineWidth()));
-@@ -491,6 +491,17 @@
-
- }
-
-+static inline int splashRound(SplashCoord x) {
-+ return (int)floor(x + 0.5);
-+}
-+
-+static inline int splashCeil(SplashCoord x) {
-+ return (int)ceil(x);
-+}
-+
-+static inline int splashFloor(SplashCoord x) {
-+ return (int)floor(x);
-+}
-
- void CairoOutputDev::drawImageMask(GfxState *state, Object *ref, Stream *str,
- int width, int height, GBool invert,
-@@ -517,13 +528,58 @@
- cairo_restore (cairo);
- return;
- }
--
-- row_stride = (width + 3) & ~3;
-- buffer = (unsigned char *) malloc (height * row_stride);
-- if (buffer == NULL) {
-- error(-1, "Unable to allocate memory for image.");
-- return;
-- }
-+ /*XXX BUGS: cannadoc 013 - the arrow should be filled in but it is not. */
-+ cairo_get_matrix(cairo, &matrix);
-+ //printf("[%f %f], [%f %f], %f %f\n", matrix.xx, matrix.xy, matrix.yx, matrix.yy, matrix.x0, matrix.y0);
-+ //{
-+ double xScale = matrix.xx;
-+ double yScale = matrix.yy;
-+ int tx, tx2, ty, ty2;
-+ int scaledHeight = height;
-+ int scaledWidth = width;
-+ if (xScale >= 0) {
-+ tx = splashRound(matrix.x0 - 0.01);
-+ tx2 = splashRound(matrix.x0 + xScale + 0.01) - 1;
-+ } else {
-+ tx = splashRound(matrix.x0 + 0.01) - 1;
-+ tx2 = splashRound(matrix.x0 + xScale - 0.01);
-+ }
-+ scaledWidth = abs(tx2 - tx) + 1;
-+ //scaledWidth = splashRound(fabs(xScale));
-+ if (scaledWidth == 0) {
-+ // technically, this should draw nothing, but it generally seems
-+ // better to draw a one-pixel-wide stripe rather than throwing it
-+ // away
-+ scaledWidth = 1;
-+ }
-+ if (yScale >= 0) {
-+ ty = splashFloor(matrix.y0 + 0.01);
-+ ty2 = splashCeil(matrix.y0 + yScale - 0.01);
-+ } else {
-+ ty = splashCeil(matrix.y0 - 0.01);
-+ ty2 = splashFloor(matrix.y0 + yScale + 0.01);
-+ }
-+ scaledHeight = abs(ty2 - ty);
-+ int need_pad = 0;
-+ int head_pad = 0;
-+ int tail_pad = 0;
-+ if (splashRound(fabs(yScale)) < splashCeil(fabs(yScale)))
-+ need_pad = 1;
-+
-+ //printf("xscale: %g, yscale: %g\n", xScale, yScale);
-+ //printf("width: %d, height: %d\n", width, height);
-+ //printf("scaledWidth: %d, scaledHeight: %d\n", scaledWidth, scaledHeight);
-+ /*XXX: URGENT PROBLEM: if yScale is very small these get very big, which is very bad
-+ * They cause us to large allocations and lots of uneccessary work */
-+ tail_pad = (matrix.y0 - ty)*(height/yScale);
-+ head_pad = (ty2 - (matrix.y0 + yScale))*(height/yScale);
-+ //printf("head_pad: %d tail_pad: %d\n", head_pad, tail_pad);
-+ int origHeight = height;
-+ height += tail_pad;
-+ height += head_pad;
-+ //printf("origHeight: %d height: %d\n", origHeight, height);
-+ //printf("ty: %d, ty2: %d\n", ty, ty2);
-+ //}
-
- /* TODO: Do we want to cache these? */
- imgStr = new ImageStream(str, width, 1, 1);
-@@ -531,6 +587,14 @@
-
- invert_bit = invert ? 1 : 0;
-
-+ row_stride = (scaledWidth + 3) & ~3;
-+ buffer = (unsigned char *) malloc (scaledHeight * row_stride);
-+ if (buffer == NULL) {
-+ error(-1, "Unable to allocate memory for image.");
-+ return;
-+ }
-+
-+#if 0
- for (y = 0; y < height; y++) {
- pix = imgStr->getLine();
- dest = buffer + y * row_stride;
-@@ -542,9 +606,120 @@
- *dest++ = 255;
- }
- }
-+#else
-+ int yp = height / scaledHeight;
-+ int origYp = origHeight / scaledHeight;
-+ int yq = height % scaledHeight;
-+ int xp = width / scaledWidth;
-+ int xq = width % scaledWidth;
-+ int origHeight_c = origHeight;
-+// int p_position = 0;
-+ int yt = 0;
-+ unsigned char *pixBuf = (unsigned char *)malloc(MIN(yp+1, origHeight)*width);
-+ int lastYStep = 1;
-+ int total = 0;
-+ for (int y = 0; y < scaledHeight; y++) {
-+ // y scale Bresenham
-+ int yStep = yp;
-+ yt += yq;
-+
-+ if (yt >= scaledHeight) {
-+ yt -= scaledHeight;
-+ ++yStep;
-+ }
-
-+ // read row (s) from image
-+ {
-+ int n = (yp > 0) ? yStep : lastYStep;
-+ total += n;
-+ if (n > 0) {
-+ unsigned char *p = pixBuf;
-+ int head_pad_count = head_pad;
-+ int origHeight_count = origHeight;
-+ int tail_pad_count = tail_pad;
-+ for (int i=0; i<n; i++) {
-+ // get row
-+ if (head_pad_count) {
-+ head_pad_count--;
-+ } else if (origHeight_count) {
-+ pix = imgStr->getLine();
-+ for (int j=0; j<width; j++) {
-+ if (pix[j] ^ invert_bit)
-+ p[j] = 0;
-+ else
-+ p[j] = 255;
-+ }
-+ origHeight_count--;
-+ p += width;
-+ } else if (tail_pad_count) {
-+ tail_pad_count--;
-+ } else {
-+ //printf("%d %d\n", n, total);
-+ assert(0 && "over run\n");
-+ }
-+ }
-+ }
-+ }
-+ lastYStep = yStep;
-+ int k1 = y;
-+
-+ int xt = 0;
-+ int xSrc = 0;
-+ int x1 = k1;
-+ int y1 = y + x1;
-+ int n = yStep > 0 ? yStep : 1;
-+ int origN = n;
-+ int head_pad_size = MIN(n, head_pad);
-+ n -= head_pad_size;
-+ head_pad -= MIN(head_pad_size, yStep);
-+
-+ int pix_size = MIN(n, origHeight);
-+ n -= pix_size;
-+ origHeight -= MIN(pix_size, yStep);
-+
-+ int tail_pad_size = MIN(n, tail_pad);
-+ n -= tail_pad_size;
-+ tail_pad -= MIN(tail_pad_size, yStep);
-+ if (n != 0) {
-+ //printf("n = %d (%d %d %d)\n", n, head_pad_size, pix_size, tail_pad_size);
-+ assert(n == 0);
-+ }
-+ for (int x = 0; x < scaledWidth; ++x) {
-+ int xStep = xp;
-+ xt += xq;
-+ if (xt >= scaledWidth) {
-+ xt -= scaledWidth;
-+ ++xStep;
-+ }
-+ int m = xStep > 0 ? xStep : 1;
-+ float pixAcc0 = 0;
-+ /* could m * head_pad_size * tail_pad_size overflow? */
-+ if (invert_bit) {
-+ pixAcc0 += m * head_pad_size * tail_pad_size * 255;
-+ } else {
-+ pixAcc0 += m * head_pad_size * tail_pad_size * 0;
-+ }
-+ for (int i = 0; i < pix_size; ++i) {
-+ /* use background color instead of always checking invert_bit */
-+ for (int j = 0; j< m; ++j) {
-+ if (xSrc + i*width + j > MIN(yp + 1, origHeight_c)*width) {
-+ //printf("%d > %d (%d %d %d %d) (%d %d %d)\n", xSrc + i*width + j, MIN(yp + 1, origHeight_c)*width, xSrc, i , width, j, yp, origHeight_c, width);
-+ //printf("%d %d %d\n", head_pad_size, pix_size, tail_pad_size);
-+ assert(0 && "bad access\n");
-+ }
-+ pixAcc0 += pixBuf[xSrc + i*width + j];
-+ }
-+ }
-+ buffer[y * row_stride + x] = pixAcc0 / (origN*m);
-+ xSrc += xStep;
-+ x1 += 1;
-+ }
-+
-+ }
-+ free(pixBuf);
-+#endif
- image = cairo_image_surface_create_for_data (buffer, CAIRO_FORMAT_A8,
-- width, height, row_stride);
-+ scaledWidth, scaledHeight, row_stride);
- if (image == NULL) {
- delete imgStr;
- return;
-@@ -555,18 +730,28 @@
- return;
- }
-
-- cairo_matrix_init_translate (&matrix, 0, height);
-- cairo_matrix_scale (&matrix, width, -height);
-+ //cairo_matrix_init_translate (&matrix, 0, -scaledHeight);
-+// cairo_matrix_scale (&matrix, width, -height);
-
-- cairo_pattern_set_matrix (pattern, &matrix);
-+ //cairo_pattern_set_matrix (pattern, &matrix);
-
- /* we should actually be using CAIRO_FILTER_NEAREST here. However,
- * cairo doesn't yet do minifaction filtering causing scaled down
- * images with CAIRO_FILTER_NEAREST to look really bad */
- cairo_pattern_set_filter (pattern, CAIRO_FILTER_BEST);
--
-- cairo_mask (cairo, pattern);
--
-+ {
-+ cairo_get_matrix(cairo, &matrix);
-+ cairo_save (cairo);
-+ cairo_scale(cairo, 1.0/matrix.xx, 1.0/matrix.yy);
-+ // get integer co-ords
-+ cairo_translate (cairo, tx - matrix.x0, ty2 - matrix.y0);
-+ if (yScale > 0)
-+ cairo_scale(cairo, 1, -1);
-+ cairo_mask (cairo, pattern);
-+ cairo_get_matrix(cairo, &matrix);
-+ //printf("mask at: [%f %f], [%f %f], %f %f\n\n", matrix.xx, matrix.xy, matrix.yx, matrix.yy, matrix.x0, matrix.y0);
-+ cairo_restore(cairo);
-+ }
- cairo_pattern_destroy (pattern);
- cairo_surface_destroy (image);
- free (buffer);
Index: extra/office/poppler/poppler-0.5.9-header.patch
diff -u /dev/null extra/office/poppler/poppler-0.5.9-header.patch:1.1
--- /dev/null Sat Jul 7 07:50:31 2007
+++ extra/office/poppler/poppler-0.5.9-header.patch Sat Jul 7 07:50:31 2007
@@ -0,0 +1,73 @@
+diff -Naur poppler-0.5.9.orig/goo/FixedPoint.h poppler-0.5.9/goo/FixedPoint.h
+--- poppler-0.5.9.orig/goo/FixedPoint.h 2007-03-30 20:57:17.000000000 +0200
++++ poppler-0.5.9/goo/FixedPoint.h 2007-06-26 00:50:03.000000000 +0200
+@@ -11,7 +11,7 @@
+ #ifndef FIXEDPOINT_H
+ #define FIXEDPOINT_H
+
+-#include <config.h>
++#include <poppler/poppler-config.h>
+
+ #if USE_FIXEDPOINT
+
+diff -Naur poppler-0.5.9.orig/goo/gmem.h poppler-0.5.9/goo/gmem.h
+--- poppler-0.5.9.orig/goo/gmem.h 2007-04-01 01:17:26.000000000 +0200
++++ poppler-0.5.9/goo/gmem.h 2007-06-26 00:49:35.000000000 +0200
+@@ -10,7 +10,7 @@
+ #define GMEM_H
+
+ #include <stdio.h>
+-#include <config.h>
++#include <poppler/poppler-config.h>
+
+ #if USE_EXCEPTIONS
+
+diff -Naur poppler-0.5.9.orig/poppler/poppler-config.h.in poppler-0.5.9/poppler/poppler-config.h.in
+--- poppler-0.5.9.orig/poppler/poppler-config.h.in 2007-05-30 20:33:56.000000000 +0200
++++ poppler-0.5.9/poppler/poppler-config.h.in 2007-06-26 00:48:56.000000000 +0200
+@@ -15,10 +15,20 @@
+ // redefining those symbols.
+
+ /* Enable multithreading support. */
+-#ifndef MULTITHREADING
++#ifndef MULTITHREADED
+ #undef MULTITHREADED
+ #endif
+
++/* Enable exceptions. */
++#ifndef USE_EXCEPTIONS
++#undef USE_EXCEPTIONS
++#endif
++
++/* Use fixedpoint. */
++#ifndef USE_FIXEDPOINT
++#undef USE_FIXEDPOINT
++#endif
++
+ /* Full path for the system-wide xpdfrc file. */
+ #ifndef SYSTEM_XPDFRC
+ #undef SYSTEM_XPDFRC
+diff -Naur poppler-0.5.9.orig/poppler/SecurityHandler.h poppler-0.5.9/poppler/SecurityHandler.h
+--- poppler-0.5.9.orig/poppler/SecurityHandler.h 2007-04-05 01:11:52.000000000 +0200
++++ poppler-0.5.9/poppler/SecurityHandler.h 2007-06-26 00:47:40.000000000 +0200
+@@ -9,7 +9,7 @@
+ #ifndef SECURITYHANDLER_H
+ #define SECURITYHANDLER_H
+
+-#include <config.h>
++#include "poppler-config.h"
+
+ #ifdef USE_GCC_PRAGMAS
+ #pragma interface
+diff -Naur poppler-0.5.9.orig/utils/ImageOutputDev.h poppler-0.5.9/utils/ImageOutputDev.h
+--- poppler-0.5.9.orig/utils/ImageOutputDev.h 2007-02-01 21:01:00.000000000 +0100
++++ poppler-0.5.9/utils/ImageOutputDev.h 2007-06-26 00:50:38.000000000 +0200
+@@ -9,7 +9,7 @@
+ #ifndef IMAGEOUTPUTDEV_H
+ #define IMAGEOUTPUTDEV_H
+
+-#include <poppler-config.h>
++#include <poppler/poppler-config.h>
+
+ #ifdef USE_GCC_PRAGMAS
+ #pragma interface
More information about the arch-commits
mailing list