Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 409361 - app-text/poppler-data-0.4.5: add a symlink forest for proper ghostscript integration
Summary: app-text/poppler-data-0.4.5: add a symlink forest for proper ghostscript inte...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: All All
: Normal minor (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-22 19:06 UTC by Rafał Mużyło
Modified: 2012-05-01 22:44 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rafał Mużyło 2012-03-22 19:06:33 UTC
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
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2012-03-28 03:38:38 UTC
Added in 0.4.5-r1, the dir is called cMaps (note the s) :)
Comment 2 Guilherme Amadio gentoo-dev 2012-03-28 22:05:25 UTC
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
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2012-03-29 04:13:37 UTC
Done, thanks.
Comment 4 Rafał Mużyło 2012-03-31 18:18:33 UTC
(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.
Comment 5 Andreas K. Hüttel archtester gentoo-dev 2012-05-01 22:44:02 UTC
(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