1 |
commit: 134a6899800578aea96a923436ffbc18e018c665 |
2 |
Author: Mike Pagano <mpagano <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 12 12:41:41 2022 +0000 |
4 |
Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 12 12:41:41 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=134a6899 |
7 |
|
8 |
kernel-2.eclass: Fix func name to comply with pms, deprecate, old with deadline |
9 |
|
10 |
According to PMS certain words are reserved for package manager use and may not be used or |
11 |
relied upon by ebuilds. |
12 |
|
13 |
See: https://projects.gentoo.org/pms/8/pms.html#x1-13700012.3.17 |
14 |
|
15 |
Closes: https://bugs.gentoo.org/843674 |
16 |
|
17 |
Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org> |
18 |
|
19 |
eclass/kernel-2.eclass | 11 ++++++++++- |
20 |
1 file changed, 10 insertions(+), 1 deletion(-) |
21 |
|
22 |
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass |
23 |
index 02c70422ee07..b3fb5cef76c3 100644 |
24 |
--- a/eclass/kernel-2.eclass |
25 |
+++ b/eclass/kernel-2.eclass |
26 |
@@ -1411,7 +1411,16 @@ kernel-2_src_unpack() { |
27 |
|
28 |
# allow ebuilds to massage the source tree after patching but before |
29 |
# we run misc `make` functions below |
30 |
- [[ $(type -t kernel-2_hook_premake) == "function" ]] && kernel-2_hook_premake |
31 |
+ if [[ $(type -t kernel-2_hook_premake) == "function" ]]; then |
32 |
+ ewarn "The function name: kernel-2_hook_premake is being deprecated and" |
33 |
+ ewarn "being changed to: kernel-2_insert_premake to comply with pms policy." |
34 |
+ ewarn "See bug #843686 " |
35 |
+ ewarn "The call to the old function name will be removed on or about July 1st, 2022 " |
36 |
+ ewarn "Please update your ebuild before this date." |
37 |
+ kernel-2_hook_premake |
38 |
+ else |
39 |
+ [[ $(type -t kernel-2_insert_premake) == "function" ]] && kernel-2_insert_premake |
40 |
+ fi |
41 |
|
42 |
debug-print "Doing unpack_set_extraversion" |