man-pages: fix links to moved manpages

The template file renames rand.3 and err.3 to glibc-rand.3 and
glibc-err.3 to resolve conflict with openssl manpages, but it
doesn't fix manpages linking to the old version. These manpages then
won't know where the manpages are. This commit redirects them to the
renamed version.
This commit is contained in:
meator 2022-02-09 18:19:42 +01:00 committed by Echo
parent 20ebc6597e
commit f23dd601a7

View file

@ -1,7 +1,7 @@
# Template file for 'man-pages'
pkgname=man-pages
version=5.13
revision=1
revision=2
short_desc="Linux Documentation Project (LDP) manual pages"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later"
@ -37,6 +37,9 @@ do_install() {
# openssl-devel
mv man3/rand.3 man3/glibc-rand.3
mv man3/err.3 man3/glibc-err.3
# Fix references to these manpages
sed -i -e "s|.so man3/rand.3|.so man3/glibc-rand.3|" \
-e "s|.so man3/err.3|.so man3/glibc-err.3|" man3/*
# Rename some glibc specific manpages
mv man1/{iconv.1,glibc-iconv.1}
mv man1/{ldd.1,glibc-ldd.1}