commit:     134a6899800578aea96a923436ffbc18e018c665
Author:     Mike Pagano <mpagano <AT> gentoo <DOT> org>
AuthorDate: Thu May 12 12:41:41 2022 +0000
Commit:     Mike Pagano <mpagano <AT> gentoo <DOT> org>
CommitDate: Thu May 12 12:41:41 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=134a6899

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 <AT> gentoo.org>

 eclass/kernel-2.eclass | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

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"
 

Reply via email to