From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 2N4bHqVq0GK5vQAAbAwnHQ (envelope-from ) for ; Thu, 14 Jul 2022 21:12:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 2F7jHKVq0GIPOgEAG6o9tA (envelope-from ) for ; Thu, 14 Jul 2022 21:12:37 +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 7936437CAA for ; Thu, 14 Jul 2022 21:12:36 +0200 (CEST) Received: from localhost ([::1]:40504 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oC4GJ-00034u-M3 for larch@yhetil.org; Thu, 14 Jul 2022 15:12:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46384) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oC4G5-00034m-FF for help-guix@gnu.org; Thu, 14 Jul 2022 15:12:21 -0400 Received: from poodle.tulip.relay.mailchannels.net ([23.83.218.249]:33499) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oC4G3-0003Ao-2V for help-guix@gnu.org; Thu, 14 Jul 2022 15:12:21 -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 C36F15A1735; Thu, 14 Jul 2022 19:12:11 +0000 (UTC) Received: from pdx1-sub0-mail-a278.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 1F7C85A0F01; Thu, 14 Jul 2022 19:12:01 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1657825921; a=rsa-sha256; cv=none; b=hCkW8aNh4Ki9rh4q+aRvp2lS/VaqeZTmqFjWxQ3HoqtcLPgi+X96h8h7Rtc1yRztTZalye EHRYs0fMTXAPn5rY9mdCC2gfLPH2gynRSFw0sVgZ1ye/ct+80igDPWarpQRFnD0Pgd+E8o L1zkpdlis/Tm8yKU5G7Z/avQFh6TMSe9mmtQjVnkXuEhB/G8eMN5ffr3S0LYCt8WJCT1RI 0jdn1hbKEWToo8NeEQwYF1baC8tWUuItUGkeIdknSLebYGreEEfDZsUMjlk/npfxQCA3ag Bje+TBKNHOlJvvS6OurWbiB4tX0GP9+qy7+CMH7MwLIEx656zNLg+3EcE6PrUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1657825921; 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: in-reply-to:in-reply-to:references:references:dkim-signature; bh=qNh6Ay/5q4u3evDIN/1DNgwbPvtG03v9utcx+S5dYIs=; b=cPUX2xG4cGNFC0JMaGH4wkS7SzHXx/DQSCvEAOejbXbewUyOG+KDh5s6naev4Ta3CjGWIp s0bauCFBVkxQiuyLpPH8r4a+20SOhrI6noZtUy30vvPlkDtMPmn3pKiUt6mFI8pkgjlNfp CNqPgAHoBk+0mef7Easw2H0XZ27WEhT/EZAmvoUxXXYjy5Ui4nrPQ/a2wGNBJpLARQcCHM zEDprfD4pYZavxhAysnR1rD0s34s54xKQ2aJEVbeY1EAcFhcrJicgt3dsVseeWv9OrqQcw pSebRIS6X2H8hnSpcNj2SGiAPXuT9Ni74VajaYLLqtaTpCA78kGrc5ueRFeSlw== ARC-Authentication-Results: i=1; rspamd-689699966c-kpxgc; 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-Ski-Irritate: 7d1d6c0d78aca905_1657825921433_470355153 X-MC-Loop-Signature: 1657825921433:3000099581 X-MC-Ingress-Time: 1657825921433 Received: from pdx1-sub0-mail-a278.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.115.45.52 (trex/6.7.1); Thu, 14 Jul 2022 19:12:01 +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-a278.dreamhost.com (Postfix) with ESMTPSA id 4LkPHh3qtyz6D; Thu, 14 Jul 2022 12:12:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polidoro.io; s=dreamhost; t=1657825920; bh=qNh6Ay/5q4u3evDIN/1DNgwbPvtG03v9utcx+S5dYIs=; h=From:To:Cc:Subject:Date:Content-Type; b=sYquihBVbhVi5PmTo3iMTSewBTzHkYUFRbUyeZi7qluSDP9H6/uYedaEJnxjIbnmi 9J+5tD7Q9vVnl6y4W2GZpNxnWxhlcp2c9AMKq8SbLgFKosnisiyEJ1kNF+72RY+g1J crjNVqRdZXyuv+Q49gcRwdf/AyoCZk6lsNNI9uYMfj+mfZejHthWZzUMPnE564OXvI oJL+OlNEL6XV3SniogtJ1JdLzH/i+HE8OnLMnkf6Q7tfaBN0ne4AOxO4WXoJk5B3Yt M3T0SS0dDpu3tnRqXaGsAaOmbDCaLBO7+ozaDMdbvOmzXRSOVbfYJThRsaxW8+prEr 7o9FUiI0S7jBA== 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> <867d4ghltf.fsf@polidoro.io> 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: Thu, 14 Jul 2022 13:47:19 -0400 In-reply-to: Message-ID: <86cze77bm2.fsf@polidoro.io> MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=23.83.218.249; envelope-from=peter@polidoro.io; helo=poodle.tulip.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=1657825957; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=qNh6Ay/5q4u3evDIN/1DNgwbPvtG03v9utcx+S5dYIs=; b=mb98DwMY8gqAKgMq1KtHalTHOoTGqBXvmjoLhOuzL9gHQ4vrrinohmFgjI4DF9cTycncnb ycp5mnvx27WdNmd/uPDGcR4NqWdt9htiZBGnbczIRADCXHkOQflTsDmhCRbLe5FBOuvhji 7e/jdSv6NV9aKGaqrLaG7oM3W6d9y0cQ7vBzKLj6lZtPv7BhlBnARvT3XLPe4Zvp7N741r skGRWcnrPPIGGKepQMu/0L4AEUG4OpMIcVbrUhNfNOkGaIW6sijPJvSwKOOmmwZtgXOqgo AruB/3XrH7vJ2SXJ0dUXQMpAtaKz+on2gDToLlrFfixCWEedI0uBF/TiAYGpKw== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1657825957; a=rsa-sha256; cv=pass; b=sC+MLua/YlPcjMeYZZJi2UHpp4yjAeUoQWBou64KjK6SZoVQNFEM4XioHMmfYKm7UNuFxj tsl+tTYi2pA6EBXYm+Kks3aL4W/fygUDcjLsnDOfoC4txOxXF6sDa1fPE70DaXG9i/j11v BCeByA5UkqsVZS0DMVrj4lnDZPOIZ0qg+FA3rfXSdIzTJeB0dPCxEDX/+CoxEWCWk4XVkh kDMblMUMqIjc0Nr5XTCNCN+LasUXJ2R5zHlXcMYjHrKkpTjGi5mllw3TA84Yp1Ja0AoM+p toiLKor9xE/vu6HW0Pe/B72Y8EhZcDR57g2xds8n2eFKRzcGMvqMEZ/cnYfqeQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=polidoro.io header.s=dreamhost header.b=sYquihBV; 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: -4.45 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=polidoro.io header.s=dreamhost header.b=sYquihBV; 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: 7936437CAA X-Spam-Score: -4.45 X-Migadu-Scanner: scn1.migadu.com X-TUID: 3wp4TACOOZ8L > Remember the difference between inputs and propagated inputs: > they're the same, but when you create a profile, inputs are not > part of the > profile (so they need a direct store reference, such as RPATH or > a wrapper), whereas propagated inputs are part of the profile, > so an > environment variable allows to find them. Thank you for patiently explaining, I think I am starting to understand now, but please correct me if I am still wrong. So there is package build-time, profile build-time, and run-time. Wrappers should be used to set environment variables when the value can be determined at package build-time, such as absolute paths to inputs. Search paths should be used to set environment variables when the value will be determined at profile build-time, such as relative paths to either propagated-inputs or packages that also installed in the same profile, but not listed explicitly as propagated-inputs to the package declaring the search paths. I am still a little unclear about the difference between search-paths and native-search-paths, though. If not cross-compiling then they act the same? If you are cross-compiling, though, then it only finds packages that are listed as native-inputs to the package declaring the search paths? Native-inputs are not normally installed in a profile, though, correct? Does that mean native-search-paths will only be found when using a development shell when cross-compiling? I guess I do not properly understand cross-compiling. So when cross-compiling, there is a package build-time, where you are building packages for a target architecture on a host machine, profile build-time, where you are building a profile on the target, and run-time, when you are running on the target? If search-paths and native-search-paths are determined at profile build-time, how do they behave differently on the target machine?