diff options
author | drochner <drochner@pkgsrc.org> | 2008-04-29 19:23:34 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2008-04-29 19:23:34 +0000 |
commit | 2102af164456f2391fdb90f76a6aa0e5961e8a7d (patch) | |
tree | 4c7e025db8502395b4ee6865381dbee6d25fa09a /print/poppler/patches | |
parent | 828d362c0d5e74035ee9cc998da3cbf3d42fc88a (diff) | |
download | pkgsrc-2102af164456f2391fdb90f76a6aa0e5961e8a7d.tar.gz |
update to 0.8.1
Some fixes which we had patched in pkgsrc are included now.
Diffstat (limited to 'print/poppler/patches')
-rw-r--r-- | print/poppler/patches/patch-ah | 50 | ||||
-rw-r--r-- | print/poppler/patches/patch-ai | 13 | ||||
-rw-r--r-- | print/poppler/patches/patch-aj | 136 | ||||
-rw-r--r-- | print/poppler/patches/patch-ak | 17 | ||||
-rw-r--r-- | print/poppler/patches/patch-al | 20 |
5 files changed, 0 insertions, 236 deletions
diff --git a/print/poppler/patches/patch-ah b/print/poppler/patches/patch-ah deleted file mode 100644 index 077fe5f63fa..00000000000 --- a/print/poppler/patches/patch-ah +++ /dev/null @@ -1,50 +0,0 @@ -$NetBSD: patch-ah,v 1.1 2008/04/15 19:57:00 drochner Exp $ - ---- poppler/CairoFontEngine.cc.orig 2008-01-29 23:03:38.000000000 +0100 -+++ poppler/CairoFontEngine.cc -@@ -31,11 +31,10 @@ static void fileWrite(void *stream, char - // CairoFont - //------------------------------------------------------------------------ - --static void cairo_font_face_destroy (void *data) -+static void _ft_done_face (void *data) - { -- CairoFont *font = (CairoFont *) data; -- -- delete font; -+ FT_Face face = (FT_Face) data; -+ FT_Done_Face (face); - } - - CairoFont *CairoFont::create(GfxFont *gfxFont, XRef *xref, FT_Library lib, GBool useCIDs) { -@@ -224,16 +223,16 @@ CairoFont *CairoFont::create(GfxFont *gf - cairo_font_face = cairo_ft_font_face_create_for_ft_face (face, - FT_LOAD_NO_HINTING | - FT_LOAD_NO_BITMAP); -- if (cairo_font_face == NULL) { -- error(-1, "could not create cairo font\n"); -+ if (cairo_font_face_status (cairo_font_face)) { -+ error(-1, "could not create cairo font: %s\n", cairo_status_to_string (cairo_font_face_status (cairo_font_face))); - goto err2; /* this doesn't do anything, but it looks like we're - * handling the error */ - } { - CairoFont *ret = new CairoFont(ref, cairo_font_face, face, codeToGID, codeToGIDLen, substitute); -- cairo_font_face_set_user_data (cairo_font_face, -+ cairo_font_face_set_user_data (cairo_font_face, - &cairo_font_face_key, -- ret, -- cairo_font_face_destroy); -+ face, -+ _ft_done_face); - - return ret; - } -@@ -249,7 +248,7 @@ CairoFont::CairoFont(Ref ref, cairo_font - codeToGIDLen(codeToGIDLen), substitute(substitute) { } - - CairoFont::~CairoFont() { -- FT_Done_Face (face); -+ cairo_font_face_destroy (cairo_font_face); - gfree(codeToGID); - } - diff --git a/print/poppler/patches/patch-ai b/print/poppler/patches/patch-ai deleted file mode 100644 index 1b9d515d3d8..00000000000 --- a/print/poppler/patches/patch-ai +++ /dev/null @@ -1,13 +0,0 @@ -$NetBSD: patch-ai,v 1.1 2008/04/15 19:57:00 drochner Exp $ - ---- poppler/Gfx.cc.orig 2008-04-15 21:36:33.000000000 +0200 -+++ poppler/Gfx.cc -@@ -3627,7 +3627,7 @@ void Gfx::doImage(Object *ref, Stream *s - obj1.free(); - dict->lookup("CS", &obj1); - } -- if (obj1.isName()) { -+ if (obj1.isName() && inlineImg) { - res->lookupColorSpace(obj1.getName(), &obj2); - if (!obj2.isNull()) { - obj1.free(); diff --git a/print/poppler/patches/patch-aj b/print/poppler/patches/patch-aj deleted file mode 100644 index 6b6701e6d11..00000000000 --- a/print/poppler/patches/patch-aj +++ /dev/null @@ -1,136 +0,0 @@ -$NetBSD: patch-aj,v 1.1 2008/04/18 14:03:54 drochner Exp $ - ---- poppler/Object.h.orig 2007-12-20 19:40:06.000000000 +0100 -+++ poppler/Object.h -@@ -66,17 +66,18 @@ enum ObjType { - //------------------------------------------------------------------------ - - #ifdef DEBUG_MEM --#define initObj(t) ++numAlloc[type = t] -+#define initObj(t) zeroUnion(); ++numAlloc[type = t] - #else --#define initObj(t) type = t -+#define initObj(t) zeroUnion(); type = t - #endif - - class Object { - public: -- -+ // attempt to clear the anonymous union -+ void zeroUnion() { this->name = NULL; } - // Default constructor. - Object(): -- type(objNone) {} -+ type(objNone) { zeroUnion(); } - - // Initialize an object. - Object *initBool(GBool boolnA) -@@ -223,16 +224,16 @@ private: - #include "Array.h" - - inline int Object::arrayGetLength() -- { return array->getLength(); } -+ { if (type != objArray) return 0; return array->getLength(); } - - inline void Object::arrayAdd(Object *elem) -- { array->add(elem); } -+ { if (type == objArray) array->add(elem); } - - inline Object *Object::arrayGet(int i, Object *obj) -- { return array->get(i, obj); } -+ { if (type != objArray) return obj->initNull(); return array->get(i, obj); } - - inline Object *Object::arrayGetNF(int i, Object *obj) -- { return array->getNF(i, obj); } -+ { if (type != objArray) return obj->initNull(); return array->getNF(i, obj); } - - //------------------------------------------------------------------------ - // Dict accessors. -@@ -241,34 +242,34 @@ inline Object *Object::arrayGetNF(int i, - #include "Dict.h" - - inline int Object::dictGetLength() -- { return dict->getLength(); } -+ { if (type != objDict) return 0; return dict->getLength(); } - - inline void Object::dictAdd(char *key, Object *val) -- { dict->add(key, val); } -+ { if (type == objDict) dict->add(key, val); } - - inline void Object::dictSet(char *key, Object *val) -- { dict->set(key, val); } -+ { if (type == objDict) dict->set(key, val); } - - inline GBool Object::dictIs(char *dictType) -- { return dict->is(dictType); } -+ { return (type == objDict) && dict->is(dictType); } - - inline GBool Object::isDict(char *dictType) - { return type == objDict && dictIs(dictType); } - - inline Object *Object::dictLookup(char *key, Object *obj) -- { return dict->lookup(key, obj); } -+ { if (type != objDict) return obj->initNull(); return dict->lookup(key, obj); } - - inline Object *Object::dictLookupNF(char *key, Object *obj) -- { return dict->lookupNF(key, obj); } -+ { if (type != objDict) return obj->initNull(); return dict->lookupNF(key, obj); } - - inline char *Object::dictGetKey(int i) -- { return dict->getKey(i); } -+ { if (type != objDict) return NULL; return dict->getKey(i); } - - inline Object *Object::dictGetVal(int i, Object *obj) -- { return dict->getVal(i, obj); } -+ { if (type != objDict) return obj->initNull(); return dict->getVal(i, obj); } - - inline Object *Object::dictGetValNF(int i, Object *obj) -- { return dict->getValNF(i, obj); } -+ { if (type != objDict) return obj->initNull(); return dict->getValNF(i, obj); } - - //------------------------------------------------------------------------ - // Stream accessors. -@@ -277,33 +278,33 @@ inline Object *Object::dictGetValNF(int - #include "Stream.h" - - inline GBool Object::streamIs(char *dictType) -- { return stream->getDict()->is(dictType); } -+ { return (type == objStream) && stream->getDict()->is(dictType); } - - inline GBool Object::isStream(char *dictType) -- { return type == objStream && streamIs(dictType); } -+ { return (type == objStream) && streamIs(dictType); } - - inline void Object::streamReset() -- { stream->reset(); } -+ { if (type == objStream) stream->reset(); } - - inline void Object::streamClose() -- { stream->close(); } -+ { if (type == objStream) stream->close(); } - - inline int Object::streamGetChar() -- { return stream->getChar(); } -+ { if (type != objStream) return EOF; return stream->getChar(); } - - inline int Object::streamLookChar() -- { return stream->lookChar(); } -+ { if (type != objStream) return EOF; return stream->lookChar(); } - - inline char *Object::streamGetLine(char *buf, int size) -- { return stream->getLine(buf, size); } -+ { if (type != objStream) return NULL; return stream->getLine(buf, size); } - - inline Guint Object::streamGetPos() -- { return stream->getPos(); } -+ { if (type != objStream) return 0; return stream->getPos(); } - - inline void Object::streamSetPos(Guint pos, int dir) -- { stream->setPos(pos, dir); } -+ { if (type == objStream) stream->setPos(pos, dir); } - - inline Dict *Object::streamGetDict() -- { return stream->getDict(); } -+ { if (type != objStream) return NULL; return stream->getDict(); } - - #endif diff --git a/print/poppler/patches/patch-ak b/print/poppler/patches/patch-ak deleted file mode 100644 index 22aa497902f..00000000000 --- a/print/poppler/patches/patch-ak +++ /dev/null @@ -1,17 +0,0 @@ -$NetBSD: patch-ak,v 1.1 2008/04/18 14:03:54 drochner Exp $ - ---- poppler/GfxState.cc.orig 2008-02-09 12:46:17.000000000 +0100 -+++ poppler/GfxState.cc -@@ -3349,6 +3349,12 @@ GfxImageColorMap::GfxImageColorMap(int b - maxPixel = (1 << bits) - 1; - colorSpace = colorSpaceA; - -+ // this is a hack to support 16 bits images, everywhere -+ // we assume a component fits in 8 bits, with this hack -+ // we treat 16 bit images as 8 bit ones until it's fixed correctly. -+ // The hack has another part on ImageStream::getLine -+ if (maxPixel > 255) maxPixel = 255; -+ - // initialize - for (k = 0; k < gfxColorMaxComps; ++k) { - lookup[k] = NULL; diff --git a/print/poppler/patches/patch-al b/print/poppler/patches/patch-al deleted file mode 100644 index c3c6b08dec0..00000000000 --- a/print/poppler/patches/patch-al +++ /dev/null @@ -1,20 +0,0 @@ -$NetBSD: patch-al,v 1.1 2008/04/18 14:03:54 drochner Exp $ - ---- poppler/Stream.cc.orig 2008-03-22 14:57:24.000000000 +0100 -+++ poppler/Stream.cc -@@ -428,6 +428,15 @@ Guchar *ImageStream::getLine() { - for (i = 0; i < nVals; ++i) { - imgLine[i] = str->getChar(); - } -+ } else if (nBits == 16) { -+ // this is a hack to support 16 bits images, everywhere -+ // we assume a component fits in 8 bits, with this hack -+ // we treat 16 bit images as 8 bit ones until it's fixed correctly. -+ // The hack has another part on GfxImageColorMap::GfxImageColorMap -+ for (i = 0; i < nVals; ++i) { -+ imgLine[i] = str->getChar(); -+ str->getChar(); -+ } - } else { - bitMask = (1 << nBits) - 1; - buf = 0; |