lib-perl: prefix man pages to avoid conflicting with base perl

The following occurs when pkgs-docs added to image features.

Error: Transaction test error:
  file /usr/share/man/man3/lib.3 conflicts between attempted installs of lib-perl-doc-0.63-r0.corei7_64 and perl-doc-5.34.1-r0.corei7_64

Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
Jeremy A. Puhlman
2022-05-20 14:30:07 -04:00
committed by Armin Kuster
parent 17d7ad92ea
commit e05ce8fb39

View File

@@ -26,3 +26,10 @@ do_compile() {
export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')"
cpan_do_compile
}
do_install:append() {
# Man pages here conflict wtih the main perl documentation
for page in ${D}${mandir}/man*/*; do
mv $page $(dirname $page)/${BPN}-$(basename $page)
done
}