Filing this under poppler-data, not ghostscript-gpl, as it far more simple to fix most of the problem from poppler-data side. Adding /usr/share/poppler/cMap/* paths to fontpath in ghostscript ebuild for proper CID font support is ineffective, as ghostscript expects *all* of the CMaps to be in *one* dir (/usr/share/ghostscript/${PV}/Resource/CMap). This can be verified by trying to view i.e /usr/share/doc/ghostscript-gpl-${PV}/examples/cjk/gscjk_aj.ps The most simple simple solution I see is: - in poppler-data ebuild, create /usr/share/poppler/CMap dir, containing symlinks to *all* CMap files in /usr/share/poppler/cMap/* dirs - in ghostscript-gpl ebuild add /usr/share/ghostscript/${PV}/Resource/CMap symlink to /usr/share/poppler/CMap dir created above
Added in 0.4.5-r1, the dir is called cMaps (note the s) :)
This fix breaks the package in prefix environments. Please make the change below to fix it in prefix: src_install() { emake prefix="${EPREFIX}"/usr DESTDIR="${D}" install || die # bug 409361 dodir /usr/share/poppler/cMaps - cd "${D}/"/usr/share/poppler/cMaps || die + cd "${D}/${EPREFIX}"/usr/share/poppler/cMaps || die find ../cMap -type f -exec ln -s {} . \; || die } Thanks, Guilherme
Done, thanks.
(In reply to comment #3) > Done, thanks. Not quite yet - what I described in the initial report was not two alternative solutions, but two parts of a single one. So, ghostscript-gpl ebuild still needs the fix.
(In reply to comment #4) > (In reply to comment #3) > > Done, thanks. > > Not quite yet - what I described in the initial report was not two > alternative solutions, but two parts of a single one. So, ghostscript-gpl > ebuild still needs the fix. Part 2 also done in ghostscript-gpl-9.05-r1