Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 800299 Details for
Bug 865115
@golang-rebuild doesn't catch all go packages that may need to be rebuilt
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
golang_rebuild_check.sh
golang_rebuild_check.sh (text/plain), 1.22 KB, created by
J. Paul Reed
on 2022-08-20 18:28:21 UTC
(
hide
)
Description:
golang_rebuild_check.sh
Filename:
MIME Type:
Creator:
J. Paul Reed
Created:
2022-08-20 18:28:21 UTC
Size:
1.22 KB
patch
obsolete
> >function golang_rebuild_check() { > # We test whether this is _empty_, so the default is to print something out; > # if the caller wants silence, then they'll pass 1 (or anything, really), > # and we won't print anything... > local -r _silent_run="$1" > local -r _orig_ifs="$IFS" > local -r _installed_go_version="$(go version | awk '{print $3}')" > local _func_rv=0 > local _go_binary_version='' > local _go_binary_filename='' > local _go_binary_portage_pkg='' > local -A _invalid_go_pkgs > local _line='' > > IFS=$'\n' > for _line in $(go version /usr/bin /bin /sbin); do > _go_binary_filename="$(echo "$_line" | awk '{print $1}' | sed -e 's;:$;;')" > _go_binary_version="$(echo "$_line" | awk '{print $2}')" > > if [[ "$_go_binary_version" != "$_installed_go_version" ]]; then > _go_binary_portage_pkg="$(equery b "$_go_binary_filename")" > _func_rv=1 > > if [[ -z "${_invalid_go_pkgs["$_go_binary_portage_pkg"]}" ]]; then > if [[ -z "$_silent_run" ]]; then > echo "Go binary/package mismatch: $_go_binary_portage_pkg ($_go_binary_version)" >&2 > fi > fi > > _invalid_go_pkgs["$_go_binary_portage_pkg"]=1 > fi > done > IFS="$_orig_ifs" > > return $_func_rv >} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 865115
: 800299