mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
dev-lang/go: add way to have portage rebuild software written in Go
This adds the @golang-rebuild set to portage to allow rebuilding all known Go software in the tree. This change only affects the live ebuild, but I will be adding it to other versions. Signed-off-by: William Hubbs <williamh@gentoo.org>
This commit is contained in:
7
dev-lang/go/files/go-sets.conf
Normal file
7
dev-lang/go/files/go-sets.conf
Normal file
@@ -0,0 +1,7 @@
|
||||
# Installed packages that inherit from known Go related eclasses.
|
||||
# This is useful after a dev-lang/go version change to rebuild all
|
||||
# software written in Go.
|
||||
[golang-rebuild]
|
||||
class = portage.sets.dbapi.VariableSet
|
||||
variable = INHERITED
|
||||
includes = golang-base golang-build golang-vcs golang-vcs-snapshot go-module
|
||||
@@ -178,6 +178,10 @@ src_install()
|
||||
done
|
||||
einstalldocs
|
||||
|
||||
# install the @golang-rebuild set for Portage
|
||||
insinto /usr/share/portage/config/sets
|
||||
newins "${FILESDIR}"/go-sets.conf go.conf
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||
# fix install_name for test object (binutils_test) on Darwin, it
|
||||
# is never used in real circumstances
|
||||
@@ -189,8 +193,6 @@ src_install()
|
||||
|
||||
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."
|
||||
|
||||
Reference in New Issue
Block a user