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 4ADD1138334 for ; Fri, 13 Sep 2019 01:56:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9215BE0C2A; Fri, 13 Sep 2019 01:56:38 +0000 (UTC) Received: from mail-io1-xd43.google.com (mail-io1-xd43.google.com [IPv6:2607:f8b0:4864:20::d43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 80075E0C1A for ; Fri, 13 Sep 2019 01:56:37 +0000 (UTC) Received: by mail-io1-xd43.google.com with SMTP id a1so1428856ioc.6 for ; Thu, 12 Sep 2019 18:56:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gentoo-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=W+VdUM6/L0HXkoQS57JFYQdxJ6nTMFVLpCQhS96jqBw=; b=xNA8qJQSOL6KsreCNAkUpWv/+0XFYkl1BRuEZpfQN6BtTfL9cqbNviux+iZ7hfo35n Mwoo+9neKEnDPLsit/Se7BL4XYJsAJvFOIVag2yY/lCdt1eI6Gz7PDwsa+XgBHkmLGh3 L/QCjtlXlSIgMX5DVAt+Uht3aqw5GXCwvLXC+GJnFtSYOX/J7gXR9jnt1N1uM3DgekgJ DiEs0JMQmLs+VNycybDNIp+QjWbkiZ1pb52+Z2il7xI/hN2wtBWDKJQg0xPYn2vF942j icVpu3h7+0IxJtbTAFcYmdNNd0qB0rl3lnnxTyr7HuK+Zzu3pBc8hOcRphqnM01IGC3/ +G1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=W+VdUM6/L0HXkoQS57JFYQdxJ6nTMFVLpCQhS96jqBw=; b=jXrIyAbbWLyI/oDvprdcxRVry6xRasSh7qeXqe4wwKzB2HMpCO+CJqTBjgG1odr8J5 l9mYV4aj8hz2JMKK7qNVczw7mDL4Sc8zqGuPqYg+NxXtZbu3GWocoSFBQ7qTb8QDAheA VOI2RG5S1Sk3+LrP3E+QHRUdqpEn+mpDfr33gCLQ0fHGhuF8FSUpND3UCJ3mMpu0Q7wM eNw8REZpab22WvBYXNRAOKfWBT3GO+Jd2AQW3Q44V5LC9R23g6gUFHD4epvqIB7Bg/xP 1dSbyKEOv6TPht4mw8/y6vRT3q12YsNNCO4k3Qb9xXqt4mkgkgM7H1uGIWZeRfjPeadt 7DIQ== X-Gm-Message-State: APjAAAVIwuqSyYgMJRMANtr16Kb4bJleB+1incOVYfh4cVBP2ibo4jCZ 1VeDvL15BMTwUDQvG/S9gLkxTloOtsMp96Zh5H6emXC73Pw= X-Google-Smtp-Source: APXvYqzYMufsYcOJT6TlZm6ZyM6nI1L2VPytdn6Il/kqjkl3ZWFUujZ0k4velnR56K++F0Njdbe9ZkUO5DvANXa15JQ= X-Received: by 2002:a6b:b445:: with SMTP id d66mr8804859iof.269.1568339796196; Thu, 12 Sep 2019 18:56:36 -0700 (PDT) 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 X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 References: <20190911172128.18885-1-williamh@gentoo.org> <20190911172128.18885-4-williamh@gentoo.org> <20190911234815.GA21591@whubbs1.dev.av1.gaikai.org> <20190912154634.GB23846@whubbs1.dev.av1.gaikai.org> <88094567-323c-6f6a-a1d9-0c1b77ef53e3@gentoo.org> <6acd490e-6393-62e4-5d07-71c2a3624417@gentoo.org> <2db31450-63e5-2ecc-ff3b-1858c760b287@gentoo.org> <4ccab80c-fc9e-c843-8a1b-50a329abf6c1@gentoo.org> In-Reply-To: From: Alec Warner Date: Thu, 12 Sep 2019 18:56:25 -0700 Message-ID: Subject: Re: [gentoo-dev] [PATCH 3/3] dev-vcs/hub: migrate to go-module.eclass To: Gentoo Dev Content-Type: multipart/alternative; boundary="00000000000070952005926590a0" X-Archives-Salt: ed077bfe-c301-431a-b0f3-8142de58395f X-Archives-Hash: 3aa13ecd484228f15c9cc2a375e78cd7 --00000000000070952005926590a0 Content-Type: text/plain; charset="UTF-8" On Thu, Sep 12, 2019 at 5:14 PM Michael Orlitzky wrote: > On 9/12/19 5:23 PM, Mike Gilbert wrote: > > > > Putting the dependencies in RDEPEND means users get stuck with yet > > another copy of the code installed, in addition to the copy that is > > statically linked into all reverse dependencies. > > > > It's not a very good solution to the problem. > > > > No argument there. The elegant solution to static linking is to not do > it. But I guess that's off the table? So now we're trying to find the > best not very good solution. > > Well I think you end up with a weird tradeoff here. Most people who build and package go-based packages use static compilation, so we could in theory build dynamically linked executables, but then we diverge from the upstream practice. Maybe this is the right approach, but I think its a bunch of extra engineering work (to make things build dynamically) and will be pretty different from what upstream is expecting. https://docs.google.com/document/d/1nr-TQHw_er6GOQRsF6T43GGhFDelrAP0NqSS_00RgZQ/edit describes the new execution modes; it even discusses this very topic! "This mode is mainly intended to support distro builders. They can distribute Go packages or groups of packages as shared libraries, and can thus update all Go programs by updating the shared libraries, without requiring the programs to be relinked." I wonder who pushed for this to Ian, and whether distros ended up using this kind of target? -A --00000000000070952005926590a0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Thu, Sep 12, 2019 at 5:14 PM Micha= el Orlitzky <mjo@gentoo.org> wr= ote:
On 9/12/19 = 5:23 PM, Mike Gilbert wrote:
>
> Putting the dependencies in RDEPEND means users get stuck with yet
> another copy of the code installed, in addition to the copy that is > statically linked into all reverse dependencies.
>
> It's not a very good solution to the problem.
>

No argument there. The elegant solution to static linking is to not do
it. But I guess that's off the table? So now we're trying to find t= he
best not very good solution.


Well I think you end up with a weird t= radeoff here.

Most people who build and package go= -based packages use static compilation, so we could in theory build dynamic= ally linked executables, but then we diverge from the upstream practice.
Maybe this is the right approach, but I think its a bunch of extra = engineering work (to make things build dynamically) and will be pretty diff= erent from what upstream is expecting.

https://docs.google.com/document/d/1nr-TQHw_er6GOQRsF6T43GGhFDel= rAP0NqSS_00RgZQ/edit=C2=A0describes the new execution modes; it even di= scusses this very topic!

"This mode is mainly intended to support distro builders.=C2= =A0 They can distribute Go packages or groups of packages as shared librari= es, and can thus update all Go programs by updating the shared libraries, w= ithout requiring the programs to be relinked."

I wonder who pushed for this to Ian, and whether distros ended up using = this kind of target?

-A


--00000000000070952005926590a0--