Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 699490 - dev-tex/latex-beamer: dosym with path starting with ${ED}
Summary: dev-tex/latex-beamer: dosym with path starting with ${ED}
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: TeX project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-07 00:08 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2020-01-09 20:30 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 Arfrever Frehtes Taifersar Arahesis 2019-11-07 00:08:43 UTC
dev-tex/latex-beamer/latex-beamer-3.56-r1.ebuild:               dosym "${ED}/usr/share/doc/${P}/doc/" "${TEXMF}/doc/latex/beamer"
dev-tex/latex-beamer/latex-beamer-3.57.ebuild:          dosym "${ED}/usr/share/doc/${P}/doc/" "${TEXMF}/doc/latex/beamer"


Problems with above dosym commands:

1. Initial ${D} or ${ED} is unnecessary in first argument (target of symbolic link), and PMS-compliant package managers will issue QA notice.
   PMS (https://projects.gentoo.org/pms/7/pms.html#x1-14800013.4.1):
   """
   13.4.1 Rewriting

   Any absolute symlink whose link starts with D must be rewritten with
   the leading D removed. The package manager should issue a notice when doing this. 
   """

2. Target of symbolic link could be made relative, instead of absolute.


Solution:

dosym "../../../doc/${P}/doc" "${TEXMF}/doc/latex/beamer"
Comment 1 Arfrever Frehtes Taifersar Arahesis 2019-11-07 00:21:58 UTC
3. Documentation is actually installed in ${ED}/usr/share/doc/${PF}/... instead of ${ED}/usr/share/doc/${P}/... so ${PF} should be used.
   ${P}  == latex-beamer-3.56
   ${PF} == latex-beamer-3.56-r1


Solution:

dosym "../../../doc/${PF}/doc" "${TEXMF}/doc/latex/beamer"
Comment 2 Erik Quaeghebeur 2019-12-04 14:35:06 UTC
It seems that the similar bug 699492 was fixed. Could this be done here as well?
Comment 3 Arfrever Frehtes Taifersar Arahesis 2019-12-07 05:08:30 UTC
Commit eb30b00cebafbc898fe5e6b6fb77f9baddd1e443 (https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb30b00cebafbc898fe5e6b6fb77f9baddd1e443) was made, but ebuilds are still broken.
3 ".." components are needed at the beginning of target of symbolic link, not just one.