Gentoo Archives: gentoo-dev

From: Mike Pagano <mpagano@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: [PATCH] kernel-2.eclass: Fix func name to comply with pms, deprecate, old with deadline
Date: Thu, 12 May 2022 12:44:44
Message-Id: 0773c173-c0d6-38cd-495f-a45b2e441b7f@gentoo.org
In Reply to: [gentoo-dev] [PATCH] kernel-2.eclass: Fix func name to comply with pms, deprecate, old with deadline by Mike Pagano
1 On 5/11/22 15:21, Mike Pagano wrote:
2 > According to PMS certain words are reserved for package manager use and
3 > may not be used or
4 > relied upon by ebuilds.
5 >
6 > See: https://projects.gentoo.org/pms/8/pms.html#x1-13700012.3.17
7 >
8 >
9 > Bug: https://bugs.gentoo.org/843674
10 >
11 > Signed-off-by: Mike Pagano <mpagano@g.o>
12 > ---
13 >  eclass/kernel-2.eclass | 11 ++++++++++-
14 >  1 file changed, 10 insertions(+), 1 deletion(-)
15 >
16 > diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
17 > index 02c70422ee0..b3fb5cef76c 100644
18 > --- a/eclass/kernel-2.eclass
19 > +++ b/eclass/kernel-2.eclass
20 > @@ -1411,7 +1411,16 @@ kernel-2_src_unpack() {
21 >
22 >      # allow ebuilds to massage the source tree after patching but before
23 >      # we run misc `make` functions below
24 > -    [[ $(type -t kernel-2_hook_premake) == "function" ]] &&
25 > kernel-2_hook_premake
26 > +    if [[ $(type -t kernel-2_hook_premake) == "function" ]]; then
27 > +        ewarn "The function name: kernel-2_hook_premake is being
28 > deprecated and"
29 > +        ewarn "being changed to:  kernel-2_insert_premake to comply
30 > with pms policy."
31 > +        ewarn "See bug #843686 "
32 > +        ewarn "The call to the old function name will be removed on or
33 > about July 1st, 2022 "
34 > +        ewarn "Please update your ebuild before this date."
35 > +        kernel-2_hook_premake
36 > +    else
37 > +        [[ $(type -t kernel-2_insert_premake) == "function" ]] &&
38 > kernel-2_insert_premake
39 > +    fi
40 >
41 >      debug-print "Doing unpack_set_extraversion"
42 >
43
44
45 Committed