From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id GCzBHXgYvmAnMgEAgWs5BA (envelope-from ) for ; Mon, 07 Jun 2021 15:00:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 6KVJGXgYvmD0FAAA1q6Kng (envelope-from ) for ; Mon, 07 Jun 2021 13:00:40 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D744D21FDC for ; Mon, 7 Jun 2021 15:00:39 +0200 (CEST) Received: from localhost ([::1]:50074 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqEru-000897-DO for larch@yhetil.org; Mon, 07 Jun 2021 09:00:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39822) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqErL-00088r-07 for guix-patches@gnu.org; Mon, 07 Jun 2021 09:00:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43165) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lqErK-0001AK-M0 for guix-patches@gnu.org; Mon, 07 Jun 2021 09:00:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lqErK-0006qb-9t for guix-patches@gnu.org; Mon, 07 Jun 2021 09:00:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47539] Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 07 Jun 2021 13:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47539 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Leo Famulari Cc: 47539@debbugs.gnu.org, Leo Prikler Received: via spool by 47539-submit@debbugs.gnu.org id=B47539.162307075426233 (code B ref 47539); Mon, 07 Jun 2021 13:00:02 +0000 Received: (at 47539) by debbugs.gnu.org; 7 Jun 2021 12:59:14 +0000 Received: from localhost ([127.0.0.1]:54711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqEqU-0006p0-1W for submit@debbugs.gnu.org; Mon, 07 Jun 2021 08:59:14 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:56990 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqEqO-0006oQ-DQ for 47539@debbugs.gnu.org; Mon, 07 Jun 2021 08:59:08 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1623070736; bh=q6Z5emDt/1xVtW7yvPrZnI30RK+YPTZDagy8qAx3rEU=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=VtkgW7Z0IjswexOpjWs8e6vfq5YgRYBPrhMgDzhLf4tPnID6IlI+JlBoJPjqepKgS lXPqBoZlVX0Zm9zuWK/4eUs4IuM1aslbnXFpVGasdkP65Hw78FIi52i8vUctYS0GFT 7EieWOyFb+42z8/qmX1MmVUQ1xsrO+rt/wAHobuw= In-Reply-To: References: <87y2dd8r18.fsf@yoctocell.xyz> <87lf9d8l43.fsf@yoctocell.xyz> <87mts486ln.fsf@yoctocell.xyz> Date: Mon, 07 Jun 2021 14:58:54 +0200 Message-ID: <87pmwxu8z5.fsf@yoctocell.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1623070840; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=lMRl9VBQe7bz1i020Z4KmgE7ZP6ygWPrhbo7ptkgB7w=; b=OY6JAGf/1cBWIVcVb76/cQWHUrezrz1NB0oGSSyIKUkARRR/W0On0FKh0lfsvjzrJQSGTZ MZvgAMEhkfP6R+PmmDNqbA6mGp+AMa2c0dWum3wPMDZtf+NI1OeII5dP6AKH+zLsImCdJP gheD6iYgpIjMC0thCScUyLtanHedNAaLTh1nGOizHQBpucu4aeY3EO9X2T/RwG7tET9nje Jw1UGog3vi9CihY0/QfD+qsihalRwt4eTCdrc3Z9TNVF8eGdbwIgz89eCmkq/u99nMAKoE OoBZ3cCPie8rmmi+5SGIT1mgHim5mRqpqU6UksarxXoar056umcasxckXo43gw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623070840; a=rsa-sha256; cv=none; b=tTJfDR6iMl2LOT4LPrOgH9knZvwKFihYrJLxSFNHDQ+DHsggEJtHxXVn27Dt2xnrgps3KG frZpUnLzokt/cLbtT8htCCM+z/QPsXPHDxWWKRwKUUC+Amvn1FWpOBtZNwOGqAZcohLJFT q2hX3v+U8N1ib+wF9YzPlE1xEFVjz/+dkPbnpdbfJNJ/8ClB1cbh+AxIZz0rlXJ0MDrzel v3wEqMzz3uXnVeqKQXkEObVbnMgefd65h1WlFKKSx+a5EWwDr9XhOcSB17i5LfS62B4cVp +5D62TUYFt95yVGqLZDQNtf/AvtNeZMkamkVnvUPr0Kzb7EuH4YJNV8tYmdihg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=VtkgW7Z0; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.42 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=VtkgW7Z0; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: D744D21FDC X-Spam-Score: -1.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: bm59o0sk095d --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Sun, Jun 06 2021, Leo Famulari wrote: > On Sat, Jun 05, 2021 at 09:16:36PM +0200, Xinglu Chen wrote: >> On Fri, May 21 2021, Leo Famulari wrote: >> > I notice that (most of?) the new packages use native-inputs for their >> > dependencies. >> > >> > If these dependencies are used at run-time, I would propagate them >> > instead. This way, they will be available in the build environment of >> > packages that depend on the package that is using them, which matters >> > for our go-build-system, where everything is built from scratch in each >> > package. If I remember correctly, that is... >>=20 >> I am not familiar with the Go ecosystem, is there a way to tell if a >> dependency is used at runtime? > > Remember, Go uses static compilation, so Guix's concept of "runtime" > dependencies doesn't apply to Go like it does for other languages. > > For Go, you'll know that a dependency was missing, because the build > will fail without it. Everything built fine the last time I was working on this, and I was able to open a GitHub issue using the resulting =E2=80=98gh=E2=80=99 binary= , so things seem to be OK. > Our current go-build-system implementation rebuilds every dependency > from source when it is used while building another package > (inefficient!). So kinda like what Cargo does? Go doesn=E2=80=99t seem to have the concept= of shared libraries, I guess? > If foo requires bar, and baz depends on foo, then bar needs to be > available when building baz. That is because foo will be rebuilt while > building baz. > > We must either propagate bar from foo, or make baz depend on it. > Technically, bar is a dependency of foo, so it is correct to propagate > it from foo. So if A dependes on B which depends on C, and I want to build A, then C has to be a =E2=80=98propagated-input=E2=80=99 for B? Did I get that right? But if I just want to build B, should C still be a =E2=80=98propagated-inpu= t=E2=80=99 for B? > You may also check if baz also depends on bar, by checking if baz tries > to import bar. Go software imports (or declares?) its dependencies by > importing them using "import paths" [0], as shown in this example: Right, but shouldn=E2=80=99t it be enough to just look at the content of the go.mod file, won=E2=80=99t it list all the dependencies of the package? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJJBAEBCAAzFiEEAVhh4yyK5+SEykIzrPUJmaL7XHkFAmC+GA8VHHB1YmxpY0B5 b2N0b2NlbGwueHl6AAoJEKz1CZmi+1x5VxkP/ikDJEbnI5VByH1w+QlkP+nhAHas JeDQ0PTjvR01sDjySjKEtqLl5/PoNALBAPMXj6yt1of7RWO4eRbKuehgGlCGYhXN A45H3NwjIj6nhNcjVgACZR25mN9hnjrzb5NFC6GBNpas56e3MoXoqYxz2CHP6uL+ o3w0ill+OTWKe0FOLJsJngS/xIX+PfYNCiRp5yn+LnBDyM+WaBzHBy2L/ILAw6kK sqqECbxclcx78F/qpucIQL7lUNSkv2HELJqOxGUc1nFgD634Fhq6MKGQoHO38yHL 49utO6johl+LY73aLgvFRVrHHwOQKroMH4ny/Kptm9V7grdlCAefGcTPt5gSqAv2 5dirSlj21Ay7+4I23Dy1g+/a2/9BeKiN19untZGM61fSnoISdEoQVqEeX2aaz3dB b9xJhM05lnClxOkHIxYHoxbFIE9XUZS35UuDDFtbH7kiMZTGDwQDfMFyR4cWAJbS te0ynRsIDwt5YsVeH6Ip9u6VWa60NOswLsRvPQzpQW6NfyYEoIeYVa72LKkPI1i9 ZrAR4juCnomeM2i7Wm/dHSjNHzmpWLtxT4ON+d2IMPq6lFbmxWwYFd7NwN/aFk7L upd1jowSjjon0k4m1RVQOAkRicO/loYtDHhOvfez4TwX0TQQSSbQayS9sy2bLgOa aPEgCeGhRt8J5aqY =bquT -----END PGP SIGNATURE----- --=-=-=--