Gentoo Archives: gentoo-commits

From: Mike Pagano <mpagano@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Thu, 12 May 2022 12:47:07
Message-Id: 1652359543.2b037467f31b9df40e8298005ebc8d69d2b508fe.mpagano@gentoo
1 commit: 2b037467f31b9df40e8298005ebc8d69d2b508fe
2 Author: Mike Pagano <mpagano <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 12 12:45:43 2022 +0000
4 Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org>
5 CommitDate: Thu May 12 12:45:43 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b037467
7
8 linux-info.eclass: Fix func name to comply with pms, dep old with deadline
9
10 According to PMS certain words are reserved for package manager use
11 and may not be used or 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/843686
16
17 Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org>
18
19 eclass/linux-info.eclass | 18 +++++++++++++++++-
20 1 file changed, 17 insertions(+), 1 deletion(-)
21
22 diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass
23 index 7b56a47016c6..8c502812f8f0 100644
24 --- a/eclass/linux-info.eclass
25 +++ b/eclass/linux-info.eclass
26 @@ -148,10 +148,26 @@ esac
27 # @DESCRIPTION:
28 # Set the env ARCH to match what the kernel expects.
29 set_arch_to_kernel() { export ARCH=$(tc-arch-kernel); }
30 +
31 # @FUNCTION: set_arch_to_portage
32 # @DESCRIPTION:
33 # Set the env ARCH to match what portage expects.
34 -set_arch_to_portage() { export ARCH=$(tc-arch); }
35 +set_arch_to_portage() {
36 +
37 + ewarn "The function name: set_arch_to_portage is being deprecated and"
38 + ewarn "being changed to: set_arch_to_pkgmgr to comply with pms policy."
39 + ewarn "See bug #843686"
40 + ewarn "The old function name will be removed on or about July 1st, 2022."
41 + ewarn "Please update your ebuild or eclass before this date."
42 + ewarn ""
43 +
44 + export ARCH=$(tc-arch);
45 +}
46 +
47 +# @FUNCTION: set_arch_to_pkgmgr
48 +# @DESCRIPTION:
49 +# Set the env ARCH to match what the package manager expects.
50 +set_arch_to_pkgmgr() { export ARCH=$(tc-arch); }
51
52 # qeinfo "Message"
53 # -------------------