Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[gentoo-dev] [PATCH] linux-info.eclass: Fix func name to comply with pms, deprecate old with deadline

2 views
Skip to first unread message

Mike

unread,
May 11, 2022, 6:30:03 PM5/11/22
to
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

Bug: https://bugs.gentoo.org/843686

Signed-off-by: Mike Pagano <mpa...@gentoo.org>
---
eclass/linux-info.eclass | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass
index 7b56a47016c..8c502812f8f 100644
--- a/eclass/linux-info.eclass
+++ b/eclass/linux-info.eclass
@@ -148,10 +148,26 @@ esac
# @DESCRIPTION:
# Set the env ARCH to match what the kernel expects.
set_arch_to_kernel() { export ARCH=$(tc-arch-kernel); }
+
# @FUNCTION: set_arch_to_portage
# @DESCRIPTION:
# Set the env ARCH to match what portage expects.
-set_arch_to_portage() { export ARCH=$(tc-arch); }
+set_arch_to_portage() {
+
+ ewarn "The function name: set_arch_to_portage is being deprecated and"
+ ewarn "being changed to: set_arch_to_pkgmgr to comply with pms policy."
+ ewarn "See bug #843686"
+ ewarn "The old function name will be removed on or about July 1st, 2022."
+ ewarn "Please update your ebuild or eclass before this date."
+ ewarn ""
+
+ export ARCH=$(tc-arch);
+}
+
+# @FUNCTION: set_arch_to_pkgmgr
+# @DESCRIPTION:
+# Set the env ARCH to match what the package manager expects.
+set_arch_to_pkgmgr() { export ARCH=$(tc-arch); }

# qeinfo "Message"
# -------------------
--
2.35.1
0 new messages