mkogg.py: Fix 'self.get_mp4_metadata(self, source)'
[blog.git] / posts / pdftk.mdwn
1 [pdftk][] is a useful tool for manipulating PDFs.
2
3 Unfortunately, there's a [bug][] in [[Gentoo's|Gentoo]]
4 `app-text/pdftk` package.  The build eventually crashes with:
5
6     g++ -DPATH_DELIM=0x2f -DASK_ABOUT_WARNINGS=false -DUNBLOCK_SIGNALS -fdollars-in-identifiers -DPDFTK_VER=\"1.44\" -Wall -Wextra -Weffc++ -O2 -I../java pdftk.cc -c
7     pdftk.cc:60:39: fatal error: com/lowagie/text/Document.h: No such file or directory
8
9 Which is due to a bad `-m64` option brought in by `CFLAGS_amd64`:
10
11     gcjh -force --classpath=":/var/tmp/portage/app-text/pdftk-1.44/work/pdftk-1.44-dist/java:." com/lowagie/text/Chunk
12     gcjh: unrecognized option '-m64'
13
14 You can successfully install pdftk with:
15
16     CFLAGS_amd64="" emerge -av pdftk
17
18 [pdftk]: http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/
19 [bug]: https://bugs.gentoo.org/show_bug.cgi?id=254463