Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 549584 - latex-package.eclass: latex-package_src_doinstall() creates broken symlinks
Summary: latex-package.eclass: latex-package_src_doinstall() creates broken symlinks
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: TeX project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-15 18:10 UTC by Ulrich Müller
Modified: 2015-05-17 11:13 UTC (History)
0 users

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 Ulrich Müller gentoo-dev 2015-05-15 18:10:28 UTC
For dvi, ps, and pdf files, latex-package_src_doinstall() creates a symlink:

    dosym /usr/share/doc/${PF}/$(basename ${i}) ${TEXMF}/doc/latex/${PN}/${i}

However, Portage will usually compress the link target in usr/share/doc/${PF}/ which breaks the link.

Calling docompress -x on the link target would avoid the problem. It is only available in EAPI 4 and later, however.
Comment 1 Alexis Ballier gentoo-dev 2015-05-16 07:44:57 UTC
if you have any fix, feel free to commit it; the eclass is old and barely maintained :/

the point of this is to have texdoc to work: 'texdoc foo' should open the documentation of 'foo', be it a .dvi, .pdf or what else
Comment 2 Ulrich Müller gentoo-dev 2015-05-17 11:13:18 UTC
I've committed a fix for EAPI 4 and later.

Ebuilds in previous EAPIs where this is an issue (portage will output a QA warning) should be upgraded to a newer EAPI.