
Probably yes but you should change Makefile (here an old incomplete example)musv wrote:Is there a way to build pdfk somehow else, e.g. with javac of openjdk?

musv wrote:Hi there,
regarding to the topics Remove old gcc versions and pdftk gcc6 gjar I stumbled into the same problem. I removed gcc-5.4.0, because everything built fine with gcc-6.4.0.
Now pdfk is the only package, which needs gcj and therefore gcc-5.4.0.
Is there a way to build pdfk somehow else, e.g. with javac of openjdk?
Well, if you look at the timestamp of qpdf tarball, it is Jan 14, 2014, barely out of 2013 eithermusv wrote:The last version ist from 2013. I dropped it and replaced it with qpdf.
Unfortunately Impressive has pdftk as a mandatory dependency. But in the next time I don't have the need of any presentations. So I dropped this tool too.
Reading the manual of Impressive, looks like pdftk is just a recommended package, used to fetch PDF metadata; it becomes mandatory only if muPDF is not available (in my systems mupdf is pulled in as a dependency of nel-print/cups-filters with pdf USE flag enabled)musv wrote:Unfortunately Impressive has pdftk as a mandatory dependency. But in the next time I don't have the need of any presentations. So I dropped this tool too.
Code: Select all
~ $ emerge -pv impressive
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ] media-libs/sdl-mixer-1.2.12-r4::gentoo USE="flac mad mp3 vorbis wav -fluidsynth -midi -mikmod -mod -modplug -playtools -smpeg -static-libs -timidity" ABI_X86="(64) -32 (-x32)" 3621 KiB
[ebuild N ] media-libs/sdl-ttf-2.0.11-r1::gentoo USE="X -static-libs" ABI_X86="(64) -32 (-x32)" 3959 KiB
[ebuild N ] x11-apps/xrandr-1.5.0::gentoo 179 KiB
[ebuild N ] media-libs/smpeg-0.4.4-r10::gentoo USE="X opengl -debug -static-libs" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="(-mmx)" 312 KiB
[ebuild N ] dev-python/pygame-1.9.2_pre20120101-r2::gentoo USE="X -doc -examples {-test}" PYTHON_TARGETS="python2_7 python3_5 -python3_4" 2210 KiB
[ebuild N ~] app-office/impressive-0.11.2::gentoo PYTHON_TARGETS="python2_7" 194 KiB
Total: 6 packages (6 new), Size of downloads: 10473 KiB
The following keyword changes are necessary to proceed:
(see "package.accept_keywords" in the portage(5) man page for more details)
# required by impressive (argument)
=app-office/impressive-0.11.2 ~amd64
Code: Select all
error: invalid use of incomplete type ‘struct _Jv_catch_fpe(int, siginfo_t*, void*)::ucontextIt looks like this is related to a change in linux-unwind.h, where struct ucontext was changed to ucontext_t so as to comply with POSIX naming conventions. It seems like the error is nonexistent with GCC 7.2; the fix was added in commit 14c2f22a1877f6b60a2f7c2f83ffb032759456a6 to GCC 7.1.Massimo B. wrote:I tried building pdftk, it pulled gcc-5.4.0-r4 which I unmasked but that failed withIs there any way to get a gcc usable for pdftk compiled? Is there any chance to add at least some pdftk-bin?Code: Select all
error: invalid use of incomplete type ‘struct _Jv_catch_fpe(int, siginfo_t*, void*)::ucontext


I've install "pdftk-9999" and it is working as it should, thanks.marcv wrote:I got tired of waiting for upstream to publish a java version of pdftk and I did it myself. If somebody wants to play with it, you can find it at http://gitlab.com/marcvinyals/pdftk. There is even a live ebuild at http://repo.or.cz/marcv-overlay.git/blo ... 999.ebuild.