Gentoo Archives: gentoo-dev

From: Mike <mpagano@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] [PATCH] linux-info.eclass: Fix func name to comply with pms, deprecate old with deadline
Date: Wed, 11 May 2022 22:26:20
Message-Id: 2a782f1c-0569-120b-aeb7-9edbae90fc4d@gentoo.org
1 According to PMS certain words are reserved for package manager use and may not be used or
2 relied upon by ebuilds.
3
4 See: https://projects.gentoo.org/pms/8/pms.html#x1-13700012.3.17
5
6 Bug: https://bugs.gentoo.org/843686
7
8 Signed-off-by: Mike Pagano <mpagano@g.o>
9 ---
10 eclass/linux-info.eclass | 18 +++++++++++++++++-
11 1 file changed, 17 insertions(+), 1 deletion(-)
12
13 diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass
14 index 7b56a47016c..8c502812f8f 100644
15 --- a/eclass/linux-info.eclass
16 +++ b/eclass/linux-info.eclass
17 @@ -148,10 +148,26 @@ esac
18 # @DESCRIPTION:
19 # Set the env ARCH to match what the kernel expects.
20 set_arch_to_kernel() { export ARCH=$(tc-arch-kernel); }
21 +
22 # @FUNCTION: set_arch_to_portage
23 # @DESCRIPTION:
24 # Set the env ARCH to match what portage expects.
25 -set_arch_to_portage() { export ARCH=$(tc-arch); }
26 +set_arch_to_portage() {
27 +
28 + ewarn "The function name: set_arch_to_portage is being deprecated and"
29 + ewarn "being changed to: set_arch_to_pkgmgr to comply with pms policy."
30 + ewarn "See bug #843686"
31 + ewarn "The old function name will be removed on or about July 1st, 2022."
32 + ewarn "Please update your ebuild or eclass before this date."
33 + ewarn ""
34 +
35 + export ARCH=$(tc-arch);
36 +}
37 +
38 +# @FUNCTION: set_arch_to_pkgmgr
39 +# @DESCRIPTION:
40 +# Set the env ARCH to match what the package manager expects.
41 +set_arch_to_pkgmgr() { export ARCH=$(tc-arch); }
42
43 # qeinfo "Message"
44 # -------------------
45 --
46 2.35.1

Replies