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 BD1C0139694 for ; Thu, 2 Mar 2017 23:11:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6FE9621C0FA; Thu, 2 Mar 2017 23:11:12 +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 2443121C028 for ; Thu, 2 Mar 2017 23:11:12 +0000 (UTC) Received: from localhost (dra13-4-78-234-166-189.fbx.proxad.net [78.234.166.189]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: aballier) by smtp.gentoo.org (Postfix) with ESMTPSA id AC6593416FF for ; Thu, 2 Mar 2017 23:11:10 +0000 (UTC) Date: Fri, 3 Mar 2017 00:11:05 +0100 From: Alexis Ballier To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] new virtual -- virtual/go to fix go build time dependencies Message-ID: <20170303001105.5f7f77c8@gentoo.org> In-Reply-To: <16115a95-b98d-c125-5b43-184085a73b6f@gentoo.org> References: <20170302001801.GA29649@whubbs1.gaikai.biz> <20170302105854.189f1f88@gentoo.org> <135e77dc-c443-8dd3-185b-71e743a4b700@gentoo.org> <9049c20c-e5b2-c554-9211-2da7eef055df@gentoo.org> <0902279a-1684-5204-8f3d-33a07bbfbac0@gentoo.org> <98334094-ff07-f4d2-8d4b-0ed482dff63f@gentoo.org> <39a8f38d-86ac-fd4a-7397-e8db6acc4a60@gentoo.org> <20170302213000.6787600a@snowblower> <20170302225331.6d3837b4@gentoo.org> <16115a95-b98d-c125-5b43-184085a73b6f@gentoo.org> Organization: Gentoo X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) 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: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: 7271a30e-7d0b-4e12-866a-75439cf9479c X-Archives-Hash: 07486d50f61b625b4483703e23692c58 On Thu, 2 Mar 2017 17:36:16 -0500 Michael Orlitzky wrote: > On 03/02/2017 04:53 PM, Alexis Ballier wrote: > >> > >> Back on topic: > >> > >> What kind of dependency do we need, anyway? William, are you saying > >> that if I upgrade dev-lang/go, then things will break, but if I > >> delete dev-lang/go, everything is fine? > > > > It's likely like ocaml: you link your programs ~ statically but > > everything you link needs to be built with the same compiler. So > > that'd be some kind of "build against"-RDEPEND. > > > > The tiny practical part of me thinks it's probably better to add > dev-lang/go:= to RDEPEND than it is to create an entirely new class of > dependencies to handle this. That's what I do with ocaml, it works pretty well :) My rationale is that for size-constrained installs (embedded, containers, etc.) you'd have to remove everything you don't need anyway (/usr/include, gcc, etc.) so one more or one less does not make a difference. And for normal gentoo installs, you'd want to upgrade, so better not waste your time uninstalling and reinstalling it every time. Nevertheless, build-against deps are still useful. Think of a lib #including eigen in its public headers. Is eigen a build or run depend ? It's in-between: build-against :) Alexis.