Сравнение go-1.20.8 с go-1.21.1
/usr/portage/dev-lang/go/go-1.21.1.ebuild 2023-10-09 14:52:29.460368349 +0300 | ||
---|---|---|
121 | 121 |
[[ $(go_tuple ${CBUILD}) != $(go_tuple) ]] |
122 | 122 |
} |
123 | 123 | |
124 |
PATCHES=( |
|
125 |
"${FILESDIR}"/go-never-download-newer-toolchains.patch |
|
126 |
) |
|
127 | ||
124 | 128 |
src_compile() { |
125 | 129 |
if has_version -b ">=dev-lang/go-${GO_BOOTSTRAP_MIN}"; then |
126 | 130 |
export GOROOT_BOOTSTRAP="${BROOT}/usr/lib/go" |
... | ... | |
157 | 161 |
cd src |
158 | 162 | |
159 | 163 |
# https://github.com/golang/go/issues/42005 |
160 |
rm cmd/link/internal/ld/fallocate_test.go || true |
|
164 |
rm cmd/link/internal/ld/fallocate_test.go || die |
|
161 | 165 | |
162 | 166 |
PATH="${GOBIN}:${PATH}" \ |
163 |
./run.bash -no-rebuild || die "tests failed" |
|
164 |
cd .. |
|
165 |
rm -fr pkg/*_race || die |
|
166 |
rm -fr pkg/obj/go-build || die |
|
167 |
./run.bash -no-rebuild -k || die "tests failed" |
|
167 | 168 |
} |
168 | 169 | |
169 | 170 |
src_install() { |
170 |
# There is a known issue which requires the source tree to be installed [1]. |
|
171 |
# Once this is fixed, we can consider using the doc use flag to control |
|
172 |
# installing the doc and src directories. |
|
173 |
# The use of cp is deliberate in order to retain permissions |
|
174 |
# [1] https://golang.org/issue/2775 |
|
175 | 171 |
dodir /usr/lib/go |
172 |
# The use of cp is deliberate in order to retain permissions |
|
176 | 173 |
cp -R api bin doc lib pkg misc src test "${ED}"/usr/lib/go |
177 | 174 |
einstalldocs |
178 | 175 | |
176 |
insinto /usr/lib/go |
|
177 |
doins go.env VERSION |
|
178 | ||
179 | 179 |
# testdata directories are not needed on the installed system |
180 | 180 |
rm -fr $(find "${ED}"/usr/lib/go -iname testdata -type d -print) |
181 | 181 |