Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/go/
Date: Tue, 02 Aug 2022 20:21:37
Message-Id: 1659471687.29fc08f6d22eefef229dde9946c69e15db3b074d.williamh@gentoo
1 commit: 29fc08f6d22eefef229dde9946c69e15db3b074d
2 Author: William Hubbs <williamh <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 2 20:20:32 2022 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 2 20:21:27 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29fc08f6
7
8 dev-lang/go: rename portage_arch variable to tc_arch for pkgcheck
9
10 Signed-off-by: William Hubbs <williamh <AT> gentoo.org>
11
12 dev-lang/go/go-1.18.4.ebuild | 6 +++---
13 dev-lang/go/go-1.18.5.ebuild | 6 +++---
14 dev-lang/go/go-1.19.ebuild | 6 +++---
15 dev-lang/go/go-9999.ebuild | 6 +++---
16 4 files changed, 12 insertions(+), 12 deletions(-)
17
18 diff --git a/dev-lang/go/go-1.18.4.ebuild b/dev-lang/go/go-1.18.4.ebuild
19 index 7f1ce9304e51..b8ededbce758 100644
20 --- a/dev-lang/go/go-1.18.4.ebuild
21 +++ b/dev-lang/go/go-1.18.4.ebuild
22 @@ -64,14 +64,14 @@ README.md
23
24 go_arch() {
25 # By chance most portage arch names match Go
26 - local portage_arch=$(tc-arch $@)
27 - case "${portage_arch}" in
28 + local tc_arch=$(tc-arch $@)
29 + case "${tc_arch}" in
30 x86) echo 386;;
31 x64-*) echo amd64;;
32 ppc64) [[ $(tc-endian $@) = big ]] && echo ppc64 || echo ppc64le ;;
33 riscv) echo riscv64 ;;
34 s390) echo s390x ;;
35 - *) echo "${portage_arch}";;
36 + *) echo "${tc_arch}";;
37 esac
38 }
39
40
41 diff --git a/dev-lang/go/go-1.18.5.ebuild b/dev-lang/go/go-1.18.5.ebuild
42 index 217891046702..c340b5873264 100644
43 --- a/dev-lang/go/go-1.18.5.ebuild
44 +++ b/dev-lang/go/go-1.18.5.ebuild
45 @@ -64,14 +64,14 @@ README.md
46
47 go_arch() {
48 # By chance most portage arch names match Go
49 - local portage_arch=$(tc-arch $@)
50 - case "${portage_arch}" in
51 + local tc_arch=$(tc-arch $@)
52 + case "${tc_arch}" in
53 x86) echo 386;;
54 x64-*) echo amd64;;
55 ppc64) [[ $(tc-endian $@) = big ]] && echo ppc64 || echo ppc64le ;;
56 riscv) echo riscv64 ;;
57 s390) echo s390x ;;
58 - *) echo "${portage_arch}";;
59 + *) echo "${tc_arch}";;
60 esac
61 }
62
63
64 diff --git a/dev-lang/go/go-1.19.ebuild b/dev-lang/go/go-1.19.ebuild
65 index 217891046702..c340b5873264 100644
66 --- a/dev-lang/go/go-1.19.ebuild
67 +++ b/dev-lang/go/go-1.19.ebuild
68 @@ -64,14 +64,14 @@ README.md
69
70 go_arch() {
71 # By chance most portage arch names match Go
72 - local portage_arch=$(tc-arch $@)
73 - case "${portage_arch}" in
74 + local tc_arch=$(tc-arch $@)
75 + case "${tc_arch}" in
76 x86) echo 386;;
77 x64-*) echo amd64;;
78 ppc64) [[ $(tc-endian $@) = big ]] && echo ppc64 || echo ppc64le ;;
79 riscv) echo riscv64 ;;
80 s390) echo s390x ;;
81 - *) echo "${portage_arch}";;
82 + *) echo "${tc_arch}";;
83 esac
84 }
85
86
87 diff --git a/dev-lang/go/go-9999.ebuild b/dev-lang/go/go-9999.ebuild
88 index 217891046702..c340b5873264 100644
89 --- a/dev-lang/go/go-9999.ebuild
90 +++ b/dev-lang/go/go-9999.ebuild
91 @@ -64,14 +64,14 @@ README.md
92
93 go_arch() {
94 # By chance most portage arch names match Go
95 - local portage_arch=$(tc-arch $@)
96 - case "${portage_arch}" in
97 + local tc_arch=$(tc-arch $@)
98 + case "${tc_arch}" in
99 x86) echo 386;;
100 x64-*) echo amd64;;
101 ppc64) [[ $(tc-endian $@) = big ]] && echo ppc64 || echo ppc64le ;;
102 riscv) echo riscv64 ;;
103 s390) echo s390x ;;
104 - *) echo "${portage_arch}";;
105 + *) echo "${tc_arch}";;
106 esac
107 }