From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id ONpeFk6DAWd26AAA62LTzQ:P1 (envelope-from ) for ; Sat, 05 Oct 2024 18:19:58 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id ONpeFk6DAWd26AAA62LTzQ (envelope-from ) for ; Sat, 05 Oct 2024 20:19:58 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=EFt50ZRE; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1728152398; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=4wh31pLP7yhIeLvg6H4N039fJZP1ukZIkPmQgjUyFrs=; b=oSOHlNe34ri9PcIW4XUb7A+4velYZVCF3ebXFSkfaoepoe9BAP6mhJY+x4Z7p4gLBpnoOf L1n6z8JYJRF5pl2jbu9PUUNx6/z1hQWncX/MqBTmmG4DGTn2z8R5nRWyefpqtECvpsqsPv iBj+bN1SCXBXh0lAo+3juIBBh5Z0JID1LhswzbvHUjgh45pJF156Gh1Uk6ISLG2gu783BB VIhzG5EN6CR2p79zFoKPUeCRUW6Joi1yBjYdJeGC+qJ2HG21aIA9uakI9vubHR/y/4seub ah/5lrgMbE9koCZonl9BexAyojlcETZXvcCuEu6WoI58gdp3SUUYgweyQJtiQA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=EFt50ZRE; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1728152398; a=rsa-sha256; cv=none; b=aHDYwG0C2jjKRrbey4mOSVBUKTuxgPw0xgJ+wgWsAE6Ve1m8se04qjAKosI1A76hlXbgyy w4GxA8SPFYfXCtd9tY4+BrVkRLxwx00h9ro4LuDnfRIyCl3Wj4xODw5ohI4E3M1HvJf8Sw rUsrU1n3CmESZU6nTzAJ/HcJUptoeCPQ1SThq6fHB1yVVJfnbY76d1/b6tp+QhT3I8KZjc 2mD1tlTWUltQsSZ+UoT9rn6YN3k1zpzbaE1uEPF2kv20ojbLlFsd5aKXQxOi32UqnhvBFg 5wgO8oery74HNZDYowvCFBRGtSVHDygw/0ChN4cezMHPMP9Fnh4zbCg0w2zpDA== 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 34E098921C for ; Sat, 05 Oct 2024 20:19:58 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sx9ND-0007rX-2s; Sat, 05 Oct 2024 14:19:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sx9NB-0007rF-HT for guix-devel@gnu.org; Sat, 05 Oct 2024 14:19:21 -0400 Received: from mail-qt1-x841.google.com ([2607:f8b0:4864:20::841]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sx9NA-00033V-6S for guix-devel@gnu.org; Sat, 05 Oct 2024 14:19:21 -0400 Received: by mail-qt1-x841.google.com with SMTP id d75a77b69052e-4583068795eso29997301cf.1 for ; Sat, 05 Oct 2024 11:19:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728152359; x=1728757159; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=4wh31pLP7yhIeLvg6H4N039fJZP1ukZIkPmQgjUyFrs=; b=EFt50ZREq+ImskxnLQ8Zh70NiQx/UXlYi/TkQZR6GCaTOFMfiBx5bZ4JqSfUkELcLW P2F35q4X27d9veJAe9NePHKwpuM70cBJxXdFnng5sd/lWq60E9r3KuIe0YG6riuSW1yT FBZDeFBFbkj2dMag/wJp2yG2yhh1f7j/wDV1q/kbGWqZju6yJvAEgm7DTBPhySZD1LwG d73gHu2YqNzh4AHrhAe0T1s93RxdradPE8dvjAW+KD+Qgwh64kQeeGUwvP4MHG2rheob 8eh573SIX6hiCvsp66+q32Iyb3z2QaADnN86paT1nieT/GckGMZ+2KaNP1gj1S7YvBUI cR1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728152359; x=1728757159; h=content-transfer-encoding:mime-version:user-agent:message-id:date :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=4wh31pLP7yhIeLvg6H4N039fJZP1ukZIkPmQgjUyFrs=; b=Np69UpjrRUq8lMdl7Uog3iOZ8kQ7SA2B21aIXi9t0pj4Kn+GDercU43zkwMFvYjzWq wCIxWSYPmoLAijTJUPPx3tz8Ncmx9FjK+LkVMLRobrlMAZp+g61ZM/Kq2Ltlp92q9ihX gQ90XQcEAsNCpptimq/EESEfU31qFoQ4YVD9VSShN2ryDJHvhFEp9RdMJ9tyXiiqtSeN +TTEe+lFYPUPBknHcRtijZ29mXtYELyY0Bfm0iMMZLczPr0ZA8Xn/fr/WkvVFROYbO2Q sKWxvoZTtPPidsoexyI8SCgM0bVFW/ywLJF/mw0tiUAQPLxrK0wN/ua/68BVDQM8NYMd DHvw== X-Gm-Message-State: AOJu0YzCz1LLi8dSu4HwezsTWGSNXltCYTi58ZX/OJ1iDnIf5APwnR6l EMz7QTy7I3zsA07tEorgawtjv4wxB9XUgO+jUZIStgjIKP/ksCI3 X-Google-Smtp-Source: AGHT+IEpUgXj6Ewwz23GBl8UJhAzaSyTaZC1J07mdq+RVZfigy7aU0K5DmCmwOVHKSCvbFzMBtpABw== X-Received: by 2002:a05:622a:124e:b0:458:3cb6:13cb with SMTP id d75a77b69052e-45d9bb47d37mr118346621cf.56.1728152358643; Sat, 05 Oct 2024 11:19:18 -0700 (PDT) Received: from gnus (bras-base-mtrlpq4385w-grc-15-142-115-189-80.dsl.bell.ca. [142.115.189.80]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-45da74ebc5esm10509391cf.25.2024.10.05.11.19.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Oct 2024 11:19:17 -0700 (PDT) From: Suhail Singh To: Guix-devel mailing list Cc: Suhail Singh Subject: Clarification regd. native-search-paths and search-paths Date: Sat, 05 Oct 2024 14:19:16 -0400 Message-ID: <87zfnipg4b.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::841; envelope-from=suhailsingh247@gmail.com; helo=mail-qt1-x841.google.com 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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -1.66 X-Spam-Score: -1.66 X-Migadu-Queue-Id: 34E098921C X-TUID: EZfNcl1kNcdu Hello Guix, Per the manual: #+caption: [[info:guix#Search Paths][guix#Search Paths]] #+begin_quote What this =E2=80=98native-search-paths=E2=80=99 field says is that, when = the =E2=80=98python=E2=80=99 package is used, the =E2=80=98GUIX_PYTHONPATH=E2=80=99 environment variab= le must be defined to include all the =E2=80=98lib/python/3.9/site-packages=E2=80=99 sub-directories encountered in its environment. (The =E2=80=98native-=E2= =80=99 bit means that, if we are in a cross-compilation environment, only native inputs may be added to the search path; *note =E2=80=98search-paths=E2=80= =99: package Reference.) #+end_quote Does "used" above refer to runtime usage? If so, in that example, why is native-search-paths used instead of search-paths? I would think that in order to have appropriate runtime behaviour while supporting cross-compilation, we would want to use search-paths instead. And yet, it seems, the recommendation seems to be to favour native-search-paths in general: #+caption: [[info:guix#package Reference][guix#package Reference]] #+begin_quote As for inputs, the distinction between =E2=80=98native-search-paths=E2=80= =99 and =E2=80=98search-paths=E2=80=99 only matters when cross-compiling. In= a cross-compilation context, =E2=80=98native-search-paths=E2=80=99 applies exclusively to native inputs whereas =E2=80=98search-paths=E2=80=99 appli= es only to host inputs. Packages such as cross-compilers care about target inputs=E2=80=94for instance, our (modified) GCC cross-compiler has =E2=80=98CROSS_C_INCLUDE_PATH=E2=80=99 in =E2=80=98search-paths=E2=80=99,= which allows it to pick =E2=80=98.h=E2=80=99 files for the target system and _not_ those of native inputs. For the majority of packages though, only =E2=80=98native-search-paths=E2=80=99 makes sense. #+end_quote How does one determine which of native-search-paths or search-paths is appropriate in a given context? --=20 Suhail