From: "William Hubbs" <williamh@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/go/files/, dev-lang/go/
Date: Mon, 7 Dec 2020 01:44:48 +0000 (UTC) [thread overview]
Message-ID: <1607305430.3262576e57dc88108b7ce603a2e575c6fdf89e9b.williamh@gentoo> (raw)
commit: 3262576e57dc88108b7ce603a2e575c6fdf89e9b
Author: William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 7 01:41:03 2020 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Mon Dec 7 01:43:50 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3262576e
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 <AT> gentoo.org>
dev-lang/go/files/go-sets.conf | 7 +++++++
dev-lang/go/go-9999.ebuild | 6 ++++--
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/dev-lang/go/files/go-sets.conf b/dev-lang/go/files/go-sets.conf
new file mode 100644
index 00000000000..01ad4a8b3d4
--- /dev/null
+++ b/dev-lang/go/files/go-sets.conf
@@ -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
diff --git a/dev-lang/go/go-9999.ebuild b/dev-lang/go/go-9999.ebuild
index c81e94e1235..1157708bdb5 100644
--- a/dev-lang/go/go-9999.ebuild
+++ b/dev-lang/go/go-9999.ebuild
@@ -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."
next reply other threads:[~2020-12-07 1:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-07 1:44 William Hubbs [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-01-10 20:46 [gentoo-commits] repo/gentoo:master commit in: dev-lang/go/files/, dev-lang/go/ William Hubbs
2017-01-12 21:35 William Hubbs
2016-07-28 15:59 William Hubbs
2016-05-18 17:30 William Hubbs
2016-04-02 18:36 William Hubbs
2016-01-15 18:42 William Hubbs
2015-11-27 20:39 William Hubbs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1607305430.3262576e57dc88108b7ce603a2e575c6fdf89e9b.williamh@gentoo \
--to=williamh@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox