From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 0IvEL0/4LV9GQQAA0tVLHw (envelope-from ) for ; Sat, 08 Aug 2020 00:56:47 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id aHyVK0/4LV+vYAAAB5/wlQ (envelope-from ) for ; Sat, 08 Aug 2020 00:56:47 +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 78AF9940415 for ; Sat, 8 Aug 2020 00:56:47 +0000 (UTC) Received: from localhost ([::1]:44224 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k4DAE-0004ga-9f for larch@yhetil.org; Fri, 07 Aug 2020 20:56:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45760) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k4DA5-0004gT-32 for guix-devel@gnu.org; Fri, 07 Aug 2020 20:56:37 -0400 Received: from pat.zlotemysli.pl ([37.59.186.212]:56292) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k4DA3-00070V-2n for guix-devel@gnu.org; Fri, 07 Aug 2020 20:56:36 -0400 Received: (qmail 5980 invoked by uid 1009); 8 Aug 2020 02:56:32 +0200 Received: from 188.123.215.55 (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl (envelope-from , uid 1002) with qmail-scanner-2.08st (clamdscan: 0.98.6/25896. spamassassin: 3.4.0. perlscan: 2.08st. Clear:RC:1(188.123.215.55):. Processed in 0.055606 secs); 08 Aug 2020 00:56:32 -0000 Received: from unknown (HELO gravity) (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl with SMTP; 8 Aug 2020 02:56:31 +0200 Date: Sat, 8 Aug 2020 02:56:30 +0200 From: Jakub =?utf-8?B?S8SFZHppb8WCa2E=?= To: Carlo Zancanaro Subject: Re: Why does %build-inputs contain the transitive closure of inputs?! Message-ID: <20200808005630.7md73knz6mqjanhc@gravity> References: <20200807230839.n4zussxemc2sxcp3@gravity> <87y2mqm19b.fsf@zancanaro.id.au> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="k5xtxvff6rihusyg" Content-Disposition: inline In-Reply-To: <87y2mqm19b.fsf@zancanaro.id.au> Received-SPF: none client-ip=37.59.186.212; envelope-from=kuba@kadziolka.net; helo=pat.zlotemysli.pl X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/07 18:14:45 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, PLING_QUERY=0.1, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -2.61 X-TUID: A8x6a92UWB9l --k5xtxvff6rihusyg Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Aug 08, 2020 at 10:26:08AM +1000, Carlo Zancanaro wrote: > Hi Jakub, >=20 > On Sat, Aug 08 2020, Jakub K=C4=85dzio=C5=82ka wrote: > > Why? I would expect only libgit2 to be present, and not all of its > > dependencies. ... >=20 > If you take a look at the definition for libgit2 in > gnu/packages/version-control.scm you'll see that this isn't all the > dependencies for libgit2, it's only the propagated-inputs. For instance, > libssh2 and http-parser are both inputs for libgit2, but they don't appear > in your list because they're not propagated. >=20 > > ... It seems to me that this has only downsides - the entire transitive > > closure needs to be present during build, even when the actually used > > dependencies don't reference it, and the names of inputs used by > > packages are now public API, and changing them can break the build of > > any transitively dependent package. >=20 > The way propagated inputs work is that they're installed alongside the > package, so in some sense they are part of the public API of the package. > They should be used with care, but as far as I can tell everything is > working properly here. You're absolutely right. This even explains the original weirdness I saw. Serves me right for hacking at 1 AM... Sorry for the noise :/ --k5xtxvff6rihusyg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE5Xa/ss9usT31cTO54xWnWEYTFWQFAl8t+D4ACgkQ4xWnWEYT FWSfHA//e/O+kh32DbAhPlcAWVBNi4nmYMe2DuPhxDGhgR1unJn6UGGmIq4hU//T KcOr4Xgk/ZkTMYzKI3P4HS4SqLJI5EvnS0+Ssq9h9F9YwYwby/I3fdtjWIyHO4Ra WROvIJeuJ1uiVzWncKC4YYVWrB1MvUu0rZmMeB2R65mqgWlwqD8WYEPDI2I4IG+x QUpuDgJfPBBfdk0hos7wlKiB4MZcyP5oqCxWoWYZc300Bh9DthXWa/+TgSAzMvyG KEjfTl4lkus+JMfcMHJGexoPeyxawaPqaao+4Z7iq8YjZ2UrQCeohBwarU+z5FnM +KI/cpiq6yqEh84HAasN8ZAnJ2Ot1cO47KQifcC4TmcDwsCPmEPdqScTe8A14sMA slfszEeVpit0zjU9WCFXfWd6GaPPstS8/6zEgjT5haf1A2BBpDqc2LNZdnMNkMRv 7fqp25z3yb9F2u51F2Y0hTVMzePbYc5+PpZnxgQrC/gOfaJDaQ6AqYERsZHxLvQE 95w2IdBsI1DqdfBRsh+KykTtkpN2mljDYtc/zvjN6r5WMSsPWpfYku6/Equk2pDY JcA5WDgLHjdg3888r5gIpVClR7CsPTNQSnPIVwi5r5b3ZLfdtQrz/M6WzjhrpN/I MxEdPoBFZex2vp4Dx7Z0ne5Imc4e0dKaue08VIFMtSkgzm9lyz4= =vH41 -----END PGP SIGNATURE----- --k5xtxvff6rihusyg--