Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 884427 - app-alternatives/awk: needs to handle orphaned man pages leftover from app-eselect/eselect-awk
Summary: app-alternatives/awk: needs to handle orphaned man pages leftover from app-es...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Christoph Junghans (RETIRED)
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-12-05 09:50 UTC by Sam James
Modified: 2023-03-10 02:31 UTC (History)
2 users (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 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-05 09:50:06 UTC
```
# 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}
Comment 1 Larry the Git Cow gentoo-dev 2022-12-06 09:24:22 UTC
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(+)