Gentoo Archives: gentoo-dev

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-dev@l.g.o
Cc: "Ulrich Müller" <ulm@g.o>
Subject: [gentoo-dev] [PATCH 1/2] ghc-package.eclass: Avoid reserved function name
Date: Wed, 18 May 2022 09:26:22
Message-Id: 20220518092601.15779-1-ulm@gentoo.org
1 Rename function ghc-extractportageversion to ghc-extract-pm-version.
2
3 Closes: https://bugs.gentoo.org/843713
4 Signed-off-by: Ulrich Müller <ulm@g.o>
5 ---
6 eclass/ghc-package.eclass | 6 +++---
7 1 file changed, 3 insertions(+), 3 deletions(-)
8
9 diff --git a/eclass/ghc-package.eclass b/eclass/ghc-package.eclass
10 index 303cf32d7ef5..8c77ad5bc3cb 100644
11 --- a/eclass/ghc-package.eclass
12 +++ b/eclass/ghc-package.eclass
13 @@ -1,4 +1,4 @@
14 -# Copyright 1999-2021 Gentoo Authors
15 +# Copyright 1999-2022 Gentoo Authors
16 # Distributed under the terms of the GNU General Public License v2
17
18 # @ECLASS: ghc-package.eclass
19 @@ -152,10 +152,10 @@ ghc-supports-parallel-make() {
20 $(ghc-getghc) --info | grep "Support parallel --make" | grep -q "YES"
21 }
22
23 -# @FUNCTION: ghc-extractportageversion
24 +# @FUNCTION: ghc-extract-pm-version
25 # @DESCRIPTION:
26 # extract the version of a portage-installed package
27 -ghc-extractportageversion() {
28 +ghc-extract-pm-version() {
29 local pkg
30 local version
31 pkg="$(best_version $1)"
32 --
33 2.35.1

Replies