Summary: | Please provide a alternative to `ecompress --suffix` in ebuilds | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Samuli Suominen (RETIRED) <ssuominen> |
Component: | Current packages | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | pms |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Samuli Suominen (RETIRED)
2009-06-17 10:01:25 UTC
This should be covered by controllable compression in EAPI 3, see bug 260118: "The package manager shall take appropriate steps to ensure that its compression mechanisms behave sensibly even if an item is listed in the inclusion list multiple times, if an item is a symlink, or if a file is already compressed." (In reply to comment #1) > This should be covered by controllable compression in EAPI 3, see bug 260118: > > "The package manager shall take appropriate steps to ensure that its > compression mechanisms behave sensibly even if an item is listed in the > inclusion list multiple times, if an item is a symlink, or if a file is already > compressed." I am curious how this can be done "sensible" wrt the current alternatives.eclass and manpages linking in pkg_postinst. (In reply to comment #2) > I am curious how this can be done "sensible" wrt the current > alternatives.eclass and manpages linking in pkg_postinst. The following is from emacs-21.4-r8.ebuild (last version before we switched to eselect): # extract the suffix of the manpages to determine the correct # compression program local suffix=$(echo /usr/share/man/man1/emacs.emacs-*.1* | sed 's/.*\.1//') for j in emacs etags ctags gfdl; do alternatives_auto_makesym "/usr/share/man/man1/$j.1${suffix}" \ "/usr/share/man/man1/$j.emacs-*" done Also I'd also say that for most usage cases man pages shouldn't be symlinked, but included with ".so". See for example grep.1 / egrep.1 / fgrep.1. Otherwise, a separate cache will be generated for each symlink, instead of a single one for the real man page. agreed -- symlinking is wrong, and thus there should be no need to use ecompress --suffix. people should be leveraging the .so redirect: echo .so cdrecord.1 > wodim.1 i wasnt aware of the cache feature as fallout of this though, thanks for the tip. |