Skip to content

Commit

Permalink
dev-lang/go: mention new @go-rebuild set in pkg_postinst
Browse files Browse the repository at this point in the history
Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Georgy Yakovlev <[email protected]>
Signed-off-by: William Hubbs <[email protected]>
  • Loading branch information
gyakovlev authored and williamh committed Nov 12, 2020
1 parent a378e09 commit 8486795
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions dev-lang/go/go-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -186,3 +186,18 @@ src_install()
install_name_tool -id "${libmac64}" "${D}${libmac64}"
fi
}

pkg_postinst() {
[[ -z ${REPLACING_VERSIONS} ]] && return
has_version "<sys-apps/portage-3.0.9" && return

einfo "After ${CATEGORY}/${PN} is updated it is recommended to rebuild"
einfo "all packages compiled with previous versions of ${CATEGORY}/${PN}"
einfo "due to the static linking nature of go."
einfo "If this is not done, the packages compiled with the older"
einfo "version of the compiler will not be updated until they are"
einfo "updated individually, which could mean they will have"
einfo "vulnerabilities."
einfo "Run 'emerge @go-rebuild' to rebuild all 'go' packages"
einfo "See https://bugs.gentoo.org/752153 for more info"
}

0 comments on commit 8486795

Please sign in to comment.