From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-portage/g-cpan/
Date: Sun, 3 Jul 2022 22:39:32 +0000 (UTC) [thread overview]
Message-ID: <1656887962.6103e4eac8e4a07187cccc324a198a8ad0705c4e.sam@gentoo> (raw)
commit: 6103e4eac8e4a07187cccc324a198a8ad0705c4e
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 3 22:39:22 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jul 3 22:39:22 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6103e4ea
app-portage/g-cpan: add ewarn for recreating overlay/ebuilds
Bug: https://bugs.gentoo.org/819513
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../g-cpan/{g-cpan-0.18.0.ebuild => g-cpan-0.18.0-r1.ebuild} | 12 ++++++++++++
app-portage/g-cpan/g-cpan-9999.ebuild | 12 ++++++++++++
2 files changed, 24 insertions(+)
diff --git a/app-portage/g-cpan/g-cpan-0.18.0.ebuild b/app-portage/g-cpan/g-cpan-0.18.0-r1.ebuild
similarity index 76%
rename from app-portage/g-cpan/g-cpan-0.18.0.ebuild
rename to app-portage/g-cpan/g-cpan-0.18.0-r1.ebuild
index 245e333b5463..d37683277b73 100644
--- a/app-portage/g-cpan/g-cpan-0.18.0.ebuild
+++ b/app-portage/g-cpan/g-cpan-0.18.0-r1.ebuild
@@ -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"
diff --git a/app-portage/g-cpan/g-cpan-9999.ebuild b/app-portage/g-cpan/g-cpan-9999.ebuild
index 245e333b5463..d37683277b73 100644
--- a/app-portage/g-cpan/g-cpan-9999.ebuild
+++ b/app-portage/g-cpan/g-cpan-9999.ebuild
@@ -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"
next reply other threads:[~2022-07-03 22:39 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-03 22:39 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-02-27 12:12 [gentoo-commits] repo/gentoo:master commit in: app-portage/g-cpan/ Andreas K. Hüttel
2023-12-17 14:30 Mart Raudsepp
2022-07-04 6:55 Agostino Sarubbo
2022-07-04 6:54 Agostino Sarubbo
2022-07-04 6:53 Agostino Sarubbo
2022-07-04 6:53 Agostino Sarubbo
2022-07-04 6:52 Agostino Sarubbo
2022-07-04 6:51 Agostino Sarubbo
2022-07-03 22:33 Sam James
2020-05-16 7:09 Joonas Niilola
2020-04-10 23:31 Andreas K. Hüttel
2020-04-10 23:31 Andreas K. Hüttel
2020-04-10 23:31 Andreas K. Hüttel
2019-05-18 10:02 Michał Górny
2018-03-21 18:12 Michał Górny
2017-07-30 8:47 Michał Górny
2017-02-16 21:12 Markus Meier
2017-01-23 6:57 Jeroen Roovers
2017-01-02 9:11 Andreas Hüttel
2016-12-30 11:12 Agostino Sarubbo
2016-12-20 17:31 Tobias Klausmann
2016-11-15 14:53 Tobias Klausmann
2016-11-11 23:46 Andreas Hüttel
2016-07-14 16:08 Patrice Clement
2016-05-06 20:51 Andreas Hüttel
2016-04-30 16:57 Andreas Hüttel
2016-04-30 16:57 Andreas Hüttel
2016-04-30 16:57 Andreas Hüttel
2016-04-30 16:57 Andreas Hüttel
2016-04-29 19:36 Andreas Hüttel
2015-10-07 20:40 Patrice Clement
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1656887962.6103e4eac8e4a07187cccc324a198a8ad0705c4e.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox