summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pagano <mpagano@gentoo.org>2022-05-12 08:41:41 -0400
committerMike Pagano <mpagano@gentoo.org>2022-05-12 08:41:41 -0400
commit134a6899800578aea96a923436ffbc18e018c665 (patch)
treecd01b779934346014f72a3df13353938ef4e6002 /eclass/kernel-2.eclass
parentsys-kernel/gentoo-sources: add 5.17.7 and update to kspp patch (diff)
downloadgentoo-134a6899800578aea96a923436ffbc18e018c665.tar.gz
gentoo-134a6899800578aea96a923436ffbc18e018c665.tar.bz2
gentoo-134a6899800578aea96a923436ffbc18e018c665.zip
kernel-2.eclass: Fix func name to comply with pms, deprecate, old with deadline
According to PMS certain words are reserved for package manager use and may not be used or relied upon by ebuilds. See: https://projects.gentoo.org/pms/8/pms.html#x1-13700012.3.17 Closes: https://bugs.gentoo.org/843674 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
Diffstat (limited to 'eclass/kernel-2.eclass')
-rw-r--r--eclass/kernel-2.eclass11
1 files changed, 10 insertions, 1 deletions
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
index 02c70422ee07..b3fb5cef76c3 100644
--- a/eclass/kernel-2.eclass
+++ b/eclass/kernel-2.eclass
@@ -1411,7 +1411,16 @@ kernel-2_src_unpack() {
# allow ebuilds to massage the source tree after patching but before
# we run misc `make` functions below
- [[ $(type -t kernel-2_hook_premake) == "function" ]] && kernel-2_hook_premake
+ if [[ $(type -t kernel-2_hook_premake) == "function" ]]; then
+ ewarn "The function name: kernel-2_hook_premake is being deprecated and"
+ ewarn "being changed to: kernel-2_insert_premake to comply with pms policy."
+ ewarn "See bug #843686 "
+ ewarn "The call to the old function name will be removed on or about July 1st, 2022 "
+ ewarn "Please update your ebuild before this date."
+ kernel-2_hook_premake
+ else
+ [[ $(type -t kernel-2_insert_premake) == "function" ]] && kernel-2_insert_premake
+ fi
debug-print "Doing unpack_set_extraversion"