app-portage/g-cpan: add ewarn for recreating overlay/ebuilds

Bug: https://bugs.gentoo.org/819513
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2022-07-03 23:39:22 +01:00
parent 128d47e603
commit 6103e4eac8
2 changed files with 24 additions and 0 deletions
@@ -57,7 +57,19 @@ src_install() {
keepdir /var/log/g-cpan
}
pkg_preinst() {
has_version "<app-portage/g-cpan-0.18.0-r1" && HAD_EAPI5_GCPAN=1
}
pkg_postinst() {
if [[ ${HAD_EAPI5_GCPAN:-0} -eq 1 ]] ; then
ewarn "Please re-create your overlay with generated g-cpan ebuilds!"
ewarn "The old ebuilds will use EAPI 5 and be incompatible with newer"
ewarn "Perl eclass changes. This newer version of g-cpan (0.18.0+)"
ewarn "generates EAPI 8 ebuilds without this problem, but it cannot"
ewarn "change existing ebuilds. See bug #819513."
fi
elog "If you want to use g-cpan as non root user you may wish to adjust"
elog "the permissions on /var/tmp/g-cpan or add users to the portage group."
elog "Please note that some CPAN packages need additional manual"
+12
View File
@@ -57,7 +57,19 @@ src_install() {
keepdir /var/log/g-cpan
}
pkg_preinst() {
has_version "<app-portage/g-cpan-0.18.0-r1" && HAD_EAPI5_GCPAN=1
}
pkg_postinst() {
if [[ ${HAD_EAPI5_GCPAN:-0} -eq 1 ]] ; then
ewarn "Please re-create your overlay with generated g-cpan ebuilds!"
ewarn "The old ebuilds will use EAPI 5 and be incompatible with newer"
ewarn "Perl eclass changes. This newer version of g-cpan (0.18.0+)"
ewarn "generates EAPI 8 ebuilds without this problem, but it cannot"
ewarn "change existing ebuilds. See bug #819513."
fi
elog "If you want to use g-cpan as non root user you may wish to adjust"
elog "the permissions on /var/tmp/g-cpan or add users to the portage group."
elog "Please note that some CPAN packages need additional manual"