From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C1D01139694 for ; Thu, 2 Mar 2017 00:18:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0416BE0D33; Thu, 2 Mar 2017 00:18:27 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B0BBEE0CB6 for ; Thu, 2 Mar 2017 00:18:26 +0000 (UTC) Received: from localhost (unknown [100.42.103.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: williamh) by smtp.gentoo.org (Postfix) with ESMTPSA id 8EB7B341693; Thu, 2 Mar 2017 00:18:24 +0000 (UTC) Date: Wed, 1 Mar 2017 18:18:01 -0600 From: William Hubbs To: gentoo development Cc: mrueg@gentoo.org, chutzpah@gentoo.org Subject: [gentoo-dev] new virtual -- virtual/go to fix go build time dependencies Message-ID: <20170302001801.GA29649@whubbs1.gaikai.biz> Mail-Followup-To: gentoo development , mrueg@gentoo.org, chutzpah@gentoo.org Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wzJLGUyc3ArbnUjN" Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-Archives-Salt: c4552fa7-2e04-4ce1-988f-873ed93a18a5 X-Archives-Hash: 8a389b332e4c6ed8ab60d58c790619aa --wzJLGUyc3ArbnUjN Content-Type: multipart/mixed; boundary="6TrnltStXW4iwmi0" Content-Disposition: inline --6TrnltStXW4iwmi0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --6TrnltStXW4iwmi0 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="go-1.8.ebuild" # 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}" --6TrnltStXW4iwmi0 Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="golang-base-virtual.patch" Content-Transfer-Encoding: quoted-printable 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 =20 _GOLANG_BASE=3D1 =20 -DEPEND=3D">=3Ddev-lang/go-1.7:=3D" +DEPEND=3D">=3Dvirtual/go-1.7" +RDEPEND=3D">=3Dvirtual/go-1.7:=3D" =20 # Do not complain about CFLAGS etc since go projects do not use them. QA_FLAGS_IGNORED=3D'.*' --6TrnltStXW4iwmi0-- --wzJLGUyc3ArbnUjN Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iEYEARECAAYFAli3ZLIACgkQblQW9DDEZTgWwgCdEfFokal+0dFzh212Tv5CNv7Z jYwAnAgMD0zlAyIpNlbnPs2/f0baCaZE =ZUnX -----END PGP SIGNATURE----- --wzJLGUyc3ArbnUjN--