public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] new virtual -- virtual/go to fix go build time dependencies
@ 2017-03-02  0:18 William Hubbs
  2017-03-02  3:45 ` Mike Gilbert
                   ` (2 more replies)
  0 siblings, 3 replies; 35+ messages in thread
From: William Hubbs @ 2017-03-02  0:18 UTC (permalink / raw
  To: gentoo development; +Cc: mrueg, chutzpah


[-- Attachment #1.1: Type: text/plain, Size: 606 bytes --]

All,

the dependencies for dev-lang/go need to force a rebuild every time the
compiler is downgraded or upgraded.

To avoid abusing slot dependencies for dev-lang/go since it is not
needed at runtime I need to do the following.

I need to introduce virtual/go-1.7.5, virtual/go-1.8 and
virtual/go-9999. The attachment shows 1.8 but it is the same for all
versions.

Also, the attached patch needs to be applied to golang-base.eclass.

This is based on the following wiki page:

Ahttps://wiki.gentoo.org/wiki/Project:Quality_Assurance/Subslots#Using_virtuals_to_expose_multiple_ABIs

Any thoughts?

William

[-- Attachment #1.2: go-1.8.ebuild --]
[-- Type: text/plain, Size: 295 bytes --]

# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

DESCRIPTION="virtual for the Go compiler"
SLOT="0/${PV}"
		KEYWORDS="-* ~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~x64-macos ~x64-solaris"

DEPEND="~dev-lang/go-${PV}"

[-- Attachment #1.3: golang-base-virtual.patch --]
[-- Type: text/x-diff, Size: 430 bytes --]

diff --git a/eclass/golang-base.eclass b/eclass/golang-base.eclass
index 0cfd07e..e841763 100644
--- a/eclass/golang-base.eclass
+++ b/eclass/golang-base.eclass
@@ -22,7 +22,8 @@ if [[ -z ${_GOLANG_BASE} ]]; then
 
 _GOLANG_BASE=1
 
-DEPEND=">=dev-lang/go-1.7:="
+DEPEND=">=virtual/go-1.7"
+RDEPEND=">=virtual/go-1.7:="
 
 # Do not complain about CFLAGS etc since go projects do not use them.
 QA_FLAGS_IGNORED='.*'

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 163 bytes --]

^ permalink raw reply related	[flat|nested] 35+ messages in thread

end of thread, other threads:[~2017-03-10 14:45 UTC | newest]

Thread overview: 35+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-02  0:18 [gentoo-dev] new virtual -- virtual/go to fix go build time dependencies William Hubbs
2017-03-02  3:45 ` Mike Gilbert
2017-03-02  3:47 ` [gentoo-dev] " Jonathan Callen
2017-03-02  9:58 ` [gentoo-dev] " Alexis Ballier
2017-03-02 14:03   ` Michael Orlitzky
2017-03-02 14:24     ` Mike Gilbert
2017-03-02 14:47       ` Michael Orlitzky
2017-03-02 14:56         ` Ciaran McCreesh
2017-03-02 15:14           ` Alexis Ballier
2017-03-02 19:05         ` Zac Medico
2017-03-02 19:24           ` Michael Orlitzky
2017-03-02 21:06             ` Zac Medico
2017-03-02 21:25               ` Michael Orlitzky
2017-03-02 21:30                 ` Ciaran McCreesh
2017-03-02 21:46                   ` Michael Orlitzky
2017-03-02 21:53                     ` Alexis Ballier
2017-03-02 22:36                       ` Michael Orlitzky
2017-03-02 23:11                         ` Alexis Ballier
2017-03-07 22:40                     ` William Hubbs
2017-03-07 23:51                       ` Michael Orlitzky
2017-03-08  0:02                         ` Patrick McLean
2017-03-08  0:13                           ` Michael Orlitzky
2017-03-08  0:38                             ` William Hubbs
2017-03-08  6:27                               ` Zac Medico
2017-03-08 12:44                                 ` Michael Orlitzky
2017-03-08 19:20                                   ` William Hubbs
2017-03-08 19:28                                     ` Zac Medico
2017-03-09  0:49                                     ` Michael Orlitzky
2017-03-09 15:36                                       ` William Hubbs
2017-03-09 16:06                                         ` Michael Orlitzky
2017-03-10  7:53                                           ` Alexis Ballier
2017-03-10 14:44                                           ` Kristian Fiskerstrand
2017-03-08  8:07                       ` Kent Fredric
2017-03-08  8:18                         ` Michał Górny
2017-03-02 21:34               ` Alexis Ballier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox