From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id IFn1BJAYz2J8BwAAbAwnHQ (envelope-from ) for ; Wed, 13 Jul 2022 21:10:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id oGf9BJAYz2KFcwEA9RJhRA (envelope-from ) for ; Wed, 13 Jul 2022 21:10:08 +0200 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 610FA27B38 for ; Wed, 13 Jul 2022 21:10:07 +0200 (CEST) Received: from localhost ([::1]:51854 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBhkK-0002LV-22 for larch@yhetil.org; Wed, 13 Jul 2022 15:10:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48518) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBhjZ-0002LM-1X for help-guix@gnu.org; Wed, 13 Jul 2022 15:09:17 -0400 Received: from cyan.elm.relay.mailchannels.net ([23.83.212.47]:1322) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBhjW-0000pl-So for help-guix@gnu.org; Wed, 13 Jul 2022 15:09:16 -0400 X-Sender-Id: dreamhost|x-authsender|peter@polidoro.io Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 5757E8017D2; Wed, 13 Jul 2022 19:09:12 +0000 (UTC) Received: from pdx1-sub0-mail-a273.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id C59E8801FE4; Wed, 13 Jul 2022 19:09:11 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1657739351; a=rsa-sha256; cv=none; b=rbnDldqw21vogRE/exqhVyg9tm1ej6UIetL8EJB7CJto0LC/zkZt0Mo0R8mBAFIxr6OJqE rp2qL0QDvYqVM5Qdw1gxbAQCRknlQq4uyMjZZjIuDanxvslbiCYgBGUtEdhXShSHV5ZZ48 RlK34TA1W/ZHBHhSmCuoITldN+eNxBeNj0yDxLiH9qzqs/LNzwNtsHZ5GAFhsZ00IXkyU2 36KREUIUi7VmjbhHuEOIHQ6L2dQFYOKPVcomFMllEM8h0DO3Ar1jQSW13diQ9/JndTkiZq KmUOvZdfkWXMRvvw4GNhMyriFRpaukaOL+ivR8utc2utposjXnhPOrYkMs+R+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1657739351; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=seDZOU4fBUTBXM85dCVTZNZQ8UPRmeXI9xzRbaQYcKs=; b=5m0/MiVgKC3Txq1kS+ZC8Zihx8l37IVmzVJV2fTG6kjrOLi6hqPUDwUnsfL297fgqd2n9q SzHyUsM+WpLvXSNzMl1ix/p0EgsHFxr1vV+Kx4VrpHMgjpFOMx1ovLXdE0eI7N8+wK1FdM O3+twuIPQyFqlPYszoIvd3/XnHjfCN6M4d47r2SiJ1AYUx6Qbh9PSZ3QgPiPWwhMbaRDE/ apHdZOkhIJMVJXWom15ERuUq8veBvChgi2w/Jx+3jbZ92HEYFEWKJx3Kf8Kk2CZsTdeT0d 2Ok+yIg436BdV4+sUlid/J7At7tzvTe/BC7pk7ANY875kayS0S0CIDKcqR76Hw== ARC-Authentication-Results: i=1; rspamd-674ffb986c-m58xr; auth=pass smtp.auth=dreamhost smtp.mailfrom=peter@polidoro.io X-Sender-Id: dreamhost|x-authsender|peter@polidoro.io X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|peter@polidoro.io X-MailChannels-Auth-Id: dreamhost X-Befitting-Abaft: 1db6404373b81688_1657739352127_2392929923 X-MC-Loop-Signature: 1657739352127:4002974218 X-MC-Ingress-Time: 1657739352127 Received: from pdx1-sub0-mail-a273.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.110.28.222 (trex/6.7.1); Wed, 13 Jul 2022 19:09:12 +0000 Received: from knave (unknown [206.241.0.254]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: peter@polidoro.io) by pdx1-sub0-mail-a273.dreamhost.com (Postfix) with ESMTPSA id 4LjnGv26ZVzYl; Wed, 13 Jul 2022 12:09:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polidoro.io; s=dreamhost; t=1657739351; bh=seDZOU4fBUTBXM85dCVTZNZQ8UPRmeXI9xzRbaQYcKs=; h=From:To:Cc:Subject:Date:Content-Type:Content-Transfer-Encoding; b=cA5B+Yd2G8wcEiyWq3D06UfT04bj16xY3DYKJCSVCyZT87Usa3KsrND8nnB7MCjc7 p5MDDei+UFjbVzGXYgHtuIpmC202fwwyBYkZy79OBC1MXX6fWZMWlLRUU4oTnrwCKl t4MgI2ZbMOFBIYHY/8osa8eUZ/oOQG2BL3yhaCY6wXX9PSE9I+ZNDVp4763n1BRPU7 P+AM71n8l0H5NF8xn68/kcOpkzP2GMUyf/+0GL+5rYPfc3HS8d2ZqXMIkhwPtxVIew cMkbxqiyp1glkGDJe105iTrRj34jVF19ZKbLsqdlGZZ9kzwXRA0FhaOjsihA0OgutL UyEfbETyPleqw== References: <8EA69D34-498D-4172-B0E4-C90E59009F68@polidoro.io> <24DD9713-A088-4C6A-8D8B-5DCF60E623AF@lepiller.eu> <86bktshp6m.fsf@polidoro.io> <4D18100C-EA74-494D-8014-12116892E5AE@lepiller.eu> User-agent: mu4e 1.6.11; emacs 28.1 From: Peter Polidoro To: Julien Lepiller Cc: help-guix@gnu.org Subject: Re: Finding Dependencies at Run Time Date: Wed, 13 Jul 2022 14:51:18 -0400 In-reply-to: <4D18100C-EA74-494D-8014-12116892E5AE@lepiller.eu> Message-ID: <867d4ghltf.fsf@polidoro.io> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=23.83.212.47; envelope-from=peter@polidoro.io; helo=cyan.elm.relay.mailchannels.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1657739407; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=seDZOU4fBUTBXM85dCVTZNZQ8UPRmeXI9xzRbaQYcKs=; b=twE0hjfmtIoP2cuMeYDNpurhM3mgC+q00buNrMl4bhwtlC4lEYhVE8fXRMo9yi/q1EOqjy bSeTuw7a2fFgR/tmkHeqfZXWg1sK8qgFzNI1bgvxUfSO6GOZ9r33zaWrZSXxU1Jkh9IkCE S/i2n6bH+sdFyWZR77eYYDsP1vrgM+pCRDo/GGEMBwzNsl2igP6n1wbUjRRDx6cIBZpPsY 6mxAoPjk6ygeus0r1hA8tpF7znYRVgyIuJHqWQNv0ZWVSBYE14xcF0Ikg2D5gC3pFqiudK 7AdDgSNHRxiO41fLnUetDS8QCdMK5MHbYeD6DV8PXCG6jYqC07yE+4I7CEzK4g== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1657739407; a=rsa-sha256; cv=pass; b=HBkn26j8D9XpzUGnKgtLGOWCDL9fITbcQ8Qfly1wP2E7eQ5dmwk2mTpVNIpZaHCvrRs+UB JEqKHcwI5XyXPNMre1UafhmPy9FN4mOPCEO4345/iPbZYQb17xwVrOtxrfZQVDlNpZTg2j w9MO59EfNrbJpMml9v8k93w8Ku94ptjBLB/YzNoPgf6y6721R+VzK3+CEvnQmPj8iu1tA0 k3gh5m0z4mXmSOjwy0Yr1k7I9+CTLBiN7OpNJzQA3LXzcdzayMOjYnVK3h//BTaS9esS6g Q6sjVHCCd15hS9PJQbPqjD/AayFXj4+wfjmnxb+NzbYCO6cLtLUR72/DQmbPPQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=polidoro.io header.s=dreamhost header.b=cA5B+Yd2; arc=pass ("mailchannels.net:s=arc-2022:i=1"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -10.24 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=polidoro.io header.s=dreamhost header.b=cA5B+Yd2; arc=pass ("mailchannels.net:s=arc-2022:i=1"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 610FA27B38 X-Spam-Score: -10.24 X-Migadu-Scanner: scn0.migadu.com X-TUID: QzweIGe07aDu Your explanations are very helpful, thank you, and your links made=20 me realize that devel version of the manual has lots of=20 information that I could not find in the stable version of the=20 manual. > During the build, search-paths and native-search-paths are used=20 > to set up environment variables. If you use --keep-failed and=20 > interrupt a > build you'l find them in=20 > /tmp/guix-build-=E2=80=A6/environment-variables. So search-paths and native-search-paths are set before the build=20 and unset after the build so they are unavailable during run-time?=20 Or are native-search-paths only available at build-time and=20 search-paths available at both build-time and run-time? Are the search-paths and native-search-paths absolute path values=20 found by automatically searching the directories in all of the=20 inputs or native inputs, looking for files or directories that=20 match a pattern? So they are a way to map relative paths into=20 absolute paths to the dependency packages? > For others, the required search paths can be embedded in a=20 > wrapper, which defines environment variables before calling the=20 > actual program. So if a package needs run-time environment variables, then a=20 package should use wrap-program to attach them to a command? These=20 are not found automatically by searching the inputs, they must be=20 manually defined using explicit input paths? > For propagation, dependencies are found in the environment. It's=20 > less "pure" than the other ways, so we try to avoid resorting to=20 > that. > Unfortunately some programming languages don't really leave us a=20 > choice (like python=E2=80=A6). So python packages are not using an environment variable, such as=20 PYTHONPATH, to find dependencies? How are they placed together=20 into an environment so they can find each other?