``` # emerge -pvO app-alternatives/awk These are the packages that would be merged, in order: [ebuild R ] app-alternatives/awk-2::gentoo USE="gawk (split-usr) -busybox -mawk -nawk" 0 KiB Total: 1 package (1 reinstall), Size of downloads: 0 KiB ``` but man awk shows mawk(1)! ``` # ls -al /usr/share/man/man1/awk* -rw-r--r-- 1 root root 11 Dec 3 04:38 /usr/share/man/man1/awk.1 lrwxrwxrwx 1 root root 9 Oct 27 05:35 /usr/share/man/man1/awk.1.xz -> mawk.1.xz ``` awk.1.xz is orphaned and leftover from `eselect-awk`: ``` # qfile -o /usr/share/man/man1/awk* /usr/share/man/man1/awk.1.xz ``` And of course /usr/share/man/man1/awk.1 is actually gawk. Don't ask me why it's not a symlink to gawk.1? In pkg_preinst in app-alternatives/awk, we should probably just: 1. check for ${PF} < some new revbump 2. if so, rm on EROOT any man pages (along with the standard compressed suffixes which eselect-awk recognised: .1{,.bz2,.gz,.lzma,.xz,.lz,.zst}
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4c96a45f9e0c5401a6d4df4867dc85348fd7989 commit d4c96a45f9e0c5401a6d4df4867dc85348fd7989 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2022-12-05 15:17:13 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-12-06 09:15:49 +0000 app-alternatives/awk: Clean up stale manpages from eselect-awk Closes: https://bugs.gentoo.org/884427 Signed-off-by: Michał Górny <mgorny@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/28551 Signed-off-by: Sam James <sam@gentoo.org> app-alternatives/awk/{awk-2.ebuild => awk-3.ebuild} | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)