Summary: | media-gfx/swftools-0.9.2: pdf support dropped until fixed | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | László Szalma <dblaci> |
Component: | Current packages | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
Status: | RESOLVED OBSOLETE | ||
Severity: | minor | CC: | jstein, luisav.ferreira, mgorny, shalom938 |
Priority: | Normal | Keywords: | NeedPatch |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | media-gfx/swftools-0.9.2-r2.ebuild |
Description
László Szalma
2012-04-17 21:30:57 UTC
1) Please post your `emerge --info' output in a comment. 2) Please attach the entire build log to this bug report. Alternatively, provide an upstream bug report/conversation. https://bugs.gentoo.org/show_bug.cgi?id=332649#c30 " 2012-04-08 20:11:53 CEST (Hi, I'm the swftools maintainer) For the record, swftools uses a patched xpdf- it's quite different from the original xpdf, because swftools uses xpdf as a low-level PDF parser, not a rendering engine. Inkscape does something similar (and also contains parts of the xpdf sources). The patched version also contains some fixes for bugs and security issues. (See the file lib/pdf/xpdf-changes.patch) I am, however, working on getting swftools to link against poppler instead (with the help of Christian Wenzel.) In the mean time, shipping it without pdf2swf sounds like a good idea. " the current ebuild builds fine because it disables the pdf2swf at all. Looks like László wants to have this bug to remember the issue and also for reference to people looking for this missing feature ;) I’d like to just ask, is anyone working on this issue? I need swftools with PDF support for Alfresco DMS. I build it without poppler with no problem but it doesn’t work very well so hope that with poppler it could be better. I successfully build pdf2swf (0.9.2 & 2013-04-09-1007) with poppler-0.48.0 with this patches: https://github.com/pld-linux/swftools in order: epatch "${FILESDIR}"/swftools-poppler{,2,-0.32}.patch Created attachment 451324 [details]
media-gfx/swftools-0.9.2-r2.ebuild
Also pkg-config required. This is complete ebuild with patches over SRC_URI. For pure 0.9.2 version - uncomment 2 lines.
it fails to build in my case: cd pdf;make libgfxpdf make[2]: Entering directory '/var/tmp/portage/media-gfx/swftools-0.9.2-r2/work/swftools-0.9.2/lib/pdf' x86_64-pc-linux-gnu-g++ -c -DHAVE_CONFIG_H -I/usr/include -I/usr/include/freetype2 -I/usr/include/fontconfig -I /usr/include/lame -fPIC -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O -fomit-frame-pointer -O2 -pipe -march=native -fno-stack-protector -I/usr/include/poppler -I ./ VectorGraphicOutputDev.cc -o VectorGraphicOutputDev.o cc1plus: warning: command line option '-Wimplicit' is valid for C/ObjC but not for C++ x86_64-pc-linux-gnu-g++ -c -DHAVE_CONFIG_H -I/usr/include -I/usr/include/freetype2 -I/usr/include/fontconfig -I /usr/include/lame -fPIC -fPIC -Wimplicit -Wreturn-type -Wno-write-strings -Wformat -O -fomit-frame-pointer -O2 -pipe -march=native -fno-stack-protector -I/usr/include/poppler -I ./ BitmapOutputDev.cc -o BitmapOutputDev.o cc1plus: warning: command line option '-Wimplicit' is valid for C/ObjC but not for C++ BitmapOutputDev.cc: In constructor 'CopyStream::CopyStream(Stream*, int)': BitmapOutputDev.cc:1860:51: error: use of deleted function 'Object::Object(T) [with T = CopyStream*]' this->memstream = new MemStream(buf, 0, len, this); ^ In file included from popplercompat.h:112:0, from InfoOutputDev.h:24, from CharOutputDev.h:9, from BitmapOutputDev.h:28, from BitmapOutputDev.cc:24: /usr/include/poppler/Object.h:169:24: note: declared here template<typename T> Object(T) = delete; ^~~~~~ make[2]: *** [Makefile:55: BitmapOutputDev.o] Error 1 make[2]: Leaving directory '/var/tmp/portage/media-gfx/swftools-0.9.2-r2/work/swftools-0.9.2/lib/pdf' make[1]: *** [Makefile:192: libgfxpdf.a] Error 2 make[1]: Leaving directory '/var/tmp/portage/media-gfx/swftools-0.9.2-r2/work/swftools-0.9.2/lib' make: *** [Makefile:10: all] Error 2 Package removed. |