From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:700:3204::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id iFdeJkkAj2WPVwEAkFu2QA (envelope-from ) for ; Fri, 29 Dec 2023 18:22:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id uK6THkkAj2XgTQAAe85BDQ (envelope-from ) for ; Fri, 29 Dec 2023 18:22:17 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=i9YqcikZ; 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=1703870537; 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=0cdt9JaP419Qt9P5KnVbWLmqAfymuT8+VWq/nwXUyho=; b=LHfPPQnOzLjfK23zbZaL4ppOPpsa5pgJShr7HgvTCyboX6fLdHW5NUuDIf0yrrv8YYOwtE iHNAweZNwDFRYUP8Z2fmlQWC2TONfu0THBDSLVSMgqzKDMloEW+E+zNxqWM4H21Zf8nibp mFHRfyrzIp071QnUZKum6u/R4Lk06SyWZZCpBxIJqFef0A17QbsM209WHmcL8cz06XNflt 6i1psC92ihngG03MNoebdz7SL5Av3YTjRdMzxm/ei/+SDD3JX7xhWGHM6rRJKuRim0Wa78 mjZSAg09BB+DohQpMbXhsENKawJq7P9PXX0JFZ90SAV8WYjgmPxVr37qg6XdWA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=i9YqcikZ; 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=1703870537; a=rsa-sha256; cv=none; b=H6JgVc+Ls02VLMF1OPnGYuwxy/r7L+wC+HZ/JQWDNfRBYcU+4XeLid8PykhrtUw+0xB8hl dFu7gTv72c5rhB+1BVHOJoR5gW+SMGa0nFXlEczw2jNWbl9IiyBHq7DRYGPNBc5IgA39lZ GamvrxpqsXfeaWd6RlomtP2NOJfhdJ+BoyCUlCIXAslkG0D805kWiHbLNGVIEZ+ckZCyii hpJWMZHKjSY4zy1SeATPqPt0RtKqGlD19hccIsm+rcGvf1GzeiPWVxE/W6hxqfmssXSGYo DE1k+bAKDsa8KVrOmCoL+YCC2dTpTGTdBb1qm7bpbRrXRkybi0OdA39KM60djw== 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 302F8609E9 for ; Fri, 29 Dec 2023 18:22:17 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rJGYD-0007T3-SR; Fri, 29 Dec 2023 12:21:37 -0500 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 1rJGYC-0007Sg-HQ for guix-devel@gnu.org; Fri, 29 Dec 2023 12:21:36 -0500 Received: from mail-oo1-xc33.google.com ([2607:f8b0:4864:20::c33]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rJGYA-00041N-Tt for guix-devel@gnu.org; Fri, 29 Dec 2023 12:21:36 -0500 Received: by mail-oo1-xc33.google.com with SMTP id 006d021491bc7-59426ca689cso3394689eaf.0 for ; Fri, 29 Dec 2023 09:21:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703870493; x=1704475293; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=0cdt9JaP419Qt9P5KnVbWLmqAfymuT8+VWq/nwXUyho=; b=i9YqcikZgsEP+G2d+Rm6Z6JV3e+I/J1FqzaumG3F8kOzi39JjDxxTCc76oMTLBvKlL wwup8FX45J8wo/R5YIcMenrfm6AYAaYytZ5pF/t2Bmgmj/Sdbt3FhbTflzAxoBNFYC+Z royQ/BKLWzt3IdCI4XpT05H3hddu6HH6TpoDWRLjHvt9EKtD/QScpiBE0VrYO+ER1miA 5ymcXoqVLfon71EBXCvBAGiiOWCdeCQ8KIfth/zmt5lJWyvR882q7P4fPw9AYwYMUIAn owuNf1Mj2qHBsB0oQPNYcRUBge4X7EQ/ZNV/X4/yHm/Op5X1yslAgPy9bDp1AxHAuoqi vxNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703870493; x=1704475293; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=0cdt9JaP419Qt9P5KnVbWLmqAfymuT8+VWq/nwXUyho=; b=YfQGPOqdzVn5w6r79hieoYiKTEZv9yfKFvrgM9hH9OaF0XPX7PjOuwumdHfud57a3Z 7q832QihMIngDUZ8DXljdgB5K9bfW65wB9O1KrPWrRkpfTSKbb0rPGLt6/6FudA52gyS 1NdUXbXq7DlmM5Hu6kRKkSCrzP/LUeKU5FXzkU/9RXMr3HK6KKHo3N59z0GC9lNHPFRb sncSLF4/TQuci/uTma6TBhX76WPQE4gIj/GgZ6bzhOs7LsIYu+fkKzQ8CML/Ac4fq70p vxwwcosbZIxkAX/9jaMdJY4OAgFI8ab/ZSRKYUo0zzQKU3Gn++jXyQVPcaCHrNu4P5WP GIfQ== X-Gm-Message-State: AOJu0YyoK4DWdqF+iQIJoaij4j4SZHO5FLfxqUxdVr67X4oqyD2eApCY 7XjhhLVcEOx2vrbZXIxZtkZDFZQad1A= X-Google-Smtp-Source: AGHT+IG83IBY8yk23fcZ2ZRMpE3mLxtLlZhKmH57IQKlpk9RJ8iCkV6s+PgcIEUHjeuXwxP1X66O+A== X-Received: by 2002:a05:6358:4291:b0:173:262:60b1 with SMTP id s17-20020a056358429100b00173026260b1mr10481396rwc.63.1703870493194; Fri, 29 Dec 2023 09:21:33 -0800 (PST) Received: from hurd (74-210-225-23.resi.cgocable.ca. [74.210.225.23]) by smtp.gmail.com with ESMTPSA id ay35-20020a05622a22a300b0042807e3b664sm609270qtb.67.2023.12.29.09.21.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 09:21:32 -0800 (PST) From: Maxim Cournoyer To: Tobias Geerinckx-Rice Cc: guix-devel@gnu.org, Apoorv Subject: Re: Suggestion for a guix shell feature. In-Reply-To: <0BD1014A-4C56-48CF-AE38-E06107AFB42F@tobias.gr> (Tobias Geerinckx-Rice's message of "Fri, 29 Dec 2023 15:39:09 +0000") References: <87le9dvevw.fsf@gmail.com> <0BD1014A-4C56-48CF-AE38-E06107AFB42F@tobias.gr> Date: Fri, 29 Dec 2023 12:21:31 -0500 Message-ID: <87cyuovs9w.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::c33; envelope-from=maxim.cournoyer@gmail.com; helo=mail-oo1-xc33.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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: 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-Spam-Score: -9.13 X-Spam-Score: -9.13 X-Migadu-Queue-Id: 302F8609E9 X-Migadu-Scanner: mx10.migadu.com X-TUID: aGcgq4kwuXgz Hi, Tobias Geerinckx-Rice writes: > Hiyall, > > On 29 December 2023 03:58:27 UTC, Maxim Cournoyer > wrote: >>Guix doesn't/shouldn't make use of LD_LIBRARY_PATH, except in rare cases >>to wrap binaries. It's better to patch the dlopen calls to use the >>absolute shared library file name. > > Fully agree. > > Furthermore, '--ld-library-path' sounds like an inflexible alias of a > nonexistent '--ad-hoc-search-path=FOO=/bar' option. > > So why not instead write a cute little (name "LD_LIBRARY_PATH") fake > package that does nothing but declare a search path for /lib? It > could live in any channel rather than further fatten 'guix shell'. > >>Perhaps you are missing the package configuring LIBRARY_PATH and other >>useful environment variables for finding libraries? That'd be >>gcc-toolchain, if I recall correctly. > > I might be mistaken but I assumed this was more about running > 'pre-existing' (cough cough nudge nudge) software not built from > source. Ah, if this is the case, the 'guix shell --container --emulate-fhs' may help, by providing some FHS layout with libraries under e.g. /usr/lib/. -- Thanks, Maxim