Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 412423 - media-gfx/swftools-0.9.2: pdf support dropped until fixed
Summary: media-gfx/swftools-0.9.2: pdf support dropped until fixed
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: No maintainer - Look at if you want to take care of it
Keywords: NeedPatch
Depends on:
Reported: 2012-04-17 21:30 UTC by László Szalma
Modified: 2021-08-11 19:57 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---

media-gfx/swftools-0.9.2-r2.ebuild (swftools-0.9.2-r2.ebuild,1.44 KB, text/plain)
2016-10-24 14:52 UTC, Denis Kaganovich

Note You need to log in before you can comment on or make changes to this bug.
Description László Szalma 2012-04-17 21:30:57 UTC
The 0.9.2 version doesn't build with poppler. The bundled xpdf compiles, but it's against the Gentoo policy (am I right?), and the poppler support is on the way (as the maintainer said).

At the moment, the pdf2swf build is disabled.

Reproducible: Always

Actual Results:  
compile with enable-poppler doesn't work

Expected Results:  
compile with poppler
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-04-17 21:40:15 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.
Comment 2 László Szalma 2012-04-18 06:40:13 UTC

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.
Comment 3 Pacho Ramos gentoo-dev 2012-04-18 08:35:15 UTC
Looks like László wants to have this bug to remember the issue and also for reference to people looking for this missing feature ;)
Comment 4 Jakub Jirutka 2012-11-30 20:11:04 UTC
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.
Comment 5 Denis Kaganovich 2016-10-24 14:39:54 UTC
I successfully build pdf2swf (0.9.2 & 2013-04-09-1007) with poppler-0.48.0 with this patches: in order:
epatch "${FILESDIR}"/swftools-poppler{,2,-0.32}.patch
Comment 6 Denis Kaganovich 2016-10-24 14:52:09 UTC
Created attachment 451324 [details]

Also pkg-config required. This is complete ebuild with patches over SRC_URI. For pure 0.9.2 version - uncomment 2 lines.
Comment 7 Pacho Ramos gentoo-dev 2018-10-13 10:35:59 UTC
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 ./ -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 ./ -o BitmapOutputDev.o
cc1plus: warning: command line option '-Wimplicit' is valid for C/ObjC but not for C++ In constructor 'CopyStream::CopyStream(Stream*, int)': 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,
/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
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-04-28 20:14:04 UTC
Package removed.